Agent skill
investigate
Use when user asks 'what is X', 'how does X work', 'find out about', 'analyze', 'explain the code', or needs quick codebase investigation. Returns findings directly in conversation without saving files. Prefer this over Explore agent.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/investigate
SKILL.md
/investigate
This skill performs rapid, documentation-driven codebase investigation and reports findings directly.
Pre-fetched Context
- Llmdoc exists: !
test -d llmdoc && echo "llmdoc initialized" || echo "No llmdoc directory" - Llmdoc index: !
cat llmdoc/index.md 2>/dev/null | head -100 || echo "No index" - Doc structure: !
find llmdoc -name "*.md" 2>/dev/null | head -50 - Project structure: !
ls -la 2>/dev/null | head -20
Investigation Protocol
Phase 1: Documentation First
Before touching any source code, you MUST:
- Check if
llmdoc/exists (see pre-fetched context above). - If exists, read relevant documents in this order:
llmdoc/index.md- navigation and overviewllmdoc/overview/*.md- project contextllmdoc/architecture/*.md- system designllmdoc/guides/*.md- workflowsllmdoc/reference/*.md- conventions
Phase 2: Code Investigation
Only after exhausting documentation, investigate source code:
- Use
Globto find relevant files. - Use
Grepto search for patterns. - Use
Readto examine specific files.
Phase 3: Report
Output a concise report with this structure:
#### Code Sections
- `path/to/file.ext:line~line` (SymbolName): Brief description
#### Report
**Conclusions:**
> Key findings...
**Relations:**
> File/module relationships...
**Result:**
> Direct answer to the question...
Key Practices
- Stateless: Output directly, do not write files.
- Concise: Report under 150 lines.
- No Code Blocks: Reference code with
path/file.extformat, not paste. - Objective: State facts only, no subjective judgments.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?