registry

registry is a command for Claude Code from Chappygo-OS/Atomic-Spec. It costs 58 tokens per session (4,180 once invoked), scanned A, original, MIT.

A command for maintaining a project defaults registry, a central file that records shared technical decisions. It scans common project manifest files such as package.json, pyproject.toml, Cargo.toml, and go.mod.

In plain words
What is it for?
Use it to initialize, update, or audit the registry and record detected decisions with a change history and human confirmation.
Why use it?
It prevents project-wide defaults from being rediscovered or decided differently each time code is generated.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit Use it to initialize, update, or audit the registry and record detected decisions with a change history and human confirmation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/chappygo-os/atomic-spec/registry
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/Chappygo-OS/Atomic-Spec

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 registry

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/chappygo-os/atomic-spec/registry"><img src="https://agentmods.dev/badge/commands/chappygo-os/atomic-spec/registry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 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,180 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.00058 $0.04180
Opus 5.5 $0.00023 $0.01672
Sonnet 5.5 $0.00012 $0.00836
Haiku 4.5 $0.00006 $0.00418

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

Security

Grade A, and why

registry 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.

templates/commands/registry.md · 314 lines

How it starts

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

User Input

$ARGUMENTS

Honor the user input. Common patterns:

  • init (default when empty) — create or populate from scratch
  • update — re-scan and surface new decisions against the existing registry
  • audit — read-only report of registry coverage vs. detected project signals

Outline

You are managing specs/_defaults/registry.yaml — the Project Defaults Registry defined by Constitution Article IX, Directive 7. This file is the single source of truth for project-wide technical decisions. Every command that generates code reads it on entry; every phase that makes new decisions writes to it on exit (with HITL approval).

Core guarantee: decisions are captured once, surface everywhere, never hallucinated on the fly.

This command covers the "On Entry — file does not exist yet" case and the "periodic update" case. The plan and implement phases handle in-flight updates via their own Phase 0.9 / Phase 9 sync checkpoints.

Follow this execution flow. Do NOT skip phases.

Phase 1 — Pre-flight State Detection

Classify specs/_defaults/registry.yaml into one of three states. This determines the rest of the flow.

Run:

{SCRIPT}

(uses scripts/bash/check-prerequisites.sh --paths-only --json to locate REPO_ROOT)

Then inspect $REPO_ROOT/specs/_defaults/registry.yaml:

State Definition Next step
MISSING File does not exist Proceed to Phase 2. Warn the user: "I will discover defaults from your project manifests, confirm with you, and create the registry."
EMPTY File exists, every leaf value is null / [] / ~ Proceed to Phase 2. Same user message.
POPULATED At least one leaf has a real value If user input was init, warn that the registry already has content and ask: [Re-discover + update] [Audit only] [Cancel]. If user input was update or audit, proceed accordingly.

For the POPULATED path with "audit only", skip Phases 2–5 and go straight to Phase 6 (audit report), then stop without writing.

Read the full file on GitHub · 314 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 First seen · 314 lines · 58 tokens per session scan A 240d3eb2ab01

Subscribe to this mod's changes

registry is a command published in the GitHub repository Chappygo-OS/Atomic-Spec (10 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 4,180 once invoked, about $0.0002 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.