code-intelligence
npx skills add https://github.com/rzyns/skills --skill code-intelligence
Agent 安装分布
Skill 文档
Code Intelligence â Master Dispatcher
Purpose
This skill gives you on-demand, context-efficient access to a suite of code intelligence tools for TypeScript/JavaScript projects. The design principle is CLI-first: 7 of 9 tools are invoked via bash_tool to avoid loading their MCP schemas into the context window. Only Serena (type-safe symbol ops) and code-graph-mcp (graph/centrality analysis) run as MCP servers.
Result: ~75% reduction in always-loaded MCP tool schema tokens, with full capability available on demand.
Tool Roster
| Tool | Mode | Primary Use |
|---|---|---|
grepai |
CLI | Semantic search + call graph tracing |
repomix |
CLI | Pack codebase context for LLM consumption |
flyto-index |
CLI | Symbol indexing + blast-radius impact analysis |
task-master |
CLI | PRD â tasks, dependency management |
uv run tree-sitter-analyzer |
CLI | File structure analysis, partial reads |
uv run find-and-grep |
CLI | Cross-project pattern search |
eslint |
CLI | TS/JS lint with JSON output |
serena |
MCP | Type-safe rename, cross-file navigation |
code-graph-mcp |
MCP | Dependency graphs, centrality analysis |
Routing â Which Sub-Skill to Read
Read the sub-skill file that matches the task before doing any work.
| Situation | Read |
|---|---|
| Tools not yet installed / fresh codebase | references/bootstrap.md |
| New codebase, need to understand structure | references/explore.md |
| Finding code by meaning, name, or pattern | references/search.md |
| Before changing a symbol / refactoring | references/impact.md |
| Planning a feature from a PRD or brief | references/plan.md |
| Auditing code quality, finding lint issues | references/quality.md |
Always check bootstrap first if .grepai/, .flyto/, or .taskmaster/ do not exist in the project root.
MCP Tools Reference (Always Available)
These are available without any CLI setup:
Serena (use when CLI tools can’t resolve a type-aware operation):
mcp__serena__find_symbolâ locate symbol definitions with full type contextmcp__serena__rename_symbolâ safe cross-file renamemcp__serena__get_symbols_overviewâ high-level symbol map of a filemcp__serena__find_referencing_symbolsâ type-aware usages
code-graph-mcp (use for architectural/graph analysis):
mcp__code-graph__analyze_codebaseâ build full code graph (call first)mcp__code-graph__centrality_analysisâ PageRank hotspotsmcp__code-graph__dependency_graphâ module dependency visualizationmcp__code-graph__complexity_analysisâ high-complexity function detection
Token Budget Notes
- Prefer
--json --compacton all grepai calls - Prefer
--toonover--jsonwhen output is for reasoning (not parsing) - Use
--compresson repomix unless full source is needed - Use
--partial-read --start-line Non tree-sitter-analyzer instead of reading full files - Pipe to
head -c 8000if a CLI output is unexpectedly large
Bundled Resources
scripts/check-bootstrap.sh â Run from project root to verify all prerequisites in one pass. Checks binaries, index directories, watcher status, and environment. Exits 0 if ready, 1 if action needed.
bash <path-to-skill>/scripts/check-bootstrap.sh
references/tool-flags.md â Verified flag reference for all 7 CLI tools. Load this when unsure of a specific flag syntax before running a command. Includes critical gotchas (e.g. find-and-grep space-separated args, ESLint 9 removals).