research-codebase
Skill34 starsChanged 51 days agoMITView on GitHub
Conduct comprehensive codebase research by spawning parallel
9 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- lithammer/aitheir own version, first seen Oct 17, 2026
- charly-vibes/incitacionestheir own version, first seen Oct 14, 2026
- sipandey/create-agent-roomtheir own version, first seen Sep 26, 2026
- ConsolaDev/Consolaedited, first seen Sep 23, 2026
- jurgendn/agent-skillstheir own version, first seen Sep 17, 2026
- liorhai5/ai-skillstheir own version, first seen Sep 7, 2026
Used with
Projects with it also use iterate-plan.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
corticalstackSkilliterate-plan
Revise an existing implementation plan in flow/plans/ based on feedback, researching when needed. Explicit-only; run only when invoked via /iterate-plan or explicitly asked.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- ConsolaDev/Consola★ 125% same
- corticalstack/flow★ 142% same
Wrote their own version · 7
- joshuaalpuerto/mcp-agent★ 18same name
- jurgendn/agent-skills★ 10same name
- fabianmagrini/skills★ 1same name
- charly-vibes/incitaciones★ 0same name
- liorhai5/ai-skills★ 0same name
- lithammer/ai★ 0same name
- sipandey/create-agent-room★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- tasks/CLAUDE.mdCLAUDE.md
- clean-commentsSkill
- raise-prSkill
- configureSkill
- initSkill
- migrateSkill
- pathsSkill
- create-adrSkill
- extract-adrsSkill
- review-adrSkill
- analyse-design-gapsSkill
- inventory-designSkill
- describe-prSkill
- respond-to-prSkill
- review-prSkill
- create-noteSkill
- create-planSkill
- implement-planSkill
- review-planSkill
- stress-test-planSkill
- validate-planSkill
- conduct-spikeSkill
- research-issueSkill
- research-topicSkill
- commitSkill
- visualiseSkill
- create-work-itemSkill
- extract-work-itemsSkill
- list-work-itemsSkill
- refine-work-itemSkill
- rekey-work-itemsSkill
- review-work-itemSkill
- stress-test-work-itemSkill
- sync-work-items-recoverySkill
- sync-work-itemsSkill
- update-work-itemSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
45 rules. 0 are common, 40 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
40
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If no "Agent Names" section appears above, use these defaults: accelerator:reviewer, accelerator:codebase-locator, …
- Distinctive: line 34
When this command is invoked, respond with:
- Distinctive: line 46
If the user mentions specific files (work items, docs, JSON), read them FULLY first
- Distinctive: line 48
IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
- Distinctive: line 50
CRITICAL: Read these files yourself in the main context before spawning any sub-tasks
- Distinctive: line 60
Create a research plan using TodoWrite to track all subtasks
- Distinctive: line 61
Consider which directories, files, or architectural patterns are relevant
- Distinctive: line 65
Create multiple Task agents to research different aspects concurrently
- Distinctive: line 70
Use the {codebase locator agent} agent to find WHERE files and components live
- Distinctive: line 71
Use the {codebase analyser agent} agent to understand HOW specific code works
- Distinctive: line 72
Use the {codebase pattern finder agent} agent if you need examples of similar implementations
- Distinctive: line 77
Use the {documents locator agent} agent to discover what documents exist about the topic in the configured research, plans, and decisions …
- Distinctive: line 80
Use the {documents analyser agent} agent to extract key insights from specific documents (only the most relevant ones)
- Distinctive: line 85
Use the {web search researcher agent} agent for external documentation and resources
- Distinctive: line 87
IF you use web-research agents, instruct them to return LINKS with their findings, and please INCLUDE those links in your final report
- Distinctive: line 92
Start with locator agents to find what exists
- Distinctive: line 94
Run multiple agents in parallel when they're searching for different things
- Distinctive: line 96
Don't write detailed prompts about HOW to search - the agents already know
- Distinctive: line 103
Use document findings as supplementary historical context
- Distinctive: line 106
Verify all output paths are correct
- Distinctive: line 125
Use the metadata gathered in step 5
- Distinctive: line 131
Before writing the artifact file, substitute every field below with the indicated value, using the helper output captured in step 5:
- Distinctive: line 151
only: when it has a value, and omit it entirely otherwise (do not carry the empty placeholder through).
- Very specific: line 163
Validate the frontmatter: after writing, run corpus frontmatter validate over the research document you just wrote:
- Distinctive: line 170
If it exits non-zero, the research document violates the canonical frontmatter standard.
- Distinctive: line 176
Check whether you are on the main branch and whether the commit is pushed (use the branch and status commands from the session's VCS …
- Distinctive: line 178
If on main/master or pushed, generate GitHub permalinks:
- Distinctive: line 188
Ask if they have follow-up questions or need clarification
- Distinctive: line 192
If the user has follow-up questions, append to the same research document
- Very specific: line 193
Update the frontmatter fields last_updated and last_updated_by to reflect the update
- Very specific: line 197
Add a new section: ## Follow-up Research [timestamp]
- Distinctive: line 203
Always use parallel Task agents to maximise efficiency and minimise context usage
- Distinctive: line 205
Always run fresh codebase research - never rely solely on existing research documents
- Distinctive: line 212
Consider cross-component connections and architectural patterns
- Distinctive: line 215
Keep the main agent focused on synthesis, not deep file reading
- Distinctive: line 218
File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
- Distinctive: line 220
Critical ordering: Follow the numbered steps exactly
- Distinctive: line 221
ALWAYS read mentioned files first before spawning sub-tasks (step 1)
- Distinctive: line 222
ALWAYS wait for all sub-agents to complete before synthesising (step 4)
- Distinctive: line 223
ALWAYS gather metadata before writing the document (step 5 before step 6)
- Distinctive: line 224
NEVER write the research document with placeholder values
- Distinctive: line 226
Always include frontmatter at the beginning of research documents
- Distinctive: line 227
Keep frontmatter fields consistent across all research documents
- Distinctive: line 228
Update frontmatter when adding follow-up research
- Very specific: line 229
Use snake_case for multi-word field names (e.g., last_updated, git_commit)
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Research Codebase
!accelerator config context --skill research-codebase --fail-safe
!accelerator config agents --fail-safe
If no "Agent Names" section appears above, use these defaults: accelerator:reviewer, accelerator:codebase-locator, accelerator:codebase-analyser, accelerator:codebase-pattern-finder, accelerator:documents-locator, accelerator:documents-analyser, accelerator:web-search-researcher.
Codebase research directory: !accelerator config path research_codebase --fail-safe
Plans directory: !accelerator config path plans --fail-safe
Decisions directory: !accelerator config path decisions --fail-safe
You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesising their findings.
Initial Setup:
When this command is invoked, respond with:
I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyse it thoroughly by exploring relevant components and connections.Then wait for the user's research query.
Steps to follow after receiving the research query:
Step 1: Read any directly mentioned files first
- If the user mentions specific files (work items, docs, JSON), read them FULLY first
- IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
- CRITICAL: Read these files yourself in the main context before spawning any sub-tasks
- This ensures you have full context before decomposing the research
Step 2: Analyse and decompose the research question
- Break down the user's query into composable research areas
- Take time to ultrathink about the underlying patterns, connections, and architectural implications the user might be seeking
- Identify specific components, patterns, or concepts to investigate
- Create a research plan using TodoWrite to track all subtasks
- Consider which directories, files, or architectural patterns are relevant
Step 3: Spawn parallel sub-agent tasks for comprehensive research
- Create multiple Task agents to research different aspects concurrently
- We now have specialised agents that know how to do specific research tasks:
For codebase research:
- Use the {codebase locator agent} agent to find WHERE files and components live
- Use the {codebase analyser agent} agent to understand HOW specific code works
- Use the {codebase pattern finder agent} agent if you need examples of similar implementations
For meta directory:
- Use the {documents locator agent} agent to discover what documents exist about the topic in the configured research, plans, and decisions directories (shown above)
- Use the {documents analyser agent} agent to extract key insights from specific documents (only the most relevant ones)
For web research (only if user explicitly asks):
- Use the {web search researcher agent} agent for external documentation and resources
- IF you use web-research agents, instruct them to return LINKS with their findings, and please INCLUDE those links in your final report
The key is to use these agents intelligently:
- Start with locator agents to find what exists
- Then use analyser agents on the most promising findings
- Run multiple agents in parallel when they're searching for different things
- Each agent knows its job - just tell it what you're looking for
- Don't write detailed prompts about HOW to search - the agents already know
Step 4: Wait for all sub-agents to complete and synthesise findings
- IMPORTANT: Wait for ALL sub-agent tasks to complete before proceeding
- Compile all sub-agent results (both codebase and document findings)
- Prioritise live codebase findings as primary source of truth
- Use document findings as supplementary historical context
- Connect findings across different components
- Include specific file paths and line numbers for reference
- Verify all output paths are correct
- Highlight patterns, connections, and architectural decisions
- Answer the user's specific questions with concrete evidence
Step 5: Gather metadata for the research document
- Run
accelerator corpus metadata deriveto generate all relevant metadata. - Filename: write to the configured research directory (shown above) using
- Format:
YYYY-MM-DD-ENG-XXXX-description.mdwhere:- YYYY-MM-DD is today's date
- ENG-XXXX is the work item number (omit if no work item)
- description is a brief kebab-case description of the research topic
- Examples:
- With work item:
2025-01-08-ENG-1478-parent-child-tracking.md - Without work item:
2025-01-08-authentication-flow.md
- With work item:
- Format:
Step 6: Populate frontmatter and generate the research document
- Use the metadata gathered in step 5
- Structure the document with YAML frontmatter followed by content using this template:
!accelerator config template codebase-research --fail-safe
Before writing the artifact file, substitute every field below with the indicated value, using the helper output captured in step 5:
type:←codebase-researchid:← the filename stem (the file path computed above without.md), always quoted as a YAML stringtitle:←{User's Question/Topic}date:← theCurrent Date/Time (UTC):valueauthor:← the author resolved per the standard chain (config → VCS user → prompt)producer:←research-codebasestatus:←completerevision:← theCurrent Revision:valuerepository:← theRepository Name:valuelast_updated:← the sameCurrent Date/Time (UTC):valuelast_updated_by:← the same value resolved forauthorschema_version:←1(bare integer)
Optional linkage/foreign-ref keys are omit-by-default: the
template shows each as ""/[], but write a key into the artifact
only when it has a value, and omit it entirely otherwise (do not
carry the empty placeholder through).
parent:← the work item this research supports, as a typed-linkage ref ("work-item:NNNN"). Fill when the research has an owning work item; otherwise omit the key.relates_to:← list of typed-linkage refs to related research (["codebase-research:NNNN", ...]). Fill when related artifacts are explicit; otherwise omit the key.work_item_id:← the linked work item's full ID (quoted). Fill when the research is linked to a work item; otherwise omit the key.
Validate the frontmatter: after writing, run corpus frontmatter
validate over the research document you just wrote:
accelerator corpus frontmatter validate --file <path>If it exits non-zero, the research document violates the canonical frontmatter standard; report the emitted violation and fix the frontmatter before completing.
Step 7: Add GitHub permalinks (if applicable)
- Check whether you are on the main branch and whether the commit is pushed (use the branch and status commands from the session's VCS context)
- If on main/master or pushed, generate GitHub permalinks:
- Get repo info:
gh repo view --json owner,name - Create permalinks:
https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}
- Get repo info:
- Replace local file references with permalinks in the document
Step 8: Present findings
- Present a concise summary of findings to the user
- Include key file references for easy navigation
- Ask if they have follow-up questions or need clarification
Step 9: Handle follow-up questions
- If the user has follow-up questions, append to the same research document
- Update the frontmatter fields
last_updatedandlast_updated_byto reflect the update - Add
last_updated_note: "Added follow-up research for [brief description]"to frontmatter - Add a new section:
## Follow-up Research [timestamp] - Spawn new sub-agents as needed for additional investigation
- Continue updating the document and syncing
Important notes:
- Always use parallel Task agents to maximise efficiency and minimise context usage
- Always run fresh codebase research - never rely solely on existing research documents
- The configured document directories provide historical context to supplement live findings
- Focus on finding concrete file paths and line numbers for developer reference
- Research documents should be self-contained with all necessary context
- Each sub-agent prompt should be specific and focused on read-only operations
- Consider cross-component connections and architectural patterns
- Include temporal context (when the research was conducted)
- Link to GitHub when possible for permanent references
- Keep the main agent focused on synthesis, not deep file reading
- Encourage sub-agents to find examples and usage patterns, not just definitions
- Explore all configured document directories (research, plans, decisions)
- File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
- Critical ordering: Follow the numbered steps exactly
- ALWAYS read mentioned files first before spawning sub-tasks (step 1)
- ALWAYS wait for all sub-agents to complete before synthesising (step 4)
- ALWAYS gather metadata before writing the document (step 5 before step 6)
- NEVER write the research document with placeholder values
- Frontmatter consistency:
- Always include frontmatter at the beginning of research documents
- Keep frontmatter fields consistent across all research documents
- Update frontmatter when adding follow-up research
- Use snake_case for multi-word field names (e.g.,
last_updated,git_commit) - Tags should be relevant to the research topic and components studied
!accelerator config instructions research-codebase --fail-safe
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

