Agent skill

Research Codebase

by modiqo in modiqo/skillspec

Document and explain the codebase as-is using parallel sub-agents.

Apache-2.0Auto-check passedAgent Workflows

Install Research Codebase

skills CLI
$ npx skills add modiqo/skillspec --skill research-codebase -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install modiqo/skillspec research-codebase --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/modiqo/skillspec.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/research-codebase/source .claude/skills/research-codebase && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
research-codebase
GitHub stars
706
Token cost
~1.7k tokens
SKILL.md length
689 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Document and explain the codebase as-is using parallel sub-agents.

  • Works in 8 steps: Read directly mentioned files first → Decompose the research question → Spawn parallel sub-agents → …
  • The user asks to research
  • SKILL.md covers Your only job: document what…, When invoked without a query, Research workflow and Important notes
  • Calls git and gh; reaches github.com

What it does

Research Codebase is an agent skill from modiqo/skillspec. Document and explain the codebase as-is using parallel sub-agents. Use when the user asks to research, explore, map, document, or understand the codebase — including questions like 'how does X work', 'where is Y implemented', 'show me the architecture', 'what does this module do', or any request for codebase-level understanding. Also use when the user says /researchcodebase. Even if the user's question seems simple, if it requires reading multiple files or understanding cross-component interactions, use this skill.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Subagents. The repository describes itself as: SkillSpec makes agent skills followable, testable, and provable with Doctor risk reports, guided imports, structured contracts, and alignment proof. The licence is Apache-2.0.

When your agent uses it

  • The user asks to research
  • Understand the codebase — including questions like how does X work
  • Where is Y implemented
  • Show me the architecture

Example prompts

  • “how does X work”
  • “where is Y implemented”
  • “show me the architecture”
  • “/research-codebase”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Read directly mentioned files first
  2. Decompose the research question
  3. Spawn parallel sub-agents
  4. Synthesize findings
  5. Generate research document
  6. Add GitHub permalinks (if applicable)
  7. Present findings
  8. Handle follow-ups

What it can do on your machine

Read from SKILL.md and the folder at commit f4d9ab5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Research Codebase loads about 1.7k tokens when it runs. Until then it costs about 135 tokens; SKILL.md has 689 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~135
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from modiqo/skillspec at commit f4d9ab5, republished under its Apache-2.0 licence (© modiqo). 689 words, ~1,733 tokens.

