一键导入
code-search
Search code symbols, find function calls, and analyze codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Search code symbols, find function calls, and analyze codebase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-search |
| description | Search code symbols, find function calls, and analyze codebase |
| triggers | ["find function","where is","who calls","find class","find method","search code","code search","find symbol","call sites","references to","what calls","show me the"] |
Recommended model tier: balanced (sonnet) - this skill performs straightforward operations
Search for code symbols (functions, classes, methods, types) and find their call sites.
mcp__plugin_aide_aide__code_search)Find functions, classes, methods, interfaces, and types by name or signature.
Example usage:
Search for: "getUserById"
→ Uses code_search tool
→ Returns: function signatures, file locations, line numbers
mcp__plugin_aide_aide__code_references)Find all places where a symbol is called/used.
Example usage:
Who calls "getUserById"?
→ Uses code_references tool
→ Returns: all call sites with file:line and context
mcp__plugin_aide_aide__code_symbols)List all symbols defined in a specific file.
Example usage:
What functions are in src/auth.ts?
→ Uses code_symbols tool
→ Returns: all functions, classes, types in that file
mcp__plugin_aide_aide__code_outline)Get a collapsed structural outline of a file — signatures preserved, bodies replaced with { ... }.
Uses ~5-15% of the tokens of the full file. Use this before reading a file to understand its
structure, then use Read with offset/limit for specific sections.
Example usage:
Outline src/auth.ts
→ Uses code_outline tool
→ Returns: collapsed view with signatures, line ranges, bodies collapsed
mcp__plugin_aide_aide__code_stats)Check if the codebase has been indexed.
Example usage:
Is the code indexed?
→ Uses code_stats tool
→ Returns: file count, symbol count, reference count
mcp__plugin_aide_aide__findings_search)Search static analysis findings (complexity hotspots, secrets, code clones, coupling issues).
Example usage:
Any complexity issues in src/auth?
→ Uses findings_search tool with query "auth" or file filter
→ Returns: findings with file, line, severity, description
code_stats to verify indexing./.aide/bin/aide code indexBinary location: The aide binary is at .aide/bin/aide. If it's on your $PATH, you can use aide directly.
Search for symbols:
code_search with the symbol name or patternFind call sites:
code_references to find where a symbol is usedExplore specific files:
code_symbols to list all definitions in a fileUser: "Where is the authentication function?"
Assistant action:
code_search with query "auth" or "authenticate"User: "Who calls authenticateUser?"
Assistant action:
code_references with symbol "authenticateUser"code_search and code_references work from the tree-sitter symbol index. They find:
code_references)For anything else — patterns inside function bodies, method call chains, string literals, SQL queries, imports, variable declarations — use Grep, which searches code content directly.
In short: code_search finds where things are defined; Grep finds patterns in code content.
./.aide/bin/aide code indexAIDE_CODE_WATCH=0 or code.watch: false in .aide/config/aide.jsonExplore codebase structure, entry points, tech stack, hotspots, and call graphs
Run the instinct parser catalogue against this session's observe events to surface candidate patterns for promotion to memories. Two-pass: gather candidates, judge intent, write proposals.
Parallel agents with SDLC pipeline per story
Inspect a running swarm — show the agent tree, current tools, halts/pauses, and recent task/message activity for the orchestrator's own swarm.
Systematic debugging workflow for tracking down bugs and issues
Technical design and architecture for implementation