Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alexcas-sdd-archive
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/sdd-archive
What's inside
- Skill name
sdd-archive- Description
- Archive a completed SDD change by syncing delta specs. Trigger: orchestrator launches archive after implementation and verification.
- License
- MIT
- Metadata
- version: 2.0 · delegate_only: true
- Instructions
- 256 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
> **ORCHESTRATOR GATE**: If you loaded this skill via the `skill()` tool, you are
> the ORCHESTRATOR — STOP. Do NOT execute these instructions inline. Delegate to
> the dedicated `sdd-archive` sub-agent using your platform's delegation primitive
> (e.g., `task(...)`, sub-agent invocation, etc.). This skill is for EXECUTORS
> only.
## Executor Override
If you ARE the `sdd-archive` sub-agent (NOT the orchestrator), the gate above does NOT apply to you. Continue with the phase work below. Do NOT delegate. Do NOT call the Skill tool. You are the executor — execute.
## Language Domain Contract
Generated technical artifacts default to English. Do not inherit the user's conversational language or the active persona's regional voice for SDD artifacts unless the user explicitly requests that artifact language or the project convention requires it.
If Spanish technical artifacts are explicitly requested, use neutral/professional Spanish unless the user explicitly asks for a regional variant.
Public/contextual comments follow the target context language by default. Explicit user language or tone overrides win; Spanish comments default to neutral/professional Spanish unless the user or target context clearly calls for regional tone.
## Purpose
You are a sub-agent responsible for ARCHIVING. You merge delta specs into the main specs (source of truth), then move the change folder to the archive. You complete the SDD cycle.
## What You Receive
From the orchestrator:
- Change name
- Structured status from `skills/_shared/sdd-status-contract.md`, including artifact paths, task progress, dependency states, and actionContext
- Any explicit intentional archive override text from the user/orchestrator
## Execution and Persistence Contract
> Follow **Section B** (retrieval) and **Section C** (persistence) from `skills/_shared/sdd-phase-common.md`.
Read and follow `skills/_shared/openspec-convention.md`. Perform merge and archive folder moves.
### Task Completion Gate
`sdd-apply` is responsible for marking completed tasks in the persisted tasks artifact. `sdd-archive` is responsible for validating that the persisted artifact reflects the final state before closing the cycle.
Before syncing specs or moving any archive folder, inspect the tasks artifact:
- Read `openspec/changes/{change-name}/tasks.md`.
If any implementation task remains unchecked (`- [ ]`):
1. STOP and return `blocked`; do not sync specs, move the change folder, or claim the SDD cycle is complete.
2. Report that `sdd-apply` must be rerun or corrected so it marks completed tasks in the persisted tasks artifact.
3. Only proceed if the orchestrator explicitly instructs you to reconcile stale checkboxes and `apply-progress`/`verify-report` prove every unchecked task is complete. If you do this exceptional repair, record the exact reconciliation reason in the archive report.
The archived audit trail MUST NOT contain stale unchecked tasks for completed work. Internal todo state is not enough; the persisted SDD task artifact is the source of truth for completion visibility.
### Archive Policy
The default is strict:
- Incomplete implementation tasks block archive unless they are stale checkboxes and apply-progress/verify-report prove completion.
- CRITICAL issues in `verify-report` always block archive. Do not accept an override for CRITICAL verification issues.
- `sdd-archive` does not own normal task completion. `sdd-apply` owns checkbox completion; archive may only perform exceptional mechanical reconciliation with proof from apply-progress and verify-report.
- Missing proposal/spec/design artifacts should be reported. Archive may continue only when the user explicitly chooses an intentional partial archive and the archive report records what was missing.
### Action Context Guard
- If structured status reports `actionContext.mode: workspace-planning`, STOP. Do not move workspace changes into repo-local archives or edit linked repos.
- If `allowedEditRoots` is present, archive operations must stay inside those roots.
## What to Do
### Step 1: Load Skills
Follow **Section A** from `skills/_shared/sdd-phase-common.md`.
### Timing
Archive runs AFTER judge passes and BEFORE the PR is opened. **In the Feature
Branch Chain flow, "judge" means the integrated judge on the tracker branch, the
owning branch is the tracker branch (not the change branch), and "before the PR is
opened" becomes "before the tracker PR merges to `main`."** Stage the results of
Step 2 (spec merge), Step 3 (folder move), Step 3b (`archon map --backfill` +
`--check`), and Step 3c (`SESSION_STATUS.md` move) into ONE archive commit on the
owning branch (change branch for single-PR, tracker branch for Feature Branch
Chain) (Step 3d performs the actual `git add`/`git commit`). The PR is
opened only after this commit is staged. The archive-internal order
(merge → move → map → SESSION_STATUS move) is unchanged; PR-open is EXTERNAL
to this sequence.
### Step 2: Sync Delta Specs to Main Specs
Do not start this step until the **Task Completion Gate** above passes.
For each delta spec in `openspec/changes/{change-name}/specs/`:
#### If Main Spec Exists (`openspec/specs/{domain}/spec.md`)
Read the existing main spec and apply the delta:
```
FOR EACH SECTION in delta spec:
├── ADDED Requirements → Append to main spec's Requirements section
├── MODIFIED Requirements → Replace the matching requirement in main spec
├── REMOVED Requirements → Delete the matching requirement from main spec after recording Reason/Migration
└── RENAMED Requirements → Rename the matching requirement while preserving scenarios unless the delta also modifies them
```
**Merge carefully:**
- Match requirements by name (e.g., "### Requirement: Session Expiration")
- Preserve all OTHER requirements that aren't in the delta
- Maintain proper Markdown formatting and heading hierarchy
- For REMOVED requirements, require `(Reason: ...)` and `(Migration: ...)` notes in the delta before deleting from main specs
- For RENAMED requirements, require the old and new requirement names to be explicit
#### If Main Spec Does NOT Exist
The delta spec IS a full spec (not a delta). Copy it directly:
```bash
# Copy new spec to main specs
openspec/changes/{change-name}/specs/{domain}/spec.md
→ openspec/specs/{domain}/spec.md
```From AlexCas/archon-ai, MIT.
More from AlexCas/archon-ai
- 0.584score
harness-judge
AlexCas
Trigger: judge phase, judgment gate, post-verify review.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
harness-workflow
AlexCas
Trigger: phase transition, state check, workflow gate, next phase.
SkillAFreshness: A★ 1Claude Code +9 - 0.549score
judgment-day
AlexCas
Trigger: judgment day, dual review, adversarial review, juzgar.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
sdd-verify
AlexCas
Trigger: SDD verification phase, verify change.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
go-testing
AlexCas
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
sdd-init
AlexCas
Trigger: sdd init, iniciar sdd, openspec init.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
concise-output
AlexCas
Keep orchestrator chat replies concise by default while preserving gates verbatim.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
comment-writer
AlexCas
Write warm, direct collaboration comments.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
sdd-onboard
AlexCas
Walk users through the SDD workflow on the real codebase.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
sdd-propose
AlexCas
Create an SDD change proposal with intent, scope, and approach.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
sdd-router
AlexCas
Trigger: archon route CLASSIFY signal only.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
sdd-explore
AlexCas
Explore SDD ideas before committing to a change.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 11
- Last commit (this folder)
- Sep 17, 2026 (1 month ago)
- Last release
- Sep 17, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 2.0
- License
- MIT
- Repository
- github.com/AlexCas/archon-ai
- Website
- github.com/AlexCas/archon-ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.267score
sdd-archive
gentleman-programming
Archive a completed SDD change by syncing delta specs.
SkillBFreshness: BClaude Code +9 - 0.256score
sdd-archive
gentleman-programming
Archive a completed SDD change by syncing delta specs.
SkillCFreshness: C★ 1Claude Code +9 - 0.242score
sdd-archive
gentleman-programming
Archive a completed SDD change by syncing delta specs.
SkillCFreshness: CClaude Code +9
More from AlexCas
- 0.584score
harness-judge
AlexCas
Trigger: judge phase, judgment gate, post-verify review.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
harness-workflow
AlexCas
Trigger: phase transition, state check, workflow gate, next phase.
SkillAFreshness: A★ 1Claude Code +9 - 0.549score
judgment-day
AlexCas
Trigger: judgment day, dual review, adversarial review, juzgar.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
sdd-verify
AlexCas
Trigger: SDD verification phase, verify change.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
go-testing
AlexCas
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
sdd-init
AlexCas
Trigger: sdd init, iniciar sdd, openspec init.
SkillBFreshness: B★ 1Claude Code +9
Cite this page
sdd-archive skill. Agent Mart. https://agentmart.dev/skills/alexcas-sdd-archive (last updated 2026-10-24)