From claude-dev-kit
Analyzes existing codebases from a given directory (or project root) and generates context documents (architecture, requirements, test plan) for downstream skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-dev-kit:scanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- AUTO-GENERATED by scripts/gen_skills.py — DO NOT EDIT. Edit SKILL.md.tmpl instead. -->
Run silently at the start:
python3 scripts/kit_update_check.py 2>/dev/null
If exit code is 1 (update available), show the output to the user once. Do not block the workflow.
Run these checks silently at the start. Use results to adapt behavior:
[ -f issues.md ] — if true, this project uses the sprint system. Respect issue numbering and STATUS.md.[ -f docs/sprint_state.md ] — if true and Status shows running, a sprint is active. Be aware of parallel work in worktrees.[ -f docs/prd_digest.md ] — if true, read it for quick project context before starting.gh auth status before any GitHub operation.At the start of this skill, check if contributor mode is enabled:
python3 scripts/kit_config.py get contributor_mode
If the result is true:
python3 scripts/contributor_report.py --skill <name> --step "<step>" --rating <N> --notes "<friction or suggestion>"
docs/ directory exists.$ARGUMENTS is provided and is a valid directory path, use it as the scan root. Otherwise, use the project root.--force flag in $ARGUMENTS: if present, skip existing-file prompts and overwrite all.--audit flag in $ARGUMENTS: if present, produce only docs/scan_report.md (read-only mode, no other docs generated).docs/ files. If any target documents already exist and neither --force nor --audit is set, ask the user: overwrite or keep existing?CHECKPOINT — MANDATORY — NEVER SKIP Verify the scan_context contains all required sections: Project Identity, Architecture, Inferred Requirements, Quality Assessment. If any section is missing or empty: STOP and retry the codebase-scanner agent before proceeding.
Using the scan_context and README (if present), generate docs/prd_digest.md:
[CONFIRMED] if README states it, [INFERRED] otherwiseAll items should carry confidence tags: [CONFIRMED] (documented/tested) or [INFERRED] (code-only).
CHECKPOINT — MANDATORY — NEVER SKIP Verify
docs/prd_digest.mdexists and contains all required sections (Goals, Target User, Must-have Features, Key NFRs, Scope Boundaries). If the file is missing or any section is empty: STOP and regenerate before proceeding.
Step 1: scan-analyst → docs/requirements.md
docs/prd_digest.md content + README content (if exists)[CONFIRMED]/[INFERRED] tags and source file referencesCHECKPOINT — MANDATORY — NEVER SKIP Verify
docs/requirements.mdexists and contains Goals, Functional Requirements, and NFRs sections. If missing or incomplete: STOP and retry the scan-analyst agent before proceeding.
Step 2 & 3 — MUST invoke both subagents simultaneously via two parallel Task tool calls in a single message:
scan-architect → docs/architecture.md
docs/prd_digest.md + docs/requirements.md(Conditional) ux-designer → docs/ux_spec.md
docs/prd_digest.md + docs/requirements.mdAfter both/all Task calls return, verify outputs exist before proceeding.
CHECKPOINT — MANDATORY — NEVER SKIP Verify
docs/architecture.mdexists and contains Tech Stack and Modules sections. If missing or empty: STOP and retry the scan-architect agent before proceeding.
Step 4 (Conditional): scan-data-modeler → docs/data_model.md
docs/prd_digest.md + docs/requirements.md + docs/architecture.mdCHECKPOINT — CONDITIONAL If data-modeler was invoked: verify
docs/data_model.mdexists and contains Schema section. If skipped: no checkpoint needed.
Step 5: scan-qa-designer → docs/test_plan.md
docs/prd_digest.md + docs/requirements.md + docs/architecture.md + docs/data_model.md (if exists)CHECKPOINT — MANDATORY — NEVER SKIP Verify
docs/test_plan.mdexists and contains Current State Assessment and Risk Matrix sections. If missing or incomplete: STOP and retry the scan-qa-designer agent before proceeding.
Step 6: scan-planner → issues.md
docs/prd_digest.md + docs/requirements.md + docs/architecture.md + docs/data_model.md (if exists) + docs/test_plan.mdCHECKPOINT — MANDATORY — NEVER SKIP Verify
issues.mdexists and contains at least one ISSUE entry with Evidence field. If missing or incomplete: STOP and retry the scan-planner agent before proceeding.
Create/update STATUS.md with:
[CONFIRMED] vs [INFERRED] tags across all documents[INFERRED] tags: suggest reviewing and confirming key requirements/implement for high-risk test cases/implement ISSUE-001 or /kickoff for formal planningdocs/prd_digest.md (always)docs/requirements.md (always)docs/architecture.md (always)docs/data_model.md (only if DB detected)docs/test_plan.md (always)issues.md (always)STATUS.md (always)issues.md:
scripts/validate_issues.py issues.md if the script existsdocs/requirements.md/implement ISSUE-001 to start fixing identified issues, or /kickoff for formal planning from scratch--audit)If --audit flag is present:
docs/scan_report.md with:
When invoking each subagent via the Task tool:
docs/<file>.md. Follow your agent guidelines precisely."[CONFIRMED] = test-backed or config-documented, [INFERRED] = code-only evidenceSTATUS.md under a ## Warnings section.docs/ cannot be created: stop immediately and report the filesystem error./scan overwrites all outputs — safe to retry.--audit for a non-destructive read-only analysis.--audit flag is used, the skill MUST NOT write any document except docs/scan_report.md.npx claudepluginhub pillip/claude-dev-kit --plugin claude-dev-kitRead-only codebase scanner that produces project-documentation.md — authoritative ground truth for stack, structure, and conventions. Entry point for brownfield BMAD planning before PRDs or architecture docs.
Analyzes codebase structure with parallel mapper agents to produce .planning/codebase/ documents covering tech stack, architecture, quality, and concerns. Supports fast scans and query modes.