Produce a structured codebase analysis report with architecture overview, critical files, patterns, and actionable recommendations. Use when asked to "analyze codebase", "explore codebase", "understand this codebase", "map the codebase", "give me an overview of this project", "what does this codebase do", "codebase report", "project analysis", "audit this codebase", or "how is this project structured".
Generates structured codebase analysis reports with architecture overviews, critical files, and actionable recommendations.
/plugin marketplace add sequenzia/agent-alchemy/plugin install agent-alchemy-core-tools@agent-alchemyThis skill is limited to using the following tools:
references/actionable-insights-template.mdreferences/report-template.mdExecute a structured 3-phase codebase analysis workflow to gather insights.
CRITICAL: Complete ALL 3 phases. The workflow is not complete until Phase 3: Post-Analysis Actions is finished. After completing each phase, immediately proceed to the next phase without waiting for user prompts.
Goal: Explore the codebase and synthesize findings.
Determine analysis context:
$ARGUMENTS is provided, use it as the analysis contextCheck for cached results:
.claude/sessions/exploration-cache/manifest.md existscodebase_path matches the current working directory, and timestamp is within the configured cache TTL (default 24 hours)AskUserQuestion:
.claude/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.CACHE_HIT = false, and proceed to step 3CACHE_HIT = false and proceed to step 3Run deep-analysis workflow:
${CLAUDE_PLUGIN_ROOT}/skills/deep-analysis/SKILL.md and follow its workflowCACHE_TIMESTAMP = null (fresh results, no prior cache)Verify results and capture metadata:
CACHE_HIT), cache timestamp if applicable (CACHE_TIMESTAMP), and the number of explorer agents used (from the deep-analysis team plan, or 0 if cached)Goal: Present a structured analysis to the user.
Load diagram guidance:
${CLAUDE_PLUGIN_ROOT}/skills/technical-diagrams/SKILL.mdLoad report template:
${CLAUDE_PLUGIN_ROOT}/skills/codebase-analysis/references/report-template.mdPresent the analysis: Structure the report with these sections:
IMPORTANT: Proceed immediately to Phase 3. Do NOT stop here. Do NOT wait for user input. The report is presented, but the workflow requires Post-Analysis Actions. Continue directly to Phase 3 now.
Goal: Let the user save, document, or retain analysis insights from the report through a multi-step interactive flow.
Use AskUserQuestion with multiSelect: true to present all available actions:
If the user selects no actions, the workflow is complete. Thank the user and end.
Process selected actions in the following fixed order. Complete all sub-steps for each action before moving to the next.
Step 2a-1: Prompt for file location
internal/docs/ directory exists in the project root
internal/docs/codebase-analysis-report-{YYYY-MM-DD}.mdcodebase-analysis-report-{YYYY-MM-DD}.md in the project rootAskUserQuestion to let the user confirm or customize the file pathStep 2a-2: Generate and save the report
Step 2b-1: Gather report requirements
AskUserQuestion to ask the user to describe the goals and requirements for their custom report — what it should focus on, what questions it should answer, and any format preferencesStep 2b-2: Prompt for file location
internal/docs/ directory exists in the project root
internal/docs/custom-report-{YYYY-MM-DD}.mdcustom-report-{YYYY-MM-DD}.md in the project rootAskUserQuestion to let the user confirm or customize the file pathStep 2b-3: Generate and save the custom report
Step 2c-1: Select documentation files and gather directions
Use AskUserQuestion with multiSelect: true:
Then use a single AskUserQuestion to gather update directions for all selected files: "What content from the analysis should be added or updated? Provide general directions or specific sections to focus on (applies across all selected files, or specify per-file directions)."
Step 2c-2: Generate and approve documentation drafts
For each selected file, read the existing file and generate a draft based on the user's directions and Phase 2 analysis data:
Present all drafts together in a single output, clearly labeled by file. Then use AskUserQuestion:
If approved, apply updates using Edit tool (existing files) or Write tool (new files).
Condition: This step always executes after Step 2 completes. The Phase 2 analysis is available in conversation context regardless of whether a report file was saved.
Use AskUserQuestion to ask:
If the user selects "Skip", proceed to Step 4.
If the user selects "Address actionable insights":
Step 3a: Extract actionable items from the report
Parse the Phase 2 report (in conversation context) to extract items from:
If no actionable items are found, inform the user and skip to Step 4.
Step 3b: Present severity-ranked item list
${CLAUDE_PLUGIN_ROOT}/skills/codebase-analysis/references/actionable-insights-template.mdAskUserQuestion with multiSelect: true for the user to select which items to addressStep 3c: Process each selected item in priority order (High → Medium → Low)
For each item:
Assess complexity:
Plan the fix:
agent-alchemy-core-tools:code-architect agent with context: the item title, severity, description, the relevant report section text (copy the specific Challenges/Recommendations entry), and any files or components mentioned. The agent designs the fix and returns a proposal.agent-alchemy-core-tools:code-explorer agent with context: the item title, description, suspected files/components, and what needs investigation. The agent explores and returns findings for you to formulate a fix proposal.Present proposal: Show files to modify, specific changes, and rationale
User approval via AskUserQuestion:
Step 3d: Summarize results
Present a summary covering:
Summarize which actions were executed and confirm the workflow is complete.
If any phase fails:
If an Edit or Write call fails when applying documentation updates:
If a code-architect or code-explorer agent fails during actionable insight processing:
Exploration and synthesis agent coordination is handled by the deep-analysis skill in Phase 1, which uses Agent Teams with hub-and-spoke coordination. Deep-analysis performs reconnaissance, composes a team plan (auto-approved when invoked by another skill), assembles the team, and manages the exploration/synthesis lifecycle. See that skill for team setup, approval flow, agent model tiers, and failure handling details.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.