Agent skill

codebase-analysis

Produce a structured codebase analysis report with architecture overview, critical files, patterns, and actionable recommendations.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill codebase-analysis-sequenzia-agent-alchemy-5 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 26 KB
Bundled scripts: none
Requires: - deep-analysis - technical-diagrams
Path: skills/analysis/codebase-analysis-sequenzia-agent-alchemy-5/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

The skill runs a structured, three-phase workflow to analyze a codebase. It first performs a deep analysis (with optional context and cache checks), then generates a formal report using a provided template and diagram guidance, and finally offers post-analysis actions (save reports, update docs, or store a memory summary) with a multi-step, user-driven flow.

How it works

  • Phase 1: Deep Analysis
    • Determine analysis context from input arguments or default to a general codebase understanding.
    • Check for a cached exploration manifest at .agents/sessions/exploration-cache/manifest.md; if valid, offer to use cached results or run a fresh analysis. If using cache, read synthesis from .agents/sessions/exploration-cache/synthesis.md and recon_summary.md, set CACHE_HIT and CACHE_TIMESTAMP accordingly, and skip to Phase 4 metadata capture.
    • If no valid cache, proceed to run the deep-analysis workflow (refer to the deep-analysis skill) with the given context. After completion, set CACHE_TIMESTAMP to null.
    • Verify results and capture metadata: ensure synthesis covers the context, fill gaps if possible, and record CACHE_HIT, CACHE_TIMESTAMP, and number of explorer agents used.
  • Phase 2: Reporting
    • Load diagram guidance from the technical-diagrams skill and render Mermaid diagrams in Architecture Overview and Relationship Map sections.
    • Load a Report Template and structure the presentation into sections: Executive Summary, Architecture Overview, Tech Stack, Critical Files, Patterns & Conventions, Relationship Map, Challenges & Risks, Recommendations, and Analysis Methodology.
    • After presenting Phase 2, proceed to Phase 3.
  • Phase 3: Post-Analysis Actions
    • Step 1: Prompt user for actions (save report, save custom report, update documentation, keep a condensed summary in memory).
    • Step 2: Execute chosen actions in a fixed order with sub-steps for file path prompts and draft generation (for codebase analysis report, custom report, and docs).
    • Step 3: Actionable Insights Follow-up (always after Step 2). Prompt user to address insights, extract actionable items from the Phase 2 report, present them ordered by severity, and allow user choice to apply, skip, or modify. For high/medium/low items, determine complexity and assign tasks to code-architect or code-explorer agents if needed, else propose direct fixes. Summarize results with modified files and status.
    • Step 4: Complete workflow by summarizing executed actions and confirming completion.
  • Error Handling and Agent Coordination
    • If any phase fails, provide options to retry, skip, or abort. Documentation updates failures allow retry or manual apply. Agent delegation failures fall back to direct file investigation.

When to use it

  • Use when you need a structured, report-driven analysis of a codebase, including architecture overview, critical files, patterns, and actionable recommendations. Trigger the workflow to leverage deep-analysis coordination and generate a formal report with diagrams and a structured template.

What it can touch

  • Tools: claude-code is used as part of the workflow for deep-analysis and synthesis coordination.
  • Artifacts: exploration cache at .agents/sessions/exploration-cache/, synthesis.md, recon_summary.md, Mermaid diagrams, and a markdown-formatted Codebase Analysis Report following the provided template.

Caveats

  • Requires access to the deep-analysis and technical-diagrams capabilities. Cache validity depends on TTL (default 24 hours). If cache is valid, results may be reused; otherwise, a fresh analysis is performed. The workflow delegates complex fixes to code-architect or code-explorer agents when necessary, with fallback to direct file investigation if delegation fails.
From the SKILL.md

# Codebase Analysis Workflow Execute a structured 3-phase codebase analysis workflow to gather insights. ## Phase Overview 1. **Deep Analysis** — Explore and synthesize codebase findings via deep-analysis skill 2. **Reporting** — Present structured analysis to the user 3. **Post-Analysis Actions** — Save, document, or retain analysis insights --- ## Phase 1: Deep Analysis **Goal:** Explore the codebase and synthesize findings. 1. **Determine analysis context:** - If arguments are provided, use them as the analysis context - If no arguments, set context to "general codebase understanding" 2. **Check for cached results:** - Check if `.agents/sessions/exploration-cache/manifest.md` exists - If found, read the manifest and verify: `codebase_path` matches the current working directory, and `timestamp` is within the configured cache TTL (default 24 hours) - **If cache is valid**, prompt the user to choose: - **Use cached results** (show the formatted cache date) — Read cached synthesis from `.agents/sessions/exploration-cache/synthesis.md` and recon from `recon_summary.md`. Set `CACHE_HIT = true` and `CACHE_TIMESTAMP` to the cache's timestamp. Skip step 3 and proceed directly to step 4.

What's inside
Steps it walks through
  1. Phase Overview
  2. Phase 1: Deep Analysis
  3. Phase 2: Reporting
  4. Phase 3: Post-Analysis Actions
  5. Step 1: Select actions
  6. Step 2: Execute selected actions
  7. Step 3: Actionable Insights Follow-up
  8. Step 4: Complete the workflow
  9. Error Handling
  10. General
  11. Documentation Update Failures (Step 2c)
  12. Agent Delegation Failures (Step 3c)
  13. Agent Coordination
  14. Report Template
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the codebase-analysis skill do?

Produce a structured codebase analysis report with architecture overview, critical files, patterns, and actionable recommendations.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill codebase-analysis-sequenzia-agent-alchemy-5 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going