agentleFS
wavestone-sawavestone-sa/agentic-spec-skills/skills/spec-research/SKILL.md

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

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. komluk/scaffolding★ 16same name
    2. eve0415/cella★ 7same name
    3. 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.

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
  1. Distinctive:

    Document cross-component wiring, not just isolated components.

    line 17
  2. Distinctive:

    Do root cause analysis ("why does this break?", "why is it like this?").

    line 22
  3. Very specific:

    Use the words should, could be improved, or instead in normative sentences.

    line 25
  4. Distinctive:

    If the user mixes research with a feature request, stop and ask them to split it.

    line 27
  5. Distinctive:

    No question → ask once for the topic, wait.

    line 32
  6. Very specific:

    No code in the working folder (empty or near-empty directory, no real source files) → stop.

    line 34
  7. Distinctive:

    Do not analyse. Do not evaluate.

    line 49
  8. Distinctive:

    Wait for every sub-agent to return before continuing.

    line 60
  9. Distinctive:

    Treat sub-agent output as pointers, not evidence.

    line 64
  10. Very specific:

    Capture metadata: Run scripts/metadata.py from the repo root for JSON containing ISO date, HEAD short SHA, branch, repo name.

    line 72
  11. Very specific:

    Follow-up on the same topic → append ## Follow-up <YYYY-MM-DD HH:MM> to the same file.

    line 81
  12. Very specific:

    When the topic is external, read repo files only if they bear on it.

    line 85

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:line for 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, or instead in 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 /clear and re-invoke as spec-plan.
  • No code in the working folder (empty or near-empty directory, no real source files) → stop. There is nothing to research; propose spec-prd to capture the product idea instead.

Step 1 — Scope and entry points

  1. 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.
  2. Decompose the question into threads — modules, layers, data flows, lifecycles, integration points. One thread = one sub-agent in Step 2.
  3. 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 via git log since its git_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:line for 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

  1. Capture metadata. Run scripts/metadata.py from 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 from git rev-parse and the current UTC clock.
  2. Pick a kebab-case slug. Filename: YYYY-MM-DD-<slug>.md under docs/agents/research/. A repo-level AGENTS.md or CLAUDE.md may override the destination folder — honour it.
  3. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.