archive

archive is a command for Claude Code from opsmill/infrahub-mcp. It costs 15 tokens per session (3,905 once invoked), scanned A, a copy of speckit.archive, Apache-2.0.

A command for moving a completed feature specification into the project's shared documentation and memory after the feature is merged.

In plain words
What is it for?
Updating selected or all project memory files, including specifications, plans, changelogs, and agent knowledge files.
Why use it?
It keeps the project's long-term documentation aligned with what was actually built.

Command for Claude Code

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

Good fit Updating selected or all project memory files, including specifications, plans, changelogs, and agent knowledge files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/opsmill/infrahub-mcp/archive
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.

Clone the repo
git clone --depth 1 https://github.com/opsmill/infrahub-mcp

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/opsmill/infrahub-mcp/archive.svg)](https://agentmods.dev/commands/opsmill/infrahub-mcp/archive)
Your own site
<a href="https://agentmods.dev/commands/opsmill/infrahub-mcp/archive"><img src="https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 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,905 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 92% 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.00015 $0.03905
Opus 5 $0.00008 $0.01953
Sonnet 5 $0.00003 $0.00781
Haiku 4.5 $0.00002 $0.00391

Measured 3d ago against content hash cfdba2803824, 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 3d 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

92% identical to speckit.archive — 18 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 · 428 lines

How it starts

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

Act as the Chief Software Architect and Documentation Maintainer. A feature has been merged into the main branch. Your goal is to archive the feature specification into the main project memory — ensuring completeness, resolving conflicts, closing gaps, and respecting the project constitution.

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Input Parsing

Parse $ARGUMENTS as follows:

  • First token: feature spec directory path (e.g., specs/007-invoice-settings)
  • Remaining tokens: scope modifiers (optional, space-separated)

Supported scope modifiers (if none provided, update all 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 / CLAUDE.md)

If $ARGUMENTS is empty, output ERROR: No feature spec directory provided. Usage: /speckit.archive.run specs/###-feature-name [--scope-modifier] and stop.


Step 0: Setup & Validation (Gate)

0.1 Resolve Paths

Run {SCRIPT} to identify the active feature directory and its artifacts. This script is mandatory for path discovery. If the script is missing, stop and inform the user.

Derive absolute paths for:

  • REPO_ROOT (from {SCRIPT} output)
  • FEATURE_DIR (from {SCRIPT} output)
  • MEMORY_DIR (REPO_ROOT / .specify/memory)
  • TEMPLATES_DIR (REPO_ROOT / .specify/templates)

Path convention: Feature specs live in specs/{###-feature-name}/ at repo root. Use absolute paths for all file operations.

0.2 Validate Feature Directory

Verify FEATURE_DIR exists and contains:

  • spec.md (required)
  • plan.md (required)

If any required file is missing:

⚠️ Invalid feature spec: Missing required files in FEATURE_DIR. Expected:

  • spec.md
  • plan.md

Run /speckit.specify and /speckit.plan first.

Read the full file on GitHub · 428 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. 3d ago First seen · 428 lines · 15 tokens per session scan A cfdba2803824

Subscribe to this mod's changes

archive is a command published in the GitHub repository opsmill/infrahub-mcp (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 15 tokens to every session and 3,905 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to speckit.archive, differing in 18 lines, and is treated as a copy.