Integration guide for using detective skills across plugins. Maps agent roles from frontend, bun, and other plugins to appropriate detective skills...
Version: 1.0.0 Purpose: Connect ANY agent to the appropriate detective skill based on role
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ALL DETECTIVE SKILLS USE claudemem (INDEXED MEMORY) EXCLUSIVELY β
β β
β When ANY agent references a detective skill, they MUST: β
β β NEVER use grep, find, rg, Glob tool, Grep tool β
β β
ALWAYS use claudemem search "query" β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Agent | Should Use Skill | Purpose |
|---|---|---|
typescript-frontend-dev |
code-analysis:developer-detective |
Find implementations, trace data flow |
frontend-architect |
code-analysis:architect-detective |
Analyze architecture, design patterns |
test-architect |
code-analysis:tester-detective |
Coverage analysis, test quality |
senior-code-reviewer |
code-analysis:ultrathink-detective |
Comprehensive code review |
ui-developer |
code-analysis:developer-detective |
Find UI implementations |
designer |
code-analysis:architect-detective |
Understand component structure |
plan-reviewer |
code-analysis:architect-detective |
Review architecture plans |
| Agent | Should Use Skill | Purpose |
|---|---|---|
backend-developer |
code-analysis:developer-detective |
Find implementations, trace data flow |
api-architect |
code-analysis:architect-detective |
API architecture analysis |
apidog |
code-analysis:developer-detective |
Find API implementations |
| Agent | Should Use Skill | Purpose |
|---|---|---|
codebase-detective |
All detective skills | Full investigation capability |
| Agent Role | Should Use Skill |
|---|---|
| Any "developer" agent | code-analysis:developer-detective |
| Any "architect" agent | code-analysis:architect-detective |
| Any "tester" agent | code-analysis:tester-detective |
| Any "reviewer" agent | code-analysis:ultrathink-detective |
| Any "debugger" agent | code-analysis:debugger-detective |
---
name: my-developer-agent
description: Implements features
skills: code-analysis:developer-detective
---
# My Developer Agent
When investigating code, use the developer-detective skill.
This gives you access to indexed memory search via claudemem.
## Investigation Pattern
Before implementing:
1. Check claudemem status: `claudemem status`
2. Search for related code: `claudemem search "feature I'm implementing"`
3. Read specific files from results
4. NEVER use grep or find for discovery
---
name: my-architect-agent
description: Designs architecture
skills: code-analysis:architect-detective
---
# My Architect Agent
When analyzing architecture, use the architect-detective skill.
## Architecture Discovery
1. Check claudemem status: `claudemem status`
2. Search for patterns: `claudemem search "service layer architecture"`
3. Map dependencies: `claudemem search "import dependency injection"`
4. NEVER use grep or find for discovery
---
name: comprehensive-reviewer
description: Reviews all aspects
skills: code-analysis:ultrathink-detective, code-analysis:tester-detective
---
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β WHICH DETECTIVE SKILL TO USE? β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β What is the agent's PRIMARY focus? β
β β
β βββ IMPLEMENTING code / Finding where to change β
β β βββ Use: developer-detective β
β β β
β βββ DESIGNING architecture / Understanding patterns β
β β βββ Use: architect-detective β
β β β
β βββ TESTING / Coverage analysis / Quality β
β β βββ Use: tester-detective β
β β β
β βββ DEBUGGING / Finding root cause β
β β βββ Use: debugger-detective β
β β β
β βββ COMPREHENSIVE analysis / Technical debt / Audit β
β βββ Use: ultrathink-detective β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// In frontend plugin's typescript-frontend-dev agent:
// β WRONG - Never do this
Grep({ pattern: "UserService", type: "ts" });
Glob({ pattern: "**/user*.ts" });
// β
CORRECT - Use indexed memory via developer-detective skill
// The skill teaches the agent to use:
claudemem search "UserService implementation methods"
// In bun plugin's api-architect agent:
// β WRONG - Never do this
find . -name "*.controller.ts"
grep -r "router\." . --include="*.ts"
// β
CORRECT - Use indexed memory via architect-detective skill
claudemem search "API controller endpoint handler"
claudemem search "router pattern REST GraphQL"
// In frontend plugin's test-architect agent:
// β WRONG - Never do this
Glob({ pattern: "**/*.test.ts" });
Grep({ pattern: "describe" });
// β
CORRECT - Use indexed memory via tester-detective skill
claudemem search "test coverage describe spec"
claudemem search "mock stub test assertion"
When an agent needs code investigation, it should:
---
name: any-agent-that-needs-investigation
skills: code-analysis:developer-detective # or architect/tester/debugger/ultrathink
---
# This agent inherits:
# - INDEXED MEMORY requirement (claudemem only)
# - Role-specific search patterns
# - Output format guidance
# - FORBIDDEN: grep, find, Glob, Grep tools
If your plugin has agents that need code investigation, add this dependency:
{
"name": "your-plugin",
"dependencies": {
"code-analysis@tianzecn-plugins": "^1.6.0"
}
}
This ensures:
code-analysis:* prefixββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ANY AGENT + CODE INVESTIGATION = claudemem ONLY β
β β
β Developer agents β code-analysis:developer-detective β
β Architect agents β code-analysis:architect-detective β
β Tester agents β code-analysis:tester-detective β
β Debugger agents β code-analysis:debugger-detective β
β Reviewer agents β code-analysis:ultrathink-detective β
β β
β grep/find/Glob/Grep = FORBIDDEN (always, everywhere, no exceptions) β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Maintained by: tianzecn Plugin: code-analysis Last Updated: December 2025