racecraft-plugins-public: Command for Claude Code

.specify/extensions/archive/commands/archive.md

archive is a command for Claude Code from racecraft-lab/racecraft-plugins-public. It costs 16 tokens per session (3,119 once invoked), scanned A, a copy of speckit.archive.run, MIT.

A command for moving completed feature specifications into a project's long-term memory files while keeping their source history traceable.

In plain words
What is it for?
Use it after features are merged to update the specification memory, plans, changelog, or agent records; it can also scan for older merged specifications.
Why use it?
It prevents old specifications from cluttering active work and preserves enough information to find the original files later.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

This is racecraft-lab/racecraft-plugins-public's own configuration. It tells Claude Code how to work on racecraft-plugins-public itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything racecraft-plugins-public configures →

Reuse

Borrowing it

Nothing to install: this file belongs to racecraft-lab/racecraft-plugins-public. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/racecraft-lab/racecraft-plugins-public/main/.specify/extensions/archive/commands/archive.md
Clone the repo
git clone --depth 1 https://github.com/racecraft-lab/racecraft-plugins-public

Made for: Claude Code.

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 archive

README.md
[![agentmods](https://agentmods.dev/badge/commands/racecraft-lab/racecraft-plugins-public/archive.svg)](https://agentmods.dev/commands/racecraft-lab/racecraft-plugins-public/archive)
Your own site
<a href="https://agentmods.dev/commands/racecraft-lab/racecraft-plugins-public/archive"><img src="https://agentmods.dev/badge/commands/racecraft-lab/racecraft-plugins-public/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,119 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 97% copy Near-identical to another mod 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.00016 $0.03119
Opus 5 $0.00008 $0.01559
Sonnet 5 $0.00003 $0.00624
Haiku 4.5 $0.00002 $0.00312

Measured 7d ago against content hash 0a4b128e77bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 7d ago.

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.

Origin

This is a copy

97% identical to speckit.archive.run — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/extensions/archive/commands/archive.md · 429 lines

How it starts

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

Act as the Chief Software Architect, Documentation Maintainer, and release provenance auditor.

Your goal is to archive merged feature specifications into durable project memory while preserving enough provenance to recover raw spec artifacts from git later. This command also supports Archive Sweep mode, which identifies previously merged feature specs before a new SpecKit run starts.

User Input

$ARGUMENTS

You MUST consider the user input before proceeding.

Input Parsing

Parse $ARGUMENTS as shell-like tokens. Supported forms:

speckit.archive.run specs/###-feature-name [scope] [provenance] [mode]
speckit.archive.run --sweep --current-target specs/###-current-feature [provenance] [mode]

Positional Input

  • First non-option token: feature spec directory path, for example specs/007-invoice-settings.
  • In --sweep mode, no positional feature directory is required.

Scope Modifiers

If none are provided, update all archival artifacts.

  • --spec-only: update only .specify/memory/spec.md
  • --plan-only: update only .specify/memory/plan.md
  • --changelog-only: update only .specify/memory/changelog.md
  • --agent-only: update only the agent knowledge file (GEMINI.md, AGENTS.md, or CLAUDE.md)

Mode And Safety Options

  • --dry-run: do not modify files; produce the same eligibility, provenance, and cleanup report that an apply run would use.
  • --apply: apply memory archival edits. This is the default for a single feature archive unless --dry-run is present.
  • --sweep: discover previously merged feature specs and report archive and cleanup eligibility before any new spec work begins.
  • --apply-cleanup: after successful archival, remove or move completed spec folders out of active specs/** only if every cleanup gate passes.
  • --current-target <path>: active feature spec for the current run. Archive Sweep MUST exclude this path from archival and cleanup.

Provenance Options

Read the full file on GitHub · 429 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. 7d ago First seen · 429 lines · 16 tokens per session scan A 0a4b128e77bc

Subscribe to this mod's changes

archive is a command published in the GitHub repository racecraft-lab/racecraft-plugins-public (5 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 3,119 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to speckit.archive.run, differing in 3 lines, and is treated as a copy.