codex-sdd:archive

A final step in the OpenSpec workflow, which records a change proposal, design, task list, and related notes in an organised archive.

In plain words
What is it for?
Archiving validated software changes and updating the project's shared knowledge base.
Why use it?
It keeps completed planning documents available for future reference and marks the workflow as finished.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/skyloevil/codex-sdd/archive
Any agent
npx skills add skyloevil/codex-sdd --skill archive
Clone the repo
git clone --depth 1 https://github.com/skyloevil/codex-sdd

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.00816
Opus 5 $0.00016 $0.00408
Sonnet 5 $0.00007 $0.00163
Haiku 4.5 $0.00003 $0.00082

Measured yesterday against content hash 27eed9f965e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-sdd:archive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/archive/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenSpec Archive

Context

Archive is the final phase of the OpenSpec workflow. It preserves the change artifacts (proposal, design, tasks) into a structured archive directory and updates the knowledge base for future reference. This is the "accumulate experience" step.

Trigger

Any of these patterns triggers this skill:

  • User says "openspec archive" or "openspec:archive"
  • Validation passed and user wants to finalize
  • openspec_get_status shows phase is validate or archive and ready to archive
  • User manually requests archiving

Prerequisites

  • Validation passed (or user explicitly wants to archive without validation)
  • All spec files exist

Workflow

Step 1: Prepare Archive

Call openspec_get_status to confirm the change is ready for archiving. Check that all key artifacts are present:

  • openspec/changes/<changeId>/proposal.md
  • openspec/changes/<changeId>/tasks.md
  • openspec/changes/<changeId>/verification.md
  • openspec/changes/<changeId>/implementation-notes.md

Step 2: Confirm with User

Gate: Archive Confirmation — Ask:

  • "Archive change [changeId]? This will store the spec documents and reset the workflow."
  • Optionally ask for an archive summary message

Step 3: Execute Archive

Before archiving, call openspec_get_pending_hooks({ hookPoint: "pre_archive" }). Required hooks must be recorded as passed or skipped with openspec_record_hook_result.

Before calling openspec_archive_change, call openspec_sync_specs for the relevant domain names so the change delta is appended to openspec/specs/<domain>/spec.md. If the domain is unknown, use general. Then call docs_check_freshness; unresolved stale domain specs should block archive unless the user explicitly accepts the gap.

Call openspec_archive_change with an optional summary message:

openspec_archive_change({
  message: "Implemented X feature with Y approach. Key decisions: ..."
})

This:

  1. Copies active artifacts to openspec/changes/archive/<changeId>/
  2. Writes archive-metadata.json with timestamps and paths
  3. Adds an entry to openspec/changes/archive/_knowledge-base/<changeId>.json for the accumulated knowledge base
  4. Preserves the main domain spec sync metadata in state
  5. Resets the state machine to complete phase

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 98 lines · 33 tokens per session scan A 27eed9f965e0

Subscribe to this mod's changes

codex-sdd:archive is a skill published in the GitHub repository skyloevil/codex-sdd (1 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 816 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codexkit-repository-maintenance

Use when maintaining or improving the GameStudio-CodexKIT source repository, including CI, governance, catalog, generators, adapters, packaging, documentation, versioning, or release readiness.

hoatv2211/GameStudio-CodexKIT · 45 tokens

unity-ui-art-and-motion-production

Use when new or revised Unity UI visuals, icons, panels, 9-slice sprites, component states, HUD or menu layouts, popup motion, screen transitions, or flattened UI screenshot decomposition must be produced through Figma and integrated into uGUI, NGUI, or UI Toolkit; not for UI debugging, localization-only work…

hoatv2211/GameStudio-CodexKIT · 83 tokens

game-screenshot-showcase-and-store-packaging

Use when a Unity team needs approved PlayMode screenshots, immutable capture evidence, reviewed showcase slides, or report-only store screenshot packaging without auto-upload, signing, or submission.

hoatv2211/GameStudio-CodexKIT · 44 tokens

studio-project-scaffold

Use when running gamestudio init, status, or uninit, or bootstrapping a new or adopted game repository with AGENTS.md, HANDOFF.md, .agents/CONTRACT.md, project governance, a subsystem registry, or a per-project adapter report, plan digest, named reviewer, backup root, generated agent overlay, apply, uninstall, and…

hoatv2211/GameStudio-CodexKIT · 85 tokens

using-game-studio-skills

Use when starting any GameStudio-CodexKIT task or when a model runner is unavailable and someone requests a confidence-based PASS.

hoatv2211/GameStudio-CodexKIT · 33 tokens

skill-authoring-and-audit

Use when creating or revising a GameStudio-CodexKIT skill, resolving ambiguous skill triggers, auditing provenance or lifecycle maturity, or deriving reusable capabilities from session history.

hoatv2211/GameStudio-CodexKIT · 41 tokens