analyze-codebase · git:20260224.970d354 · 2026-02-24 · sha256 a373293b34fcaa67

analyze-codebase git:20260224.970d354A

Immutable. This exact content never changes and is served at /api/v1/blob/a373293b34fcaa67.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_kbhsdzkhv4rth6pm/a373293b34fcaa67d338748ec3d3f654d9b253599bb82faf518e6c5a36749bb3.json

Then /plugin install analyze-codebase@markdownregistry-kbhsdzkhv4rth6pm in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: analyze-codebase
description: Codebase discovery and analysis for Stage B of the VibeFlow docs-first workflow
metadata:
  triggers:
    - discovery
    - analyze codebase
    - Stage B
    - codebase analysis
---

# analyze-codebase

Codebase discovery and analysis for Stage B of the VibeFlow docs-first workflow.

## Purpose

This skill creates Discovery documents for Stage B:
- Analyze existing specs and code
- Validate spec-code alignment
- Map dependencies and side effects
- Identify reusable components

## Workflow

```
Stage B: Discovery
    │
    ├── Analyze existing specs and code
    ├── Validate spec-code alignment
    ├── Map dependencies and side effects
    └── Identify reusable components
```

## Usage

### Create Discovery Document

```
/analyze-codebase <ID>
```

Creates `docs/discovery/disco-<ID>.md` with all 5 phases.

Example:
```
/analyze-codebase 030
```

## Document Requirements

### Discovery (`docs/discovery/disco-<ID>.md`)

Required phases:
- Phase 0: Spec Discovery (analyze existing specs)
- Phase 1: Spec-Code Validation (verify accuracy)
- Phase 2: Test Impact Analysis (test update checklist)
- Phase 3: Dependency & Side Effect Mapping
- Phase 4: Reusable Component Discovery
- Risk Assessment & Go/No-Go Recommendation

## Validation

- `scripts/validate_discovery.py` — Validate discovery document

## References

See `references/`:
- `discovery-guide.md` — Discovery phases guide

## Manifest Update

After completing Stage B, update `docs/workflow-state.yaml`:

- Set `stage: B`
- Set `docs.discovery: docs/discovery/disco-<ID>.md`

To advance to the next stage: `/manage-work advance <ID>`