Loading...
Loading...
Used when a Spec Pack is completed, reusable assets need to be promoted to the project SSOT (ADR/contract/ops/NFR/registry), and there are risks of "contaminating the project with full package replication / skipping spec-context / mistaking merge-back for git merge".
npx skill4agent add zixun-github/aisdlc spec-merge-back.aisdlc/project/{FEATURE_DIR}.aisdlc/project/## Merge-back To-do List{FEATURE_DIR}/implementation/plan.md.aisdlc/project/project-discover*. ".\skills\spec-context\scripts\spec-common.ps1"
$context = Get-SpecContext
$FEATURE_DIR = $context.FEATURE_DIR
Write-Host "FEATURE_DIR=$FEATURE_DIR"Get-SpecContext.aisdlc/project/CONTEXT GAP: .aisdlc/project missing## Merge-back To-do List{FEATURE_DIR}/implementation/plan.md.aisdlc/project/index.mdForbidden: Skip theto-do list and use "summarize from memory" instead. If time is tight, you can useplan.mdto supplement evidence, but the source of the list is still mainlygit diff.plan.md
{FEATURE_DIR}/merge_back.md{FEATURE_DIR}/merge_back.mdIf the user requires "don't modify the project first, someone will do it manually later": You still must complete Step 1–2, and mark the project promotion items in Step 3 as Not Done + plan (otherwise merge-back is not auditable and easy to be permanently missed).
design/aisdlc.md.aisdlc/project/adr/.aisdlc/project/components/{module}.md#api-contract#data-contract.aisdlc/project/ops/.aisdlc/project/nfr.md.aisdlc/project/index.md{FEATURE_DIR}/merge_back.md#api-contract#data-contractspec-context.aisdlc/projectimplementation/plan.md| Common Excuses | Facts/Countermeasures |
|---|---|
| "It's urgent, copy the whole package to the project first, and sort it out later" | Full package replication will contaminate the project for a long time; the correct approach is to only promote "entry + invariants + evidence chain". |
| "The user gave the FEATURE_DIR, no need to run spec-context" | Verbal paths are not reliable; the output of |
| "The project directory does not exist, I will build a minimal one first to make it run" | merge-back is not responsible for initializing the project SSOT; if missing, report |
| "I can summarize without looking at the plan.md to-do list" | The to-do list is the only summary entry during the execution period; skipping it will lead to omission and is not auditable. |
merge_back.mdROUTER_SUMMARY:
stage: MergeBack
artifacts:
- "{FEATURE_DIR}/merge_back.md"
needs_human_review: true
blocked: false
block_reason: ""
notes: "已晋升 ADR/契约/ops/NFR/registry;Done/Not Done 与证据入口齐全。"using-aisdlcROUTER_SUMMARY