specd-archive
Archive a specd change — reviews deltas and merges them into project specs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Archive a specd change — reviews deltas and merges them into project specs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Write the next artifact for a specd change (or all artifacts in fast-forward mode).
Implement code for a specd change — work through tasks and run hooks.
Explore what the user wants to do and create a new specd change when ready.
Verify a specd change's implementation against spec scenarios.
Entry point for specd — detects change state and suggests the next skill to invoke.
Skill: Spec Metadata Generator
| name | specd-archive |
| description | Archive a specd change — reviews deltas and merges them into project specs. |
| allowed-tools | Bash(node *), Read, TaskCreate, TaskUpdate |
| argument-hint | <change-name> |
Read .specd/skills/shared.md before doing anything.
Reviews deltas and archives the change. Archiving merges deltas into project specs
and is irreversible. The change MUST already be in archivable state — the signoff
gate is handled by /specd-verify, not by this skill.
specd change status <name> --format json
Store lifecycle.changePath, specIds, and review from the response.
If review.required is true, this change has artifacts that require review
before archiving. Summarize review.reason and review.affectedArtifacts, then
tell the user:
Artifacts need review before archiving. Run
/specd-design <name>to update them.
Stop — do not continue.
If state is not archivable, this is the wrong skill. Suggest based on state:
drafting / designing → /specd-design <name>ready → Review artifacts, then approve or continue designing with /specd-design <name>implementing / spec-approved → /specd-implement <name>verifying → /specd-verify <name>done / signed-off → /specd-verify <name> (verify handles the done→archivable transition)pending-spec-approval → "Approval pending. Run: specd change approve spec <name> --reason ..."pending-signoff → "Signoff pending. Run: specd change approve signoff <name> --reason ..."Stop — do not continue.
specd change context <name> archiving --follow-deps --depth 1 --format json [--fingerprint <stored-value>]
Pass --fingerprint <stored-value> if you have a contextFingerprint from a previous change context call in this conversation (see shared.md — "Fingerprint mechanism"). Extract and store the contextFingerprint from the response. If you passed a fingerprint and the response is status: "unchanged", use the context already in memory. If status: "changed", update your stored context and fingerprint with the new response.
MUST follow — project context entries are binding directives. If lazy mode returns
summary specs, evaluate and load any that are relevant to the archiving work
(see shared.md — "Processing change context output").
Ready to archive
<name>. This will merge all deltas into your project specs and move the change to the archive. This cannot be undone.Say "archive" to proceed, or request changes first.
Do NOT proceed until the user explicitly says "archive" or equivalent.
specd change run-hooks <name> archiving --phase pre
specd change hook-instruction <name> archiving --phase pre --format text
Follow guidance — review deltas to ensure specs match what was built.
specd change archive <name> --skip-hooks all --format json
If the command fails with a SpecOverlapError (spec overlap detected), other active
changes target the same specs as this change. Archiving would modify the canonical
specs those changes are working against. When this happens:
If the user confirms, re-run the command with --allow-overlap:
specd change archive <name> --skip-hooks all --allow-overlap --format json
specd change run-hooks <name> archiving --phase post
specd change hook-instruction <name> archiving --phase post --format text
Follow guidance (typically: summarize what changed for commit message).
specd spec generate-metadata --all --write --status stale,missing
specd config show --format json
If llmOptimizedContext is true, suggest running /specd-spec-metadata for each
spec in the change.
Change
<name>archived. Deltas merged into specs.
Stop.
Create tasks at the start for session visibility. Update them as you go.
Load state & context — mark done after step 2Pre-archive review — mark done after step 3Archive change — mark done after step 5Post-archive & metadata — mark done after step 8Any change transition command may fail with:
Cannot transition from '<current>' to '<target>'
If this happens, the change is in a different state than expected. Extract <current>
from the error message and redirect using this table:
| Current state | Suggest |
|---|---|
drafting / designing | /specd-design <name> |
ready | Review artifacts, then approve or continue designing with /specd-design <name> |
implementing / spec-approved | /specd-implement <name> |
verifying | /specd-verify <name> |
done / signed-off | /specd-verify <name> (verify handles the done→archivable transition) |
pending-signoff | "Signoff pending. Run: specd change approve signoff <name> --reason ..." |
archivable | You're already in the right skill — re-read status and retry |
pending-spec-approval | "Approval pending. Run: specd change approve spec <name> --reason ..." |
Stop — do not continue after redirecting.
If during the pre-archive review you discover that the specs don't accurately reflect what was built and the divergence is significant, do not archive incorrect specs. Surface the issue to the user, and if they agree:
specd change transition <name> designing --skip-hooks all
Specs need revision before archiving. Run
/specd-design <name>to update them.
Stop — do not archive.
change status shows review.required = true, stop
archiving and redirect to /specd-design <name>