RapidSpec: Archive

A RapidSpec command that archives a completed change and merges its specification updates into the main specifications. It can also validate the result and close linked Linear issues, where Linear is a tool for tracking development work.

In plain words
What is it for?
Use it after deploying a RapidSpec change to verify completion, move it to a timestamped archive, merge specification deltas, validate canonical specifications, and optionally close related Linear issues.
Why use it?
It provides a defined finishing step for completed changes and checks that tasks, code, tests, and specifications are in order before they are archived.

Command

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 commands/9j/rapidspec/archive
Clone the repo
git clone --depth 1 https://github.com/9j/RapidSpec
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,508 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.00013 $0.01508
Opus 5 $0.00006 $0.00754
Sonnet 5 $0.00003 $0.00302
Haiku 4.5 $0.00001 $0.00151

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

Security

Grade A, and why

RapidSpec: 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.

commands/archive.md · 242 lines

How it starts

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

Archive RapidSpec Change

<command_purpose> Archive completed RapidSpec changes and merge spec deltas to canonical specs. Move to timestamped archive, validate strictly, close linked Linear issues. </command_purpose>

<change_id> #$ARGUMENTS </change_id>

<critical_requirement> MUST verify all tasks completed before archiving. MUST validate canonical specs after delta merge. MUST rollback if validation fails. CAN auto-close linked Linear issues when found. </critical_requirement>

Quick Archive (CLI Option)

Basic archive with CLI (no spec merging):

# Simple timestamp + move to archive
rapid archive <change-id>

# Skip validation check
rapid archive <change-id> --skip-validation

This CLI command only:

  • Checks task completion (warns if incomplete)
  • Generates Supabase timestamp (YYYYMMDDhhmmss)
  • Moves to archive directory

For full spec delta merging, Linear closing, and validation, continue with Main Tasks below.

Main Tasks

1. Verify Completion (ALWAYS FIRST)

Completion checklist:

  • Check all tasks in tasks.md marked [x]
  • Verify code committed to git
  • Ensure tests passing
  • If incomplete, list remaining tasks and abort

2. Archive with Timestamp

Actions:

  • Generate timestamp: date +%Y%m%d%H%M%S (Supabase format)
  • Move rapidspec/changes/<change-id>/rapidspec/changes/archive/<timestamp>-<change-id>/
  • Example: 20251111123045-prevent-duplicate-smartlinks

3. Merge Spec Deltas

Read the full file on GitHub · 242 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 · 242 lines · 0 tokens per session scan A 0e130ed7668d

Subscribe to this mod's changes

RapidSpec: Archive is a command published in the GitHub repository 9j/RapidSpec (5 stars, last pushed 9mo ago), licensed MIT. It adds 13 tokens to every session and 1,508 once invoked, about $0.0001 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.