skills/sdd-archive/SKILL.md
Closes a completed SDD change by saving an archive report to engram and optionally updating ai-context/ memory. Trigger: /sdd-archive <change-name>, archive change, finalize SDD cycle, close change.
npx skillsauth add fearovex/claude-config sdd-archiveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Closes a completed SDD change and persists an archive report.
Triggers: /sdd-archive <change-name>, archive change, finalize sdd cycle, close change, sdd archive
Archiving is the final step of the SDD cycle. It validates completeness, saves a closure record, and updates the project memory layer. It is irreversible — I confirm with the user before executing.
When the orchestrator launches this sub-agent, it resolves the skill path using:
1. .claude/skills/sdd-archive/SKILL.md (project-local — highest priority)
2. ~/.claude/skills/sdd-archive/SKILL.md (global catalog — fallback)
Project-local skills override the global catalog. See docs/SKILL-RESOLUTION.md for the full algorithm.
Before reading the verify report, I check for required SDD artifacts in engram. Artifact exists if mem_search returns results.
CRITICAL artifacts (block with no proceed option): proposal, tasks
WARNING artifacts (present two-option prompt): design, specs
Check order:
CRITICAL — Cannot archive "[change-name]"
The following artifacts are required for a valid SDD cycle but are missing:
- proposal (required — CRITICAL)
- tasks (required — CRITICAL)
Return and complete the missing phases before archiving.
No proceed option is available.
List only the artifacts that are actually absent. Halt immediately. Do NOT evaluate WARNING artifacts.
WARNING — Incomplete cycle detected for "[change-name]"
The following artifacts are missing:
- design (recommended — WARNING)
- specs (recommended — WARNING)
Choose:
1. Return and complete the missing phases (/sdd-spec, /sdd-design)
2. Archive anyway — I acknowledge these phases were intentionally skipped
Reply 1 or 2:
List only the artifacts that are actually absent. Wait for the user to reply:
Note: exploration is explicitly excluded from this check. Its absence MUST NOT trigger any CRITICAL or WARNING output.
I read the verify report artifact if it exists:
mem_search(query: "sdd/{change-name}/verify-report") → mem_get_observation(id).If there are unresolved CRITICAL issues:
No archiving allowed.
The verification report has [N] critical issues:
- [issue 1]
- [issue 2]
Resolve the issues and run /sdd-verify again before archiving.
If there is no verification report, I inform the user and ask whether to proceed anyway.
User-docs review checkbox (non-blocking):
After reading the verify-report (if it exists), surface the user-docs review item status:
User docs review checkbox: [CHECKED / UNCHECKED / ABSENT]
[x] Review user docs — good[ ] Review user docs — remind the user to check if this change affects user-facing docsThis check is non-blocking — the archive operation continues regardless of the checkbox state.
Do you confirm archiving the change "[change-name]"?
This will perform the following actions:
1. Save an archive closure report to engram
2. Update ai-context/ with decisions from this change
[PASS WITH WARNINGS — warnings were left unresolved]
[or: Verification: PASS]
Continue? [y/n]
If ai-context/features/ exists and any domain specs were produced for this change, check whether the delta specs introduced new business rules, invariants, or gotchas that should be reflected in the permanent feature files.
For each affected domain:
/codebase-teach or /memory-init, not by archiveThis step is non-blocking. If ai-context/features/ does not exist, skip entirely.
Call mem_save with topic_key: sdd/{change-name}/archive-report, type: architecture, content = compact summary:
Archived: {change-name}. Dates: {start} -> {close}. Summary: {1-2 sentences}.
Specs domains: {domain list}. Skipped phases: {list or "none"}.
If Engram MCP is not reachable: skip persistence. Return closure content inline only.
After the archive is complete, I automatically update ai-context/ with the decisions and changes from this cycle.
Process:
~/.claude/skills/memory-manage/SKILL.md/memory-manage process in "update" mode inline, using the archived change as session context:
<change-name>Non-blocking error handling:
Memory updated: ai-context/ files refreshed with decisions from "[change-name]".
Warning: Memory update failed — [reason]. Archive completed successfully.
Suggestion: Run /memory-manage (update mode) manually to update ai-context/.
The archive is always considered successful regardless of the memory-update outcome.
Final output:
Change "[change-name]" successfully archived.
Memory: [updated | failed — reason]
{
"status": "ok|warning|failed",
"summary": "Change [name] archived. Memory: [updated|failed|skipped].",
"artifacts": ["engram:sdd/{change-name}/archive-report"],
"next_recommended": [],
"risks": []
}
proposal, tasks) MUST block with no proceed option — the completeness check MUST run before the verify-report is readdesign, specs) MUST always offer option 2 (acknowledge and proceed) — they MUST NOT silently blockbusiness
Turns an already-investigated customer issue into a short, non-technical engineering-to-CS brief: one natural message that leads with the finding (root cause, real scope, open question), ready to paste into Slack for the support team. Trigger: /support-brief, support brief, brief for support, resumen soporte.
development
Parks the current Claude Code session before going to sleep. Analyzes the conversation, writes a handoff document to docs/handoffs/ in the current project, mirrors the same summary to engram tagged with the session ID, and prints the exact `claude --resume <id>` command for tomorrow. Zero interaction — runs end-to-end on a single invocation. Trigger: /night-park, night park, park session, me voy a dormir, guardar sesion.
testing
Interactive creator for a project feature: scaffolds the domain knowledge markdown at ai-context/features/<slug>.md AND the antenna skill at .claude/skills/<slug>/SKILL.md, both from the canonical templates. Also registers the antenna in the project's CLAUDE.md. Trigger: /feature-define <name>, define feature, documentar funcionalidad, nueva feature.
data-ai
Generates a short, non-technical, informal English summary of an already-investigated customer issue, ready to paste into Slack/email for support, CX, or ops teammates. Trigger: /customer-summary, customer summary, resumir customer issue, slack summary.