Download SKILL.mdSave it as .claude/skills/research-codebase/SKILL.md (or your agent's skills folder).
name
research-codebase
description
Document and explain the codebase as-is using parallel sub-agents. Use when the user asks to research, explore, map, document, or understand the codebase — including questions like 'how does X work', 'where is Y implemented', 'show me the architecture', 'what does this module do', or any request for codebase-level understanding. Also use when the user says /research_codebase. Even if the user's question seems simple, if it requires reading multiple files or understanding cross-component interactions, use this skill.
model
opus

Research Codebase

Conduct comprehensive read-only research across the codebase by spawning parallel sub-agents and synthesizing their findings into a structured document.

Your only job: document what exists

  • DO NOT suggest improvements or changes unless explicitly asked
  • DO NOT perform root cause analysis unless explicitly asked
  • DO NOT propose enhancements, critique the implementation, or recommend refactoring
  • ONLY describe what exists, where it exists, how it works, and how components interact
  • You are creating a technical map of the existing system

When invoked without a query

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.

Research workflow

1. Read directly mentioned files first

If the user mentions specific files (docs, configs, TOML, JSON), read them FULLY before doing anything else. Use the Read tool without limit/offset parameters. Read these yourself in the main context — this ensures full context before decomposing the research.

2. Decompose the research question
  • Break the query into composable research areas
  • Think deeply about underlying patterns, connections, and architectural implications
  • Identify specific components, patterns, or concepts to investigate
  • Create a research plan with tasks to track subtasks
  • Pay special attention to Rust-specific structures: crates, modules, traits, impls, derive macros, feature flags
3. Spawn parallel sub-agents

Create multiple agents to research different aspects concurrently. Use the specialized agents:

Codebase research:

  • codebase-locator — find WHERE files and components live
    • Look for Cargo.toml, lib.rs, main.rs, mod.rs to understand crate/module structure
    • Search *.rs files, build.rs, .cargo/config.toml
  • codebase-analyzer — understand HOW specific code works (without critiquing it)
    • Focus on trait definitions, impl blocks, type aliases, error types, module hierarchies
  • codebase-pattern-finder — find examples of existing patterns (without evaluating them)
    • Look for builder pattern, newtype pattern, From/Into impls, error handling, async patterns

Web research (when external context helps):

  • web-search-researcher — external docs, crate docs, RFCs, blog posts
    • Spawn proactively when the topic involves external crates, Rust language features, or ecosystem patterns
    • Instruct them to return LINKS with findings — include those links in the final report

All agents are documentarians, not critics. They describe what exists without suggesting improvements.

Agent usage strategy:

  • Start with locator agents to find what exists
  • Then use analyzer agents on the most promising findings
  • Run multiple agents in parallel when searching for different things
  • Each agent knows its job — tell it what you're looking for, not how to search
  • Remind agents they are documenting, not evaluating
Show full SKILL.md (282 more words)Show less
4. Synthesize findings

Wait for ALL sub-agents to complete before proceeding. Then:

  • Compile all results
  • Connect findings across crates, modules, and components
  • Include specific file paths and line numbers
  • Highlight patterns, connections, and architectural decisions
  • Answer the user's questions with concrete evidence
  • Document trait relationships, generic type parameters, and lifetime annotations where relevant
5. Generate research document

Structure the output as:

markdown
# Research: [Topic]

**Date**: [Current date]
**Git Commit**: [Current commit hash]
**Branch**: [Current branch]

## Research Question
[Original query]

## Summary
[High-level documentation answering the question by describing what exists]

## Crate & Module Structure
[Workspace layout, crate dependencies, module tree relevant to the research]

## Detailed Findings

### [Component/Area 1]
- Description of what exists (file.rs:line)
- How it connects to other components
- Current implementation details (without evaluation)
- Key traits, types, and impls involved

### [Component/Area 2]
...

## Code References
- `path/to/file.rs:123` — Description
- `another/module/mod.rs:45-67` — Description

## Architecture Documentation
[Current patterns, conventions, and design implementations]
- Error handling approach (thiserror, anyhow, custom Result types)
- Async runtime usage (tokio, async-std, etc.)
- Serialization patterns (serde derives, custom impls)
- Feature flag organization

## Open Questions
[Areas that need further investigation]
  • Check if on main branch or if commit is pushed: git branch --show-current and git status
  • If on main/master or pushed, generate permalinks:
    • Get repo info: gh repo view --json owner,name
    • Format: https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}
  • Replace local file references with permalinks
7. Present findings
  • Present a concise summary to the user
  • Include key file references for easy navigation
  • Ask if they have follow-up questions
8. Handle follow-ups
  • Append to the same research document under ## Follow-up Research [timestamp]
  • Spawn new sub-agents as needed

