speckit-archive-cleanup

speckit-archive-cleanup is a skill for Claude Code, Codex from racecraft-lab/racecraft-plugins-public. It costs 90 tokens per session (1,499 once invoked), scanned A, original, MIT.

A cleanup workflow for a completed SpecKit feature after its implementation pull request has been merged. It archives the specification, updates project memory and roadmap files, and prepares cleanup changes.

In plain words
What is it for?
It is for post-merge maintenance of SpecKit projects: archiving a merged specification, removing its active folder, and refreshing planning records.
Why use it?
It removes finished work from the active planning area while preserving evidence needed to recover its source. It also keeps generated indexes and the roadmap current.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions Codex.

Part of the speckit-pro plugin — 12 skills, 14 agents, 4 hooks, 1 MCP server shipped together

Good fit It is for post-merge maintenance of SpecKit projects: archiving a merged specification, removing its active folder, and refreshing planning records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup
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.

Any agent
npx skills add racecraft-lab/racecraft-plugins-public --skill speckit-archive-cleanup
Clone the repo
git clone --depth 1 https://github.com/racecraft-lab/racecraft-plugins-public

Made for: Claude Code, Codex.

Or install speckit-pro, the plugin that ships this one along with the rest of its 12 skills, 14 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for speckit-archive-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup/github.svg)](https://agentmods.dev/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup)
Your own site
<a href="https://agentmods.dev/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup"><img src="https://agentmods.dev/badge/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for speckit-archive-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup"><img src="https://agentmods.dev/badge/skills/racecraft-lab/racecraft-plugins-public/speckit-archive-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00090 $0.01499
Opus 5 $0.00045 $0.00749
Sonnet 5 $0.00018 $0.00300
Haiku 4.5 $0.00009 $0.00150

Measured yesterday against content hash 0a77df77852f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

speckit-archive-cleanup 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.

speckit-pro/codex-skills/speckit-archive-cleanup/SKILL.md · 164 lines

How it starts

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

SpecKit Archive Cleanup

Scope

Use this skill after a SpecKit implementation PR has merged and the repository needs post-merge archive hygiene. The goal is to preserve source recovery evidence, update project memory, remove only the completed active spec folder, refresh generated SpecKit indexes, and leave the roadmap ready for the next SPEC.

This skill mutates repository files. It is not a read-only status command, not the scaffold entrypoint, and not the implementation autopilot. If the PR has not merged, stop and report that archive cleanup is premature unless the user explicitly asks for an abandoned-work cleanup and the repository has a clear convention for that path.

Inputs

Accept any of these:

  • a SPEC-ID such as SPEC-007 or SPEC-014
  • an active spec directory under specs/
  • a workflow file under docs/ai/specs/.process/
  • a merged PR URL or number

When multiple inputs are present, verify they point to the same work. Do not archive based on a SPEC-ID alone when the merge source is ambiguous. Derive the repository from local git remote output when only a PR number is supplied.

Required Grounding

Before editing:

  1. Inspect git status --short --branch.
  2. Confirm or create a cleanup branch based on current mainline. Use the local branch naming convention, normally a codex/ branch.
  3. Confirm PR merge state with GitHub tooling when available. Capture PR URL, PR number, title, merged-at timestamp, and merge commit.
  4. Read the archive extension command contract if .specify/extensions/archive/commands/archive.md exists.
  5. Read the newest relevant archive reports under .specify/memory/archive-reports/ to match local wording and cleanup style.
  6. Check for .specify/feature.json. If it is absent, do not create it. If it exists and points to the completed spec, handle it according to local archive convention.
  7. List active specs with find specs -mindepth 1 -maxdepth 4 -print and identify the exact folder owned by the merged spec.

Read the full file on GitHub · 164 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -29 lines · +55 tokens per session 0a77df77852f
  2. 7d ago First seen · 193 lines · 35 tokens per session scan A d4a8ead887ac

Subscribe to this mod's changes

speckit-archive-cleanup is a skill published in the GitHub repository racecraft-lab/racecraft-plugins-public (5 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,499 once invoked, about $0.0005 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-09-04.

Related

Other skills, from other repositories

release-archivist

Close out a spec-superflow change with verification, summary, and archive readiness. Invoke when implementation is complete, verification is underway, or the user asks for a final wrap-up.

MageByte-Zero/spec-superflow · 42 tokens

codex-issue-coordinator

Coordinates a large batch of GitHub issues through separate Codex worker threads, tested pull requests, review loops, and gated merges. Use when the user asks one Codex thread to manage several coding sessions or complete a parent issue, milestone, or issue batch.

owainlewis/blueprint · 59 tokens

task-to-pr

Completes one or more tasks. Creates one tested and reviewed pull request for each task. Use to implement, build, fix, or deliver tasks, tickets, pull requests, or a milestone.

owainlewis/blueprint · 43 tokens

speq-implement-pr

Headless follow-up to /speq-plan-pr. Continues a plan on its feat/plan-name branch and runs it end-to-end: implements via /speq-implement, bumps the version, commits and pushes, runs the real test suites, records only if green, then opens/updates the PR and marks it ready. Resumes from the PR Lifecycle checkpoint in…

marconae/speq-skill · 108 tokens

speq-plan-pr

Headless, non-interactive version of /speq-plan for CI or agent-driven runs. Plans a feature without a live interview, commits the result to a feat/plan-name branch, and opens a draft PR. If a decision genuinely needs a human, it persists the partial plan and open questions and asks in a PR comment instead of…

marconae/speq-skill · 91 tokens

speq-git-operations

The git/gh operation-to-command mapping, safety rules, and return formats — invoked directly by the headless orchestrators speq-plan-pr and speq-implement-pr, the only components permitted to write git history or touch a remote.

marconae/speq-skill · 55 tokens