Skip to content
Agent Orchestration
Skill

/research-codebase

Document codebase as-is with research directory for historical context.

From plugin
atomic
88622 skills9 agents

Claude Code

$ npx -y skills add bastani-inc/atomic --skill research-codebase --agent claude-code

SKILL.md

research-codebase.SKILL.md
name: research-codebase
description: Document codebase as-is with research directory for historical context.

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.

The user's research question/request is: **$ARGUMENTS**

Steps to follow after receiving the research query:

<EXTREMELY_IMPORTANT>

  • OPTIMIZE the research question using your prompt-engineer skill to refine phrasing and structure for maximum clarity and precision.
  • After research is complete and the research artifact(s) are generated, provide an executive summary of the research and path to the research document(s) to the user, and ask if they have any follow-up questions or need clarification.

</EXTREMELY_IMPORTANT>

1. **Read any directly mentioned files first:**

  • If the user mentions specific files (tickets, docs, or other notes), read them FULLY first
  • **IMPORTANT**: Use the `readFile` 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

2. **Determine the compatibility posture:**

  • Before decomposing the research request, identify whether this project must preserve backward compatibility for real downstream users.
  • If the user explicitly allows breaking changes, public API changes, cleanup, or says there are no real users/downstream dependencies, set `breaking_changes_allowed: true`.
  • If the user mentions production users, published APIs, downstream consumers, migration safety, or compatibility requirements, set `breaking_changes_allowed: false`.
  • If the posture is not inferable from the request, ask the user once before continuing, using the available structured question tool when possible.
  • Carry this posture into the research plan, every sub-agent prompt, the final research document frontmatter, and the `## Compatibility Context` section.
  • When `breaking_changes_allowed: true`, document existing legacy behavior, compatibility shims, optional flags, and public APIs as current state, not as constraints future specs must preserve unless the user explicitly asks for preservation.
  • When `breaking_changes_allowed: false`, document public APIs, compatibility-sensitive surfaces, downstream callers, migration constraints, and behavior that future work must preserve.

3. **Analyze and decompose the research question:**

  • Break the research question down 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
  • Include the compatibility posture in the plan so later synthesis and spec creation inherit the same constraint.
  • Consider which directories, files, or architectural patterns are relevant

4. **Spawn parallel sub-agent tasks:**

  • 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)
  • Output directory: `research/docs/` relative to the current working directory
  • Examples:
  • The database logic is found and can be documented in `research/docs/2024-01-10-database-implementation.md`
  • The authentication flow is found and can be documented in `research/docs/2024-01-11-authentication-flow.md`

**IMPORTANT**: All agents are documentarians, not critics. They will describe what exists without suggesting improvements or identifying issues.

**For research directory:**

  • Use the **codebase-research-locator** agent to discover what documents exist about the topic
  • Use the **codebase-research-analyzer** agent to extract key insights from specific documents (only the most relevant ones)

**For online search:**

  • VERY IMPORTANT: In case you discover external libraries as dependencies, use the **codebase-online-researcher** agent for external documentation and resources
  • The agent fetches live web content using the **agent-browser** skill's `agent-browser` command (or `curl`). Instruct it to apply the token-efficient fetch order: (1) try `curl https://<site>/llms.txt` for an AI-friendly index (see [llmstxt.org](https://llmstxt.org/llms.txt)), (2) try `curl <url> -H "Accept: text/markdown"` to get pre-converted Markdown (supported on Cloudflare-hosted docs via [Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)), (3) fall back to opening the page with `agent-browser` and taking a snapshot
  • Instruct the agent to return LINKS with their findings and INCLUDE those links in the research document
  • The agent should persist reusable source documents under `research/web/<YYYY-MM-DD>-<kebab-case-topic>.md` (with frontmatter noting `source_url`, `fetched_at`, and `fetch_method`) so future research can reuse them without re-fetching
  • Output directory for the synthesized web research artifacts: `research/web/`:

When you fetch a document that is worth keeping for future sessions (reference docs, API schemas, SDK guides, release notes, troubleshooting writeups, architecture articles), `write` it to `research/web/<YYYY-MM-DD>-<kebab-case-topic>.md` with frontmatter capturing:

          ---
          source_url: <original URL>
          fetched_
Read more
@flora131
Ships withatomic

The verifiable coding agent runtime. Define your coding agent's process in natural language with stages, checks, and approval gates instead of hoping it follows your instructions. Primitives for verifiable software factories.

88622 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
886
Star history of flora131/atomic on GitHub, a chart by star-history.com

Other skills on atomic.

intercom

intercom

Streamline session-to-session coordination with the intercom extension. Send messages, delegate tasks, and coordinate work across…

@flora131@flora131Install Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@flora131@flora131Install Skill
agent-desktop

agent-desktop

Operate native desktop applications on macOS, Windows and Linux through accessibility trees with the agent-desktop CLI. Use when…

@flora131@flora131Install Skill
bro

bro

Restate the last message in plain human language, with no jargon.

@flora131@flora131Install Skill
create-spec

create-spec

Create a detailed execution plan/spec/PRD for implementing features or refactors in a codebase, designed around the program's…

@flora131@flora131Install Skill
feedback

feedback

Draft, revise and post privacy-scrubbed Atomic bug reports or enhancements through ordinary conversation.

@flora131@flora131Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about research-codebase.

Which coding agents can use research-codebase?
research-codebase installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.