archive

archive is a skill for Claude Code from ribeirogab/specwright. It costs 65 tokens per session (770 once invoked), scanned A, original, MIT.

A procedure for filing away a change folder after its branch has already been merged into the main codebase.

In plain words
What is it for?
It helps verify the merge using Git, check the change status, and move shipped changes into an archive with their ship date.
Why use it?
It prevents unfinished or unmerged work from being marked complete and keeps completed changes out of the active work area.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the sw plugin — 8 skills, 8 commands, 2 agents shipped together

Good fit It helps verify the merge using Git, check the change status, and move shipped changes into an archive with their ship date.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ribeirogab/specwright/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.

Any agent
npx skills add ribeirogab/specwright --skill archive
Clone the repo
git clone --depth 1 https://github.com/ribeirogab/specwright

Made for: Claude Code.

Or install sw, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 2 agents.

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/skills/ribeirogab/specwright/archive/github.svg)](https://agentmods.dev/skills/ribeirogab/specwright/archive)
Your own site
<a href="https://agentmods.dev/skills/ribeirogab/specwright/archive"><img src="https://agentmods.dev/badge/skills/ribeirogab/specwright/archive/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 archive

Your own site · 80×15
<a href="https://agentmods.dev/skills/ribeirogab/specwright/archive"><img src="https://agentmods.dev/badge/skills/ribeirogab/specwright/archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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.00065 $0.00770
Opus 5.5 $0.00026 $0.00308
Sonnet 5.5 $0.00013 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured 3mo ago against content hash 7acb09260068, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 3mo 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.

plugins/sw/skills/archive/SKILL.md · 81 lines

How it starts

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

archive — close out a merged change

The one step that happens after the maintainer merges. Every other command stops before that point: sw:review ends at lgtm and sw:ship ends with it, because merging is never the agent's call. This skill picks up on the other side and retires the change folder from the working set.

It does not merge, does not push, and does not review. It confirms and files.

Announce at start: "Archiving the change."

Inputs

$ARGUMENTS names a change folder or slug → use it. Empty → list the changes in .specwright/changes/*/ whose ticket says status: shipped and ask which; a single candidate may be used directly.

A change that is not shipped is not archivable. Say which status it carries and stop — pending or in-progress means the work is unfinished, and blocked means it needs a decision, not a filing cabinet.

Confirm the merge from git alone

The change's branch is in its task file's branch: frontmatter. Resolve the default branch, then ask git whether that branch's tip is already an ancestor of it:

git fetch --quiet origin
default="$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD | sed 's|^origin/||')"
default="${default:-main}"
git merge-base --is-ancestor "<branch>" "origin/$default"

Exit 0 means every commit on that branch is contained in the default branch: it merged, whatever the remote host is and whoever pressed the button. A non-zero exit means it did not — stop, report that the branch is not in origin/<default> yet, and archive nothing.

This check is deliberately host-agnostic. It works on GitHub, GitLab, Gitea, a bare remote on a colleague's machine, or a squash merge that rewrote the commits, because it asks git about containment rather than asking a forge about a pull request.

When the branch no longer exists locally, resolve it from origin/<branch>; when neither exists, the branch was deleted after merging — say so and ask the maintainer to confirm the merge before continuing.

Read the full file on GitHub · 81 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. 3mo ago First seen · 81 lines · 65 tokens per session scan A 7acb09260068

Subscribe to this mod's changes

archive is a skill published in the GitHub repository ribeirogab/specwright (3 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 770 once invoked, about $0.0003 per session on Opus 5.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

archive compared with skills from other repositories

archive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
archiveribeirogab/specwrightSkill33mo agoMITA65Claude Code
pr-describehams-ollo/zen-agent-skillsSkill21mo agoMITA117Claude Code, Codex
gsd-complete-milestoneopen-gsd/gsd-coreSkill12ktodayMITA16Claude Code
codex-issue-coordinatorowainlewis/blueprintSkill4477d agoMITA59Claude Code, Codex
release-archivistMageByte-Zero/spec-superflowSkill915yesterdayMITA42Claude Code
coco-shipcoco-research/cocoSkill3233d agoApache-2.0A69Claude Code
pmstudio-changelogcoco-research/cocoSkill3233d agoApache-2.0A98Claude Code, Codex