From codescope
Queries codebase knowledge graphs to search functions, trace callers/callees, list file entities, analyze impact, and run SurrealQL. Use for code structure, dependencies, and relationships.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codescope:codescopeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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_analysisnpx claudepluginhub onur-gokyildiz-bhi/codescope --plugin codescopeIndexes a codebase as a structural graph for querying callers, callees, inheritance, blast radius, and semantic code search. Useful for understanding code connectivity, impact analysis, and navigating unfamiliar repos.
Ask natural language questions about codebase structure in Turkish or English; auto-translates to graph queries via MCP tools for code exploration.
Uses tree-sitter index for code navigation in Rust, Python, TypeScript, JavaScript, Go, Java, Scala, SQL: finds symbols, reads function implementations, traces callers, discovers tests.