spec-research
Skill2 starsChanged 5 months agoApache-2.0View on GitHub
Investigate an existing codebase and write the findings into a research report under docs/agents/research/ — the authoritative account of how something works today, for a plan to build on.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- komluk/scaffoldingtheir own version, first seen Nov 15, 2026
- eve0415/cellatheir own version, first seen May 7, 2026
- h3y6e/spec-skillstheir own version, first seen Feb 23, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- komluk/scaffolding★ 16same name
- eve0415/cella★ 7same name
- h3y6e/spec-skills★ 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 repository5 other files it gives its agents.
- hypothesis-labSkill
- spec-grillSkill
- spec-implementSkill
- spec-planSkill
- spec-prdSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
7
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
- Distinctive: line 17
Document cross-component wiring, not just isolated components.
- Distinctive: line 22
Do root cause analysis ("why does this break?", "why is it like this?").
- Very specific: line 25
Use the words should, could be improved, or instead in normative sentences.
- Distinctive: line 27
If the user mixes research with a feature request, stop and ask them to split it.
- Distinctive: line 32
No question → ask once for the topic, wait.
- Very specific: line 34
No code in the working folder (empty or near-empty directory, no real source files) → stop.
- Distinctive: line 49
Do not analyse. Do not evaluate.
- Distinctive: line 60
Wait for every sub-agent to return before continuing.
- Distinctive: line 64
Treat sub-agent output as pointers, not evidence.
- Very specific: line 72
Capture metadata: Run scripts/metadata.py from the repo root for JSON containing ISO date, HEAD short SHA, branch, repo name.
- Very specific: line 81
Follow-up on the same topic → append ## Follow-up <YYYY-MM-DD HH:MM> to the same file.
- Very specific: line 85
When the topic is external, read repo files only if they bear on it.
“Common” is measured: kept by at least 6 in 10 of the 3 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
Codebase Research
Produce a technical map of the codebase as it stands right now. No fixes, no proposals, no critique.
Scope
Do:
- State what exists, where it lives, how it operates, how parts wire together.
- Cite
file:linefor every claim. Use names, types, control flow, data flow. - Document cross-component wiring, not just isolated components.
Don't — stay descriptive, not prescriptive:
- Suggest improvements, fixes, rewrites, or alternative designs.
- Do root cause analysis ("why does this break?", "why is it like this?").
- Label code good, bad, smelly, or risky. No critique.
- Recommend on optimisation, performance, or architecture.
- Use the words
should,could be improved, orinsteadin normative sentences. Delete the sentence.
If the user mixes research with a feature request, stop and ask them to split it. Research first, plan later, fresh context.
Initial setup
- Question supplied with the invocation → go to Step 1.
- No question → ask once for the topic, wait. Do not explore on blank scope.
- Feature ask ("add X", "build Y") → stop. Tell the user to
/clearand re-invoke asspec-plan. - No code in the working folder (empty or near-empty directory, no real source files) → stop. There is nothing to research; propose
spec-prdto capture the product idea instead.
Step 1 — Scope and entry points
- Read every user-named file in full. No
limit/offset. Partial reads cascade into wrong conclusions. Done in your own session before any sub-agent spawns. - Decompose the question into threads — modules, layers, data flows, lifecycles, integration points. One thread = one sub-agent in Step 2.
- Check prior research in
docs/agents/research/(filenames + frontmatter only). If a report covers the same ground, decide: extend or new. Verify it is still accurate viagit logsince itsgit_commit.
Step 2 — Parallel exploration
Spawn one sub-agent per thread, in parallel. Sub-agent contract:
- Find files touching the thread's concern.
- Return paths + 3–5 line summaries per file.
- Cite
file:linefor relevant symbols, types, entry points. - Do not analyse. Do not evaluate. Deep reading happens in Step 3.
Agent shapes:
- File-locator: "where in the tree does X live?"
- Code-reader: "summarise this directory's public surface."
- Pattern-finder: "show similar features already implemented."
- History: "what changed in this file in the last six months?"
Web research, when explicitly requested: spawn web-search sub-agents in the same shape. If the web-search tool already returns a synthesised answer, call it directly instead of wrapping it.
Wait for every sub-agent to return before continuing.
Step 3 — Deep read in your own session
Treat sub-agent output as pointers, not evidence. Re-read the files that matter, in full.
- Prioritise files defining interfaces, types, central control flow.
- Skip files sub-agents covered adequately and that sit outside the central control flow.
- Trace how data and control move across the files you read.
Step 4 — Synthesise and write
- Capture metadata. Run
scripts/metadata.pyfrom the repo root for JSON containing ISO date, HEAD short SHA, branch, repo name. Copy the values into the front-matter. If the script is unavailable, gather equivalents fromgit rev-parseand the current UTC clock. - Pick a kebab-case slug. Filename:
YYYY-MM-DD-<slug>.mdunderdocs/agents/research/. A repo-levelAGENTS.mdorCLAUDE.mdmay override the destination folder — honour it. - Create the directory if missing, then write the file in the shape defined in
references/report-template.md— read that file, copy its structure, and fill every<…>placeholder before saving. No<...>placeholders survive in the saved file.
The report is self-contained: framing, definitions, pointers — all inside the document.
Step 5 — Hand back
- Summarise findings in two or three sentences in chat, link the new report, ask if a follow-up is wanted.
- Follow-up on the same topic → append
## Follow-up <YYYY-MM-DD HH:MM>to the same file. Re-spawn sub-agents only for genuinely new ground; otherwise answer from context.
Web research mode
When the topic is external, read repo files only if they bear on it. The references/report-template.md shape is not mandatory — adapt the shape to the request.
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.

