codev: Skill for Claude Code

.claude/skills/arch-save/SKILL.md

arch-save is a skill for Claude Code from cluesmith/codev. It costs 86 tokens per session (3,783 once invoked), scanned A, original, Apache-2.0.

A context-refresh workflow for an architect agent: it saves important state, clears the current context, and starts again from that saved point.

In plain words
What is it for?
Refreshing an agent during a long task when the owner explicitly requests it, such as with “save and clear” or “/arch-save”.
Why use it?
Long conversations can accumulate outdated or distracting information. This preserves the details needed to continue while giving the agent a fresh working context.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is cluesmith/codev's own configuration. It tells Claude Code how to work on codev 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 codev configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cluesmith/codev. 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/cluesmith/codev/main/.claude/skills/arch-save/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cluesmith/codev

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 arch-save

README.md
[![agentmods](https://agentmods.dev/badge/skills/cluesmith/codev/arch-save/github.svg)](https://agentmods.dev/skills/cluesmith/codev/arch-save)
Your own site
<a href="https://agentmods.dev/skills/cluesmith/codev/arch-save"><img src="https://agentmods.dev/badge/skills/cluesmith/codev/arch-save/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 arch-save

Your own site · 80×15
<a href="https://agentmods.dev/skills/cluesmith/codev/arch-save"><img src="https://agentmods.dev/badge/skills/cluesmith/codev/arch-save.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,783 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 186
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00086 $0.03783
Opus 5.5 $0.00034 $0.01513
Sonnet 5.5 $0.00017 $0.00757
Haiku 4.5 $0.00009 $0.00378

Measured 1mo ago against content hash e733cddb3305, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arch-save 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 1mo 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.

.claude/skills/arch-save/SKILL.md · 281 lines

How it starts

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

/arch-save — save state, clear, and come back as yourself

Long sessions accumulate stale context. This is the deliberate cure: you choose the moment, you choose what survives, and a fresh session resumes from what you wrote.

$ARGUMENTS carries the architect name, a next task for the session that comes back, or both:

/arch-save                                  save, clear, re-init, then wait
/arch-save file and spawn that issue        … and start on that first, unprompted
/arch-save main file and spawn that issue   explicit name, then the next task

The next task is how an owner who already knows what the refreshed session should do first says so once, at the moment they direct the refresh, instead of watching for the re-init to land and typing it again.

When NOT to run this

On the owner's direction, or when the owner runs it themselves. Do not invoke this autonomously mid-task on your own judgement — the irreversible step is a human decision, relocated from "press /clear" to "invoke /arch-save", not removed. If the owner tells you to run it, run it; if you think it is time, suggest it and wait.

Only at a resumable boundary — a gate approval, a PR merge, a completed investigation, the end of a long tool-heavy stretch. Never mid-task. Nothing here can check that; the state file must describe a point a fresh session can resume from, not a half-finished action. A mid-task snapshot resumes into confusion.

The procedure

Do these in order. The order is the feature — step 3 must precede step 4, because the context that knows what to write is the one about to be destroyed.

1. Resolve your name, then split off the next task

Always run afx whoami first, whatever $ARGUMENTS holds — the split below cannot tell a name from a task until it knows your name. The name rules are unchanged:

  • type: architect → the reported name is yours.
  • type: builder → STOP. This terminal is a builder. Report the mismatch.
  • Non-zero exit → you have no name yet. A single-token $ARGUMENTS that validates as a name is still accepted as one; anything else → STOP and ask which architect you are. Do not guess, and do not default to main — writing another architect's state file is the exact failure /arch-init exists to prevent (#1094).

Read the full file on GitHub · 281 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. 1mo ago Changed · +91 lines e733cddb3305
  2. 2mo ago First seen · 190 lines · 86 tokens per session scan A 3203b8c59b38

Subscribe to this mod's changes

arch-save is a skill published in the GitHub repository cluesmith/codev (297 stars, last pushed 2d ago), licensed Apache-2.0. It adds 86 tokens to every session and 3,783 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-30.

Related

arch-save compared with skills from other repositories

arch-save next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arch-savecluesmith/codevSkill2972d agoApache-2.0A86Claude Code
moai-foundation-contextmodu-ai/moai-adkSkill1.3k3d agoApache-2.0A41Claude Code
project-knowledgeeugenelim/agent-ready-repoSkill28todayApache-2.0A68Claude Code, Codex
quarter-cloneykdojo/claude-code-tipsSkill10k1mo agononeB26Claude Code
half-cloneykdojo/claude-code-tipsSkill10k1mo agononeB26Claude Code
memory-retainvectorize-io/hindsightSkill59kyesterdayMITA46Cursor
awm-rsi-toolkitPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0A58Claude Code, Codex