Important notes

  • Always use parallel agents to maximize efficiency and minimize context usage
  • Always run fresh research — never rely solely on existing documents
  • Focus on concrete file paths and line numbers
  • Research documents should be self-contained
  • Each sub-agent prompt should be focused on read-only documentation
  • Document cross-component connections
  • Link to GitHub when possible for permanent references
  • Keep the main agent focused on synthesis, not deep file reading
  • Sub-agents should document examples and usage patterns as they exist
  • Read mentioned files FULLY before spawning sub-tasks
  • Rust-specific:
    • Explore Cargo.toml and Cargo.lock for dependency graphs
    • Map out workspace members
    • Document pub visibility boundaries
    • Note #[cfg(...)] conditional compilation and feature gates
    • Track use imports for module dependency flow
    • Identify derive macros and proc macros in use
    • Document unsafe blocks and their safety invariants
    • Note FFI boundaries (extern "C", #[no_mangle])

© modiqo, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/research-codebase/source of modiqo/skillspec.

Open the folder on GitHubat commit f4d9ab5

Compare with similar skills

Research Codebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Research Codebase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Research Codebase this skillmodiqo/skillspec706—~1.7kAutomated safety check: PassApache-2.0
Claude Code Agent Developmentanthropics/claude-plugins-official37k8 repos~2.8kAutomated safety check: PassApache-2.0
Subagent Driven DevelopmentAsvarox/allkaraoke26137 repos~1.2kAutomated safety check: PassNone
Dispatching Parallel Agentsultralisp/ultralisp25840 repos~1.5kAutomated safety check: PassNone
Paseo Advisor Second Opiniongetpaseo/paseo20k1 repos~756Automated safety check: PassCustom licence
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    37k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Subagent Driven Development

    Asvarox/allkaraoke

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    261 GitHub starsUsed in 37 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Dispatching Parallel Agents

    ultralisp/ultralisp

    A skill your agent uses when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

    258 GitHub starsUsed in 40 repos~1.5k tokens
    Agent WorkflowsAuto-check passed
  • Launches one separate agent through Paseo to give a second opinion on the current task, with a self-contained briefing and no permission to edit files.

    20k GitHub starsUsed in 1 repo~756 tokens
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • O2 Review Loop

    openobserve/openobserve

    Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.

    22k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from modiqo/skillspec

All 9 skills in this repo
  • Code Review

    modiqo/skillspec

    Multi-agent code review with deep analysis. An agent skill from modiqo/skillspec.

    706 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Rote Browse

    modiqo/skillspec

    A skill your agent uses when the task needs to browse a website with rote, browse Gmail or an email web app with rote, attach to an active browser, inspect logged-in web app state, snapshot or slice…

    706 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Rote Shell

    modiqo/skillspec

    A skill your agent uses when the task needs to run a local command and remember the result, inspect CLI output with provenance, follow a log or process stream, start or observe a background job…

    706 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Commit Convention

    modiqo/skillspec

    A skill your agent uses when writing commit messages, creating PR titles, pushing commits, or creating PRs — ensures conventional commit format and that formatting/linting pass before any push

    706 GitHub stars~398 tokensUpdated 1 mo ago
    Auto-check passed
  • Rote Shell

    modiqo/skillspec

    A skill your agent uses for CLI and shell work through rote: running local commands with rote exec, capturing stdout/stderr/files, following logs and background processes, checking dependency…

    706 GitHub stars~7.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Generic Code Review

    modiqo/skillspec

    Review code changes by collecting the review target, researching context, checking risks, and reporting findings before summary.

    706 GitHub stars~560 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Research Codebase

What does Research Codebase do?

Document and explain the codebase as-is using parallel sub-agents. Research Codebase is an agent skill from modiqo/skillspec. Document and explain the codebase as-is using parallel sub-agents.

When should I use Research Codebase?

Research Codebase fits situations like: the user asks to research; understand the codebase — including questions like how does X work; where is Y implemented; show me the architecture.

How do I install Research Codebase in Claude Code?

Run `npx skills add modiqo/skillspec --skill research-codebase -a claude-code`. Or copy the skill folder (.claude/skills/research-codebase/source in modiqo/skillspec) into .claude/skills/research-codebase in your project. Claude Code loads it when a task matches its description.

How do I install Research Codebase in Codex?

Run `npx skills add modiqo/skillspec --skill research-codebase -a codex`. Or copy the skill folder (.claude/skills/research-codebase/source in modiqo/skillspec) into .agents/skills/research-codebase in your project. Codex loads it when a task matches its description.

Can I use Research Codebase in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modiqo/skillspec --skill research-codebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/research-codebase, .gemini/skills/research-codebase, .github/skills/research-codebase and .opencode/skills/research-codebase in your project.

What does Research Codebase need to run?

Going by SKILL.md and its folder, Research Codebase needs the command-line tools its instructions call (git and gh).

Does Research Codebase access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Research Codebase safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Research Codebase use?

Research Codebase is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Research Codebase use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Research Codebase?

Skills that share tags, products or a category with Research Codebase: Claude Code Agent Development (anthropics/claude-plugins-official, 37k stars), Subagent Driven Development (Asvarox/allkaraoke, 261 stars), Dispatching Parallel Agents (ultralisp/ultralisp, 258 stars) and Paseo Advisor Second Opinion (getpaseo/paseo, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Research Codebase?

modiqo (a GitHub organization) maintains it in modiqo/skillspec, which has 706 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 9, 2026.

Source: modiqo/skillspec on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.