AGENT SKILL

code-tool-router

Choose the right code intelligence tool before searching, navigating, refactoring, or analyzing a codebase. Use for exact search, semantic discovery, symbol references, call graphs, and architecture work.

License 许可
Apache-2.0
最近更新
2026-11-15
Stars
★ 3
Forks
0

01 前言 Front Matter

name
code-tool-router
license
Apache-2.0
description
Choose the right code intelligence tool before searching, navigating, refactoring, or analyzing a codebase. Use for exact search, semantic discovery, symbol references, call graphs, and architecture work.
compatibility
Requires a local code workspace. Uses rg first; Semble, Serena, and CodeGraphContext are optional.

03 SKILL.md 正文

Code Tool Router

Classify the question before searching, then use the cheapest reliable tool.

Intent First tool Verification
Exact string, config key, error text, filename, or symbol spelling rg Open matching files
Broad semantic discovery or similar implementations Semble Confirm with rg and source reads
Definitions, references, rename, or type-aware navigation Serena or another LSP tool Check generated and dynamic call sites with rg
Callers, callees, complexity, or dependency graph CodeGraphContext (CGC) Confirm important edges in source
Current library or API behavior Official documentation Compare with local pinned usage

Exact search examples:

rg -n "reset_session\\(" .
rg --files | rg "memory|context"

Semantic discovery examples:

uvx --from semble==0.5.4 semble search "where session context is assembled" .
uvx --from semble==0.5.4 semble find-related src/path/file.ts 42 .

Graph examples:

cgc stats . --context "$(basename "$PWD")"
cgc find name reset_session --context "$(basename "$PWD")"
cgc analyze callers reset_session --context "$(basename "$PWD")"
cgc analyze complexity --limit 20 --context "$(basename "$PWD")"

If a specialized tool is unavailable, continue with rg, direct source reads, and the language's own analysis tools. Do not claim a rename or impact set is complete without type-aware or source-level verification.

Use semantic and graph results as shortlists, not proof. Source code and reproducible tests remain authoritative.

04 同仓库更多 Skills