scan
Analyze an existing codebase and generate context documents (architecture, requirements, test plan) for downstream skills.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze an existing codebase and generate context documents (architecture, requirements, test plan) for downstream skills.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | scan |
| description | Analyze an existing codebase and generate context documents (architecture, requirements, test plan) for downstream skills. |
| argument-hint | [directory path, or omit for project root] |
| disable-model-invocation | true |
| allowed-tools | Task, Read, Glob, Grep, Write, Edit, Bash |
Kit root: ${CLAUDE_PLUGIN_ROOT}
scripts/ dir): prefix every kit script command with it, e.g.
bash <kit-root>/scripts/checkpoint.sh …. Absolute paths also work from worktrees.${…} placeholder above → standalone layout: run commands as written.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.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.Pre-meeting B2B account research. Produces a structured account brief (company overview, recent news, tech stack, decision structure hypothesis, hypothesized pain points, approach strategy). Use before /discovery-prep.
Generates a Discovery meeting plan from an account brief — SPIN questions, MEDDIC checklist, hypothesized pain points with verification questions, objection prep, time-boxed agenda. Run after /account-brief, before the meeting.
Generates post-meeting follow-up assets — customer-facing email draft, internal action list, CRM update fields, account_brief updates, champion status tracking. Run after any sales meeting.
Converts sales-written meeting notes (discovery type) into a PRD draft for PoC building, and updates account_brief.md with newly learned facts. The bridge between sales discovery and engineering PoC. Run after a discovery meeting, before /kickoff.
Generates a closing proposal from demo meeting notes + the actual PoC + account brief. Business-value first; technical specs in appendix. Run after a demo meeting, before contract negotiation.
Analyzes and critiques business viability. Use after /brainstorm and before /prd.