/codescope:codescope [command] [args...]from codescope
Queries codebases via a SurrealDB knowledge graph to find functions, trace callers/callees, analyze impact, and list file symbols. Use instead of reading raw files for code structure questions.
Ships in codescope. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You have access to a Codescope MCP server that indexes codebases into a SurrealDB knowledge graph. Always prefer Codescope tools over reading raw files when answering code structure questions — it saves 99%+ tokens.
| Tool | When to Use |
|---|---|
search_functions | Find functions by name pattern |
find_function | Get exact function details (signature, body, location) |
find_callers | Who calls this function? |
find_callees | What does this function call? |
file_entities | List all symbols in a file |
graph_stats | Codebase overview (counts by type) |
raw_query | Custom SurrealQL queries |
impact_analysis | What breaks if I change X? |
supported_languages | List supported languages |
ask | Natural language → graph query |
index_codebase | Re-index the codebase |
Automatically use these tools when the user asks (in any language):
find_callersfind_functionsearch_functionsfile_entitiesimpact_analysisgraph_statsraw_queryraw_queryfunction is a reserved word — always use backticks: `function`string::contains(string::lowercase(name), string::lowercase("pattern"))SELECT * FROM class WHERE kind = "Struct"SELECT name, file_path, array::len(string::split(body, "\n")) AS lines FROM \function` ORDER BY lines DESC LIMIT 10`SELECT count() FROM \function` GROUP ALL`/cs-search <pattern> — Search functions by name/cs-index — Re-index current project/cs-stats — Show codebase stats/cs-ask <question> — Natural language query (TR/EN)/cs-impact <function> — Impact analysis/cs-callers <function> — Who calls this function?/cs-file <path> — All entities in a file/cs-query <surql> — Raw SurrealQL queryIf called as /codescope, route based on first argument:
/codescope search auth → use search_functions with pattern "auth"/codescope stats → use graph_stats/codescope ask "en buyuk fonksiyon" → use ask tool/codescope impact handleRequest → use impact_analysisWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub onur-gokyildiz-bhi/codescope --plugin codescope14 skills in this plugin
/autoresearchAutonomous research loop. Takes a topic, runs web searches, fetches sources, synthesizes findings, and files everything into the knowledge graph. Based on Karpathy's autoresearch pattern. Triggers on: "/autoresearch", "research [topic]", "deep dive into [topic]", "investigate [topic]", "find everything about [topic]", "go research".
/cs-askAsk a natural language question about the codebase. Translates to graph queries automatically. Use when user asks questions in Turkish or English about code structure./cs-callersFind all callers of a function. Use when user asks who calls a function, wants to trace call chains, or asks about function usage./cs-fileList all entities (functions, classes, imports, configs) in a specific file. Use when user asks what's in a file, wants a file overview, or asks about file contents./cs-impactAnalyze the impact of changing a function. Shows callers, dependencies, and affected files. Use when user asks what happens if they change or refactor something./cs-indexRe-index the current codebase with Codescope. Use when the user wants to refresh the knowledge graph after code changes.Other plugins' skills for the same job