research-codebase
Skill1 starsChanged 6 months agoMITView on GitHub
Document the codebase as-is via parallel read-only sub-agents and write findings under flow/research/. Explicit workflow command; run only when invoked via /research-codebase or explicitly asked.
6 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- sipandey/create-agent-roomtheir own version, first seen Sep 26, 2026
- ConsolaDev/Consolaedited, first seen Sep 23, 2026
- atomicinnovation/acceleratoredited, first seen Sep 22, 2026
- theomonfort/skillsedited, first seen Jul 1, 2026
- fabianmagrini/skillstheir own version, first seen May 10, 2026
- joshuaalpuerto/mcp-agenttheir own version, first seen Feb 21, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- atomicinnovation/accelerator★ 3447% same
- ConsolaDev/Consola★ 148% same
- theomonfort/skills★ 061% same
Wrote their own version · 3
- joshuaalpuerto/mcp-agent★ 18same name
- fabianmagrini/skills★ 1same 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- commitSkill
- create-handoffSkill
- create-planSkill
- cross-reviewSkill
- describe-prSkill
- handle-pr-feedbackSkill
- implement-planSkill
- initSkill
- iterate-planSkill
- advanced-evaluationSkill
- research-requirementsSkill
- resume-handoffSkill
- validate-planSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
51 rules. 0 are common, 42 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
42
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
DO NOT suggest improvements or changes unless the user explicitly asks for them
- Distinctive: line 15
DO NOT perform root cause analysis unless the user explicitly asks for them
- Distinctive: line 16
DO NOT propose future enhancements unless the user explicitly asks for them
- Distinctive: line 17
DO NOT critique the implementation or identify problems
- Distinctive: line 18
DO NOT recommend refactoring, optimization, or architectural changes
- Distinctive: line 19
ONLY describe what exists, where it exists, how it works, and how components interact
- Distinctive: line 24
When this command is invoked, respond with:
- Distinctive: line 34
If the research query is a tracker URL or work-item id:
- Distinctive: line 37
If the user mentions specific files (tickets, docs, JSON), read them FULLY first
- Distinctive: line 38
IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
- Distinctive: line 39
CRITICAL: Read these files yourself in the main context before spawning any sub-tasks
- Distinctive: line 46
Create a research plan using TodoWrite to track all subtasks
- Distinctive: line 47
Consider which directories, files, or architectural patterns are relevant
- Distinctive: line 50
Create multiple Task agents to research different aspects concurrently
- Distinctive: line 54
Use the codebase-locator agent to find WHERE files and components live
- Distinctive: line 55
Use the codebase-analyzer agent to understand HOW specific code works (without critiquing it)
- Distinctive: line 56
Use the codebase-pattern-finder agent to find examples of existing patterns (without evaluating them)
- Distinctive: line 58
IMPORTANT: All agents are documentarians, not critics.
- Very specific: line 61
Use the flow-locator agent to discover what documents exist about the topic
- Very specific: line 62
Use the flow-analyzer agent to extract key insights from specific documents (only the most relevant ones)
- Distinctive: line 65
Use the web-search-researcher agent for external documentation and resources
- Distinctive: line 66
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 69
Start with locator agents to find what exists
- Distinctive: line 71
Run multiple agents in parallel when they're searching for different things
- Distinctive: line 73
Don't write detailed prompts about HOW to search - the agents already know
- Very specific: line 80
Use flow/ findings as supplementary historical context
- Very specific: line 83
Verify all flow/ paths are correct
- Distinctive: line 102
Use the metadata gathered in step 4
- Distinctive: line 162
Check if on main branch or if commit is pushed: git branch --show-current and git status
- Very specific: line 166
Use the full commit permalink when the commit is pushed.
- Distinctive: line 172
Ask if they have follow-up questions or need clarification
- Distinctive: line 175
If the user has follow-up questions, append to the same research document
- Very specific: line 176
Update the frontmatter fields last_updated and last_updated_by to reflect the update
- Very specific: line 177
Add last_updated_note: "Added follow-up research for [brief description]" to frontmatter
- Very specific: line 178
Add a new section: ## Follow-up Research [timestamp]
- Distinctive: line 183
Always use parallel Task agents to maximize efficiency and minimize context usage
- Distinctive: line 184
Always run fresh codebase research - never rely solely on existing research documents
- Distinctive: line 189
Document cross-component connections and how systems interact
- Distinctive: line 192
Keep the main agent focused on synthesis, not deep file reading
- Distinctive: line 196
REMEMBER: Document what IS, not what SHOULD BE
- Distinctive: line 197
NO RECOMMENDATIONS: Only describe the current state of the codebase
- Distinctive: line 198
File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
- Distinctive: line 199
Critical ordering: Follow the numbered steps exactly
- Distinctive: line 200
ALWAYS read mentioned files first before spawning sub-tasks (step 1)
- Distinctive: line 201
ALWAYS wait for all sub-agents to complete before synthesizing (step 4)
- Distinctive: line 202
ALWAYS gather metadata before writing the document (step 5 before step 6)
- Distinctive: line 203
NEVER write the research document with placeholder values
- Distinctive: line 205
Always include frontmatter at the beginning of research documents
- Distinctive: line 206
Keep frontmatter fields consistent across all research documents
- Distinctive: line 207
Update frontmatter when adding follow-up research
- Very specific: line 208
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 6 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
You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings.
CRITICAL: YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN THE CODEBASE AS IT EXISTS TODAY
- DO NOT suggest improvements or changes unless the user explicitly asks for them
- DO NOT perform root cause analysis unless the user explicitly asks for them
- DO NOT propose future enhancements unless the user explicitly asks for them
- DO NOT critique the implementation or identify problems
- DO NOT recommend refactoring, optimization, or architectural changes
- ONLY describe what exists, where it exists, how it works, and how components interact
- You are creating a technical map/documentation of the existing system
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 analyze it thoroughly by exploring relevant components and connections.Then wait for the user's research query.
Steps to follow after receiving the research query:
- Read any directly mentioned files first:
- If the research query is a tracker URL or work-item id:
- Fetch work-item content:
tracker view <id> --json title,body,state,comments - Transition state:
tracker set-state <id> research-in-progress
- Fetch work-item content:
- If the user mentions specific files (tickets, 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
- If the research query is a tracker URL or work-item id:
- Analyze 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
Spawn parallel sub-agent tasks for comprehensive research:
- Create multiple Task agents to research different aspects concurrently
- We now have specialized agents that know how to do specific research tasks:
For codebase research:
- Use the codebase-locator agent to find WHERE files and components live
- Use the codebase-analyzer agent to understand HOW specific code works (without critiquing it)
- Use the codebase-pattern-finder agent to find examples of existing patterns (without evaluating them)
IMPORTANT: All agents are documentarians, not critics. They will describe what exists without suggesting improvements or identifying issues.
For flow directory:
- Use the flow-locator agent to discover what documents exist about the topic
- Use the flow-analyzer 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 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 analyzer agents on the most promising findings to document how they work
- 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
- Remind agents they are documenting, not evaluating or improving
- Wait for all sub-agents to complete and synthesize findings:
- IMPORTANT: Wait for ALL sub-agent tasks to complete before proceeding
- Compile all sub-agent results (both codebase and flow findings)
- Prioritize live codebase findings as primary source of truth
- Use flow/ findings as supplementary historical context
- Connect findings across different components
- Include specific file paths and line numbers for reference
- Verify all flow/ paths are correct
- Highlight patterns, connections, and architectural decisions
- Answer the user's specific questions with concrete evidence
- Gather metadata for the research document:
- Gather metadata using git commands:
git rev-parse HEADfor commit hashgit branch --show-currentfor branch namegit remote get-url originfor repository
- Filename:
flow/research/YYYY-MM-DD-gh-<number>-description.md- Format:
YYYY-MM-DD-gh-<number>-description.mdwhere:- YYYY-MM-DD is today's date
- gh-
<number>is the tracker work-item id (omit if no work item; the literal "gh-" prefix is a stable filename convention) - description is a brief kebab-case description of the research topic
- Examples:
- With issue:
flow/research/2025-01-08-gh-42-parent-child-tracking.md - Without issue:
flow/research/2025-01-08-authentication-flow.md
- With issue:
- Format:
- Gather metadata using git commands:
- Generate research document:
- Use the metadata gathered in step 4
- Structure the document with YAML frontmatter followed by content:
--- date: [Current date and time with timezone in ISO format] researcher: [Researcher name or "Claude"] git_commit: [Current commit hash] branch: [Current branch name] repository: [Repository name] topic: "[User's Question/Topic]" tags: [research, codebase, relevant-component-names] status: complete last_updated: [Current date in YYYY-MM-DD format] last_updated_by: [Researcher name] --- # Research: [User's Question/Topic] **Date**: [Current date and time with timezone from step 4] **Researcher**: [Researcher name or "Claude"] **Git Commit**: [Current commit hash from step 4] **Branch**: [Current branch name from step 4] **Repository**: [Repository name] ## Research Question [Original user query] ## Summary [High-level documentation of what was found, answering the user's question by describing what exists] ## Detailed Findings ### [Component/Area 1] - Description of what exists ([file.ext:line](https://github.com/{owner}/{repo}/blob/{commit}/file.ext#L{line})) - How it connects to other components - Current implementation details (without evaluation) ### [Component/Area 2] ... ## Code References - [path/to/file.py:123](https://github.com/{owner}/{repo}/blob/{commit}/path/to/file.py#L123) - Description of what's there - [another/file.ts:45-67](https://github.com/{owner}/{repo}/blob/{commit}/another/file.ts#L45-L67) - Description of the code block ## Architecture Documentation [Current patterns, conventions, and design implementations found in the codebase] ## Historical Context (from flow/) [Relevant insights from flow/ directory with references] - `flow/research/something.md` - Previous research about X - `flow/plans/feature.md` - Related implementation plan ## Related Research [Links to other research documents in flow/research/] ## Open Questions [Any areas that need further investigation]
- Add repository permalinks (if applicable; GitHub URL shape shown - substitute for other hosts):
- Check if on main branch or if commit is pushed:
git branch --show-currentandgit status - For GitHub, get repo info:
tracker repo-infoand form permalinks:https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line} - For other hosts, substitute the appropriate URL shape (e.g. Azure DevOps:
https://dev.azure.com/{org}/{project}/_git/{repo}?path=/{file}&version=GC{commit}&line={line}) - Every
path:linereference in the document body MUST be its own clickable markdown link -[path:line](permalink), with ranges as#L{start}-L{end}- across Detailed Findings, the Code References section, and any tables. Do NOT leave barepath:linetext, and do NOT just state a single "permalink base" at the top and leave the references plain; render each reference individually. - Use the full commit permalink when the commit is pushed; if the branch/commit is not pushed, fall back to a repo-relative link
[path:line](path)so every reference stays navigable.
- Check if on main branch or if commit is pushed:
- Present findings:
- Transition the work-item state (if applicable):
tracker set-state <id> research-complete research-in-progress - 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
- Transition the work-item state (if applicable):
- 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 maximize efficiency and minimize context usage
- Always run fresh codebase research - never rely solely on existing research documents
- The flow/ directory provides 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 documentation operations
- Document cross-component connections and how systems interact
- Include temporal context (when the research was conducted)
- Link to the repository host when possible for permanent references
- Keep the main agent focused on synthesis, not deep file reading
- Have sub-agents document examples and usage patterns as they exist
- Explore all of flow/ directory, not just research subdirectory
- CRITICAL: You and all sub-agents are documentarians, not evaluators
- REMEMBER: Document what IS, not what SHOULD BE
- NO RECOMMENDATIONS: Only describe the current state of the codebase
- 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 synthesizing (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
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.

