[Documentation] Use when generating, smart-merging or refactoring the root AI context (CLAUDE.md, AGENTS.md) and its Claude/Codex projections. Config file only: project-config.
日本語の概要は準備中です。原文の説明を表示しています。
[Planning] Use when a workflow step or the user asks for adversarial scenarios for failure, data integrity, access, replay and recovery risks before planning.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<!-- PROMPT-ENHANCE:STEP-TASK-ANCHOR:END -->[BLOCKING] Run phases in order; update todo tracking before and after each phase. [BLOCKING] Every completed or skipped phase needs concise evidence or a reason.
Goal: Turn one selected embedded outcome slice, explicit roadmap milestone, framework/library scope, or explicitly accepted isolated change into an adversarial, observable scenario set that exposes data corruption, misleading states, access leaks, and recovery gaps before an implementation plan can be approved.
Summary:
{plan-id}/scenario-analysis.md under the plans root (default plans/; a docsRoots.plans.path entry in docs/project-config.json overrides the path) and mark the Scenario Gate PASS or BLOCKED; /plan cannot cook from a blocked gate, and an EXEMPT plan still needs this artifact./plan or record a conditional skip.Workflow: 0) resolve inputs → 1) reconstruct scope → 2) generate adversarial scenarios → 3) resolve decisions → 4) write artifact → 5) run Scenario Gate → 6) hand off to /plan.
Key Rules:
<request>$ARGUMENTS</request>
MUST ATTENTION READ .claude/skills/shared/product-roadmap-contract.md and references/scenario-template.md before analysis. Also read docs/project-config.json, docs/project-reference/docs-index-reference.md, and docs/project-reference/lessons.md when present. Use the active plan context to resolve the output directory.
Find the active owning artifact/scope brief from $ARGUMENTS, ## Plan Context, or the explicit milestone in the product-roadmap artifact (default docs/product-roadmap.md; docsRoots.productRoadmap.path in docs/project-config.json overrides). Classify applicability first, then confirm:
large_idea_decomposition block, exactly one stable slice is selected, and its outcome_slices, dependencies, non-goals, risks/evidence, and deferred owners are readable;Roadmap Applicability: EXEMPT block with reason and accepting owner, and no roadmap or milestone is fabricated;plan-id from the owning scope's parent directory; if a required scope artifact is not under {plan-id}/ in the plans root (default plans/; docsRoots.plans.path in docs/project-config.json overrides), stop BLOCKED and route to the explicit roadmap writer only for the explicit roadmap branch, or to the owning decomposition/framework/EXEMPT scope step otherwise.If any applicable input is missing, stop BLOCKED and route to its owning branch. Do not infer a slice, milestone, technical outcome, or boundary from a screen, task title, or plan filename. If an embedded scope has no replay/state/ownership/recovery/evidence risk that needs adversarial analysis, record the conditional skip reason and do not create a standalone roadmap or scenario artifact.
Write the selected slice/milestone/technical outcome as an observable sequence:
actor intent → input/action → business state change → user-visible outcome → persisted/reopened truth → later action
Name states, transitions, ownership boundaries, and non-goals. Highlight terms that could be interpreted more than one way. Use existing Feature Specs, tasks, or code only as evidence for an existing product; the scope brief remains the product boundary.
Derive situations from the actual journey, not a canned count. Cover applicable dimensions:
| Dimension | Questions to ask |
|---|---|
| Persistence / replay | What happens after refresh, reopen, retry, duplicate submit, or redeploy? |
| Validation / corruption | Can invalid input replace valid data or create a misleading partial record? |
| Concurrency | What if two tabs/actors edit or submit the same item at once? |
| Lifecycle / state | Can a state be skipped, reversed, or confused with a later state such as published/delivered? |
| Ownership / access | Can an unauthenticated, non-owner, or other store/tenant read or mutate it? |
| Deletion / relationships | Does deletion leave orphaned variants, assets, references, or history? |
| Partial failure / recovery | What if a dependent action succeeds halfway, times out, or is repeated? |
| Evidence / operations | Can completion evidence hide failure or expose secrets/sensitive data? |
For each scenario assign SCN-{MILESTONE}-{NNN}, severity (Critical, High, Medium, Low), trigger, precondition, expected business outcome/invariant, bad outcome, prevention/detection expectation, owner, and TC/evidence mapping. Use one concrete digital-catalog example only when it clarifies a non-obvious pattern; do not force irrelevant dimensions.
Use ask user question tool for each material choice the scenario analysis cannot resolve, such as conflict policy, deletion semantics, status meaning, audit/history expectations, access boundary, or acceptable recovery behavior. Present 2–4 concrete options and a recommendation. Record each decision as confirmed, deferred, or blocked.
A scenario may be deferred only when the owning decomposition block or explicit roadmap names the deferred item and its owner/follow-up artifact. “AI will handle it later” is not a decision.
Write {plan-id}/scenario-analysis.md under the plans root (default plans/; docsRoots.plans.path in docs/project-config.json overrides) incrementally using references/scenario-template.md, beside the resolved scope handoff when the selected branch requires a scenario artifact. Cite the owning decomposition/spec/task, explicit roadmap/scope brief, or framework technical brief and any existing spec/code evidence. Keep implementation choices out; record the expected behavior or operational proof that the future plan must protect.
Mark the artifact PASS only when:
blocked decision is hidden;Otherwise mark BLOCKED, name the missing decision/evidence, and stop before /plan.
Pass the scenario artifact path and scenario IDs to /plan. The implementation plan must map phases to the selected slice, explicit milestone, framework boundary, or EXEMPT scope, plus non-goals, scenario IDs, TC IDs, commands, and evidence. /plan --mode=validate asks the owner to confirm remaining material choices when that gate is selected.
Report:
IMPORTANT MUST ATTENTION Goal: Turn one selected embedded outcome slice, explicit roadmap milestone, framework/library scope, or explicitly accepted isolated change into an adversarial, observable scenario set that exposes data corruption, misleading states, access leaks, and recovery gaps before an implementation plan can be approved.
IMPORTANT MUST ATTENTION Main steps: resolve the applicable scope → reconstruct the journey and source of truth → generate adversarial scenarios → resolve owner decisions → write the analysis → run the Scenario Gate → hand off to /plan or record the conditional skip.
IMPORTANT MUST ATTENTION run resolve → journey → scenarios → decisions → write → gate → plan handoff in order.
IMPORTANT MUST ATTENTION derive scenarios from the journey and source-of-truth state; test replay, persistence, validation, concurrency, lifecycle, access, deletion, recovery, and evidence as applicable.
IMPORTANT MUST ATTENTION map high-impact scenarios to expected outcomes and TC/evidence or an approved deferred owner/follow-up artifact.
IMPORTANT MUST ATTENTION ask the owner about material decisions; a deferred non-goal must name its owner and follow-up artifact.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
[Documentation] Use when generating, smart-merging or refactoring the root AI context (CLAUDE.md, AGENTS.md) and its Claude/Codex projections. Config file only: project-config.
日本語の概要は準備中です。原文の説明を表示しています。
[Code Quality] Use when a workflow step or the user asks for AI code or plan review: LLM calls, prompts, agents, RAG, evals and guardrails. --mode={code|plan}; --report-only is read-only.
日本語の概要は準備中です。原文の説明を表示しています。
[Architecture] Use when a workflow step or the user asks for architecture design, compliance review, scalability grading or whole-project audit via --mode={design|review|scalability|full}.
日本語の概要は準備中です。原文の説明を表示しています。
[Content] Use when a workflow step or the user asks for product/feature ideation with ranked opportunities and validation tests. --mode={roadmap|scope}.
日本語の概要は準備中です。原文の説明を表示しています。
[Content] Use when a workflow step or the user asks for business viability: Business Model Canvas, financials, risks and go-to-market recommendation.
日本語の概要は準備中です。原文の説明を表示しています。
[Code Quality] Use when a workflow step or the user asks for a focused code-change review: staged, unstaged, branch diff or simple pull request. --fix-loop fixes and re-reviews. Complex pull request: workflow-review-changes; rationale: why-review.
日本語の概要は準備中です。原文の説明を表示しています。