save-spec

save-spec is a skill for Claude Code from pitimon/8-habit-ai-dev. It costs 98 tokens per session (3,068 once invoked), scanned A, original, MIT.

A generator for creating a project-root SPEC.md file: a short document that points to the important details of a software project.

In plain words
What is it for?
Use it once when setting up an operational, infrastructure, integration, or single-system repository that does not yet have a SPEC.md file.
Why use it?
It gives a project a read-first reference after the conversation is cleared or shortened, while avoiding accidental replacement of an existing SPEC.md.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the 8-habit-ai-dev plugin — 24 skills, 2 agents, 1 hook shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pitimon/8-habit-ai-dev
Claude Code
/plugin install 8-habit-ai-dev

Made for: Claude Code.

Or install 8-habit-ai-dev, the plugin that ships this one along with the rest of its 24 skills, 2 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/save-spec.svg)](https://agentmods.dev/skills/pitimon/8-habit-ai-dev/save-spec)
Your own site
<a href="https://agentmods.dev/skills/pitimon/8-habit-ai-dev/save-spec"><img src="https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/save-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,068 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.1 $0.00098 $0.03068
Opus 5 $0.00049 $0.01534
Sonnet 5 $0.00020 $0.00614
Haiku 4.5 $0.00010 $0.00307

Measured 6d ago against content hash 29ee219e2faa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

save-spec 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 6d 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.

plugin/skills/save-spec/SKILL.md · 106 lines

How it starts

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

Scaffold Project SPEC.md (/save-spec)

Habits: H8 (Find Your Voice — pick the deployment mode that fits your repo) + H2 (Begin with End in Mind — establish the save point on day 1) | Anti-pattern: Copying the SPEC.md template by hand every time you start a new operational repo, then forgetting to fill the timestamp.

When to Use

  • The repo fits the project-orientation hub mode (operational / infra / integration / single-system) — not the per-feature --persist <slug> mode.
  • You want a one-page digest at the project root that points to project-specific detail files and acts as the read-first save point after /clear or /compact.
  • No SPEC.md exists yet at the project root.
  • See guides/spec-digest-pattern.md for the full pattern. This skill scaffolds the file; the discipline of maintaining it is yours.

When to Skip

  • Repo uses the feature-spec mode (docs/specs/<slug>/{prd,design,tasks,current-state}.md). Use /requirements --persist, /design --persist, /breakdown --persist instead.
  • SPEC.md already exists at the project root — Phase 1 is generator-only; edit it manually or wait for Phase 2 --update.
  • One-off scripts / single-file repos where a digest adds no value.
  • Memory-MCP already active (claude-mem, memforge, or equivalent with SessionStart context injection) AND your existing CLAUDE.md is short enough to scan in <30 seconds (a ~150-line threshold is a reasonable rule of thumb). In that combination, §1 (architecture) is already covered by CLAUDE.md's top section and §4 (Current state save-point) is already covered by the memory-MCP's chronological injection — more faithfully than a human-curated §4, because the memory layer captures what actually happened in the last session, not what the operator remembered to write down. §4 is the only section providing net value over what you already have; consider writing a short ## Current state section directly into CLAUDE.md instead of scaffolding a separate file. (Surfaced by Adopter #2's third-repo dogfood — issue #207. The skill's H8 Checkpoint already acknowledges "the value depends on the user's habit of updating it" — this skip entry extends that honesty to the upstream question of whether the scaffold is worth maintaining at all.)

Read the full file on GitHub · 106 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 106 lines · 98 tokens per session scan A 29ee219e2faa

Subscribe to this mod's changes

save-spec is a skill published in the GitHub repository pitimon/8-habit-ai-dev (3 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 3,068 once invoked, about $0.0005 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.