Research codebase

From atomicinnovation/accelerator · View interactive version

Research codebase is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Conduct comprehensive codebase research by spawning parallel subagents and synthesising findings into a research document. Use when the user needs to deeply understand a codebase area or answer technical questions.

How to use this skill

Skill file

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

first

entire files

any sub-tasks

Step 2: Analyse and decompose the research question

architectural implications the user might be seeking

Step 3: Spawn parallel sub-agent tasks for comprehensive research

For codebase research:

implementations

For meta directory:

topic in the configured research, plans, and decisions directories (shown

above)

documents (only the most relevant ones)

For web research (only if user explicitly asks):

resources

findings, and please INCLUDE those links in your final report

The key is to use these agents intelligently:

Step 4: Wait for all sub-agents to complete and synthesise findings

Step 5: Gather metadata for the research document

generate all relevant metadata.

Step 6: Populate frontmatter and generate the research document

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:

.md), always quoted as a YAML string

(config → VCS user → prompt)

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

ref ("work-item:NNNN"). Fill when the research has an owning work

item; otherwise omit the key.

(["codebase-research:NNNN", ...]). Fill when related artifacts are

explicit; otherwise omit the key.

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)

(use the branch and status commands from the session's VCS context)

https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}

Step 8: Present findings

Step 9: Handle follow-up questions

the update

frontmatter

Important notes:

usage

documents

live findings

spawning sub-tasks

git_commit)

!accelerator config instructions research-codebase --fail-safe

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.