research-codebase

Document a codebase's implementation through read-only exploration and evidence-based synthesis.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/corticalstack/claude-code-flow --skill research-codebase-corticalstack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: research-codebase
Source: https://github.com/corticalstack/claude-code-flow/tree/main/.claude/skills/research-codebase
Command: npx skills add https://github.com/corticalstack/claude-code-flow --skill research-codebase-corticalstack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It turns an ambiguous engineering question into a concrete, evidence-backed technical map by documenting how the existing codebase is structured and how its parts connect.

Core Features & Use Cases

  • Parallel codebase documentation: Spawns specialized, read-only sub-agents to locate files, explain how specific code works, and identify existing patterns—without making changes.
  • Research-question-driven decomposition: Breaks the user’s topic into targeted research areas and gathers concrete references (paths and line numbers).
  • Self-contained research artifact: Produces a dated Markdown research document under flow/research/ with YAML frontmatter, summaries, detailed findings, and code references.

Quick Start

Use the command /research-codebase with your research question or the GitHub issue URL you want answered.

Frequently Asked Questions about research-codebase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document an existing codebase to understand component interactions?

Documenting an existing codebase requires structured, read-only exploration to map component interactions and feature areas. This process deploys parallel sub-agents to locate files and gather concrete references, producing an evidence-backed technical map of the repository architecture.

What is the best way to research a GitHub issue within a repository?

Researching a GitHub issue involves decomposing the linked topic into targeted research areas and exploring the current git commit context. It generates a dated Markdown research document with YAML frontmatter, summarizing detailed findings and providing exact file path and line references.

Can I generate codebase documentation without modifying the source code?

Yes, you can generate codebase documentation without modifying source code by using read-only analysis. Specialized sub-agents locate files, explain how specific code works, and identify existing patterns safely, ensuring the repository remains completely unchanged during the research process.

How does evidence-based synthesis work for architecture discovery?

Evidence-based synthesis for architecture discovery works by breaking a research question into targeted areas and gathering concrete references. It extracts exact file paths and line numbers during read-only code exploration, then combines these references into a comprehensive technical map.

Do I need a specific git branch or commit context to map technical flows?

Yes, you need a specific git branch and commit context to accurately map technical flows. The research process documents the repository implementation as it exists today, generating reports under flow/research/ that capture the exact state of the codebase from the current commit.

What are the limitations of read-only codebase research?

The main limitation of read-only codebase research is that it cannot fix or modify the code it analyzes; it strictly documents existing patterns and component interactions. Users needing code changes, refactoring, or active issue resolution must apply separate execution steps after the research phase.