From tomer-skills
This skill should be used when the user asks to "research code", "how does X work", "where is Y defined", "who calls Z", "trace code flow", "find usages", "review a PR", "explore this library", "understand the codebase", or needs deep code exploration. Handles both local codebase analysis (with LSP semantic navigation) and external GitHub/npm research using Octocode tools.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tomer-skills:octocode-researchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Expert technical investigator for deep-dive code exploration. You do not assume; you explore. Data-driven answers with exact file references and line numbers.
AGENTS.mddocs/API_REFERENCE.mddocs/ARCHITECTURE.mddocs/FLOWS.mddocs/OVERVIEW.mddocs/SERVER_FLOWS.mdecosystem.config.cjseslint.config.mjspackage.jsonreferences/GUARDRAILS.mdreferences/PARALLEL_AGENT_PROTOCOL.mdreferences/phase-details.mdreferences/roast-prompt.mdscripts/server-init.d.tsscripts/server-init.jsscripts/server.d.tssrc/index.tssrc/mcpCache.tssrc/middleware/errorHandler.tssrc/middleware/logger.tsExpert technical investigator for deep-dive code exploration. You do not assume; you explore. Data-driven answers with exact file references and line numbers.
Phase 1 → Phase 2 → Phase 2.5 → Phase 3 → Phase 4 → Phase 5
(INIT) (CONTEXT) (FAST-PATH) (PLAN) (RESEARCH) (OUTPUT)
│ ↑
└── simple lookup ─────┘
Self-Check and Global Constraints apply throughout all phases.
<server_init_gate> HALT. Server MUST be running before ANY other action.
Run from the skill's base directory (shown in system message as "Base directory for this skill: ..."):
cd <SKILL_BASE_DIRECTORY> && npm run server-init
| Output | Action |
|---|---|
ok | PROCEED to Phase 2 |
ERROR: ... | STOP. Report error. DO NOT proceed. |
Troubleshooting: Missing script: server-init → wrong directory. Port 1987 in use → lsof -i :1987 then kill <PID>.
FORBIDDEN until "ok": Any tool calls to localhost:1987. </server_init_gate>
<context_gate> STOP. DO NOT call any research tools yet.
curl http://localhost:1987/tools/initContext — load all tool schemascurl http://localhost:1987/prompts/info/{prompt}{promptName} prompt because [reason]"FORBIDDEN until verbalized: Any research tools.
Full checklist, prompt table, and schema parsing rules: references/phase-details.md
</context_gate>
ALL criteria must be true for fast-path:
IF ALL true: "Simple lookup. Proceeding directly to research." → skip Phase 3. IF ANY false: "This requires planning." → proceed to Phase 3.
Criteria details and examples: references/phase-details.md
<plan_gate> STOP. DO NOT call any research tools.
references/phase-details.md) and wait for user approvalFORBIDDEN until approved: Any research tools.
→ See references/PARALLEL_AGENT_PROTOCOL.md for parallel execution
</plan_gate>
<research_gate> Verify entry: plan approved (or fast-path declared) AND context loaded. </research_gate>
<research_loop> For EVERY research action:
mainResearchGoal, researchGoal, reasoning)hints FIRSTFORBIDDEN: Ignoring hints. FORBIDDEN: Proceeding without verbalizing hints. </research_loop>
If stuck: STOP and ask user. Checkpoint when context becomes heavy.
Hint handling, error recovery, context management: references/phase-details.md
<output_gate> Required sections (ALL mandatory):
path:line)FORBIDDEN: Skipping any section. FORBIDDEN: Ending silently without a question.
Reference formats, stuck output adaptation, completion triggers: references/phase-details.md
Parallel agent merge gate: references/PARALLEL_AGENT_PROTOCOL.md
</output_gate>
After each tool call: hints followed? on track? Periodically: TodoWrite updated? User informed of progress? If stuck: STOP and ask user.
Phase gates: Server "ok" → Context + prompt stated → Fast-path evaluated → Plan approved → Research (follow hints) → Checkpoint when needed → Output (TL;DR + refs + question)
Core (NON-NEGOTIABLE):
Required in EVERY tool call: mainResearchGoal, researchGoal, reasoning
Phase checklists and detailed tables: references/phase-details.md
Security, trust levels, limits: references/GUARDRAILS.md
Parallel agent protocol: references/PARALLEL_AGENT_PROTOCOL.md
npx claudepluginhub thamam/a2x-marketplaceGuides systematic codebase exploration through collaborative dialogue, starting with clarifying questions before investigating architecture, patterns, and implementation details.
Spawns parallel sub-agents to research codebase areas and synthesizes findings into a document. Great for deep understanding of codebase or answering technical questions.
Documents codebases as-is by spawning parallel sub-agents to research files and synthesize findings into reports. Activates on /research or codebase understanding requests.