updatespec

updatespec is a command for Claude Code from naniiluja/ccf. It costs 77 tokens per session (4,303 once invoked), scanned A, original, MIT.

A command that records lessons from the current session in the project's rules and the agent's longer-term memory.

In plain words
What is it for?
It refreshes .claude rules, CLAUDE.md, system memory, and notes about when to use newly learned tools.
Why use it?
It helps future sessions repeat fewer mistakes and remember project-specific guidance.

Command for Claude Code

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

Part of the ccf plugin — 2 skills, 4 commands, 6 agents, 4 hooks, 2 MCP servers shipped together

Good fit It refreshes .claude rules, CLAUDE.md, system memory, and notes about when to use newly learned tools.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/naniiluja/ccf/updatespec
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/naniiluja/ccf

Made for: Claude Code.

Or install ccf, the plugin that ships this one along with the rest of its 2 skills, 4 commands, 6 agents, 4 hooks, 2 MCP servers.

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 updatespec

README.md
[![agentmods](https://agentmods.dev/badge/commands/naniiluja/ccf/updatespec/github.svg)](https://agentmods.dev/commands/naniiluja/ccf/updatespec)
Your own site
<a href="https://agentmods.dev/commands/naniiluja/ccf/updatespec"><img src="https://agentmods.dev/badge/commands/naniiluja/ccf/updatespec/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 updatespec

Your own site · 80×15
<a href="https://agentmods.dev/commands/naniiluja/ccf/updatespec"><img src="https://agentmods.dev/badge/commands/naniiluja/ccf/updatespec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,303 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.00077 $0.04303
Opus 5.5 $0.00031 $0.01721
Sonnet 5.5 $0.00015 $0.00861
Haiku 4.5 $0.00008 $0.00430

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

Security

Grade A, and why

updatespec 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 2d 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/ccf/commands/updatespec.md · 105 lines

How it starts

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

You are running CCF /ccf:updatespec. Distill this session's lessons into two places — the project spec (.claude/) and Claude Code's system memory — so future sessions start with fresh context and repeat fewer mistakes.

Why two places, and what goes where:

  • Spec (CLAUDE.md + .claude/rules/) is loaded as a user message tagged "may not be relevant", so it carries lower weight. It suits project rules: conventions, architecture, tech stack, tooling.
  • Memory (~/.claude/projects/<path>/memory/) is loaded into the system prompt and is not down-weighted, so Claude follows it more strongly. It suits anti-mistake feedback and user preferences across sessions.
  • No duplication: anything already in CLAUDE.md stays there. When a rule in CLAUDE.md keeps getting forgotten, write a feedback memory that reinforces it and states why, instead of copying its content.

0a. Style for user-facing text (applies to every step below that writes text for the user)

Scope boundary: this rule governs CCF-generated text meant for the human reader (the diff explanation, the "why" line, the plan and task sync notes shown to the user). It does NOT apply to the CCF repo's own source, which stays English per .claude/rules/components.md (never translate the repo itself).

  • Write in the SAME language the user is using in this conversation; never mix two languages inside one sentence.
  • Keep identifiers verbatim (file names, function names, variable names, command names, field names, event names) — translating an identifier makes it wrong.
  • Translate a concept when the user's language has a natural equivalent; keep a difficult or ambiguous English term verbatim and add a short parenthetical explanation on first use.
  • No em dash; use a comma, colon, or parentheses instead.
  • One idea per sentence; split a sentence longer than two lines.
  • A language that uses diacritics (e.g. Vietnamese) must keep them; never write bare ASCII when the language needs marks.
  • Do not invent abbreviations; if one is used, spell it out on first use.
  • Open with the point itself; never with generic filler. End when the content ends; never restate what was just said as a summary.
  • Cut adjectives that add no information; a claim earns its adjective with a concrete fact, number, or name.
  • Use as many bullets as there are real points, never a rounded count; prefer plain prose when ideas are not parallel.
  • Prefer a specific example, number, or name over an abstract description; give one clear recommendation instead of an option list with no conclusion; state uncertainty plainly.
  • Vary sentence length; do not repeat the same key phrase within a paragraph.
  • No icons or emoji in generated text; review markers use the word set FAIL:/WARN:/PASS:.

Read the full file on GitHub · 105 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. 2d ago Changed 745884545521
  2. 19d ago Changed · +12 lines · +31 tokens per session 5da9f115a52f
  3. 20d ago Changed · +15 lines adf7be01f6c7
  4. 22d ago Changed 42956d547a16
  5. 1mo ago Changed 74bed75e000e
  6. 1mo ago First seen · 78 lines · 46 tokens per session scan A f1b90f084bb9

Subscribe to this mod's changes

updatespec is a command published in the GitHub repository naniiluja/ccf (9 stars, last pushed 2d ago), licensed MIT. It adds 77 tokens to every session and 4,303 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.