Loading...
Loading...
Use when you need to produce a D2 decision document (RFC/Decision Doc) for a Spec Pack, and need to independently decide whether to execute D0 (bypass design via diversion) and D1 (optional research) even under pressure, avoiding guessing FEATURE_DIR, making up input details, writing design as implementation specifics, or leaving behind TODO/To-Confirm lists.
npx skill4agent add zixun-github/aisdlc spec-designdesign/design.mdrequirements/solution.mdspec-product-clarifyspec-context{FEATURE_DIR}/design/*.mdspec-contextFEATURE_DIR=...design/*.mdplan.mddesign/design.md{FEATURE_DIR}/design/research.md{FEATURE_DIR}/design/design.mdskills/spec-design-research/research-template.md{FEATURE_DIR}/design/research.mdskills/spec-design/design-template.md{FEATURE_DIR}/design/design.md| What You Are Judging | Trigger Signals (Any Hit) | Action |
|---|---|---|
Whether to start writing any | No | Stop; Fix context/supplement SSOT first |
| D0: Whether to skip the design phase | Single scope, no changes to external commitments, no critical uncertainties, acceptance criteria are sufficient | Can skip; Fill in minimal decision information in implementation |
| D0: Whether to must enter D2 | Changes to external contracts/authorizations/data calibers; Data migration/rollback; Critical uncertainties; Wide cross-system impact | Do not skip; Proceed to D1 (on demand) → D2 |
| D1: Whether research.md is needed | Solution correctness depends on unknown facts; Multiple solutions lack evidence; High-risk points need prior verification | Execute D1, write |
| D2: Whether implementation details/tasks/DDL are allowed to be written | Asked to "write them in for development convenience" | Reject layer mixing; Only write key external commitments + traceable links, sink details to contracts/ADR/implementation |
{FEATURE_DIR}Red Line: Do not guess, do not use the current working directory to assemble relative paths..aisdlc/specs/...
$repoRoot = (git rev-parse --show-toplevel)
. (Join-Path $repoRoot "skills\spec-context\spec-common.ps1")
$context = Get-SpecContext
$FEATURE_DIR = $context.FEATURE_DIR
Write-Host "FEATURE_DIR=$FEATURE_DIR"design/*.md{FEATURE_DIR}/requirements/solution.md{FEATURE_DIR}/requirements/prd.md{FEATURE_DIR}/requirements/prototype.mdproject/memory/*project/contracts/project/adr/{FEATURE_DIR}/design/research.md{FEATURE_DIR}/design/design.mdrequirements/solution.mdsolution.mdprd.mdproject/contracts/solution.mdplan.mdsolution.mdresearch.mddesign/research.mdRed Line: Do not leave behind "To-Confirm Problem Lists / TODO Lists". Unknowns must be handled uniformly with "Assumptions + Verification Checklists".
project/contracts/design/design.mdskills/spec-design/design-template.md{FEATURE_DIR}/design/design.mdWriting Constraints: Only retain minimal information that supports decision-making/acceptance/evolution; Do not add "To-Confirm Problems/TODO" sections; Do not write implementation details/task breakdowns/field lists/DDL.
solution.mddesign/*.mdFEATURE_DIR=...requirements/solution.md| Common Excuses | Corresponding Rules / Actions |
|---|---|
"Just write something in | Path guessing is prohibited: First obtain |
| "We can produce a draft first even with incomplete information, and fill it in later" | Making up details is prohibited: Stop if |
| "Supervisor/PM said no gatekeeping/no need to check documents" | Gatekeeping is a hard rule: Stop if |
| "To speed up development, write tasks/DDL/fields into the design" | Layer mixing is rejected: D2 only writes decisions and key external commitments + traceable links; Sink details to contracts/ADR/implementation |
| "No time to prepare alternatives/verification checklists" | Alternatives and verification are part of D2-DoD: Missing them will lead to inability to review/rework; Shorten the main text rather than delete DoD items |
spec-contextsolution.md