inventory

inventory is a command for Claude Code from Chappygo-OS/Atomic-Spec. It costs 69 tokens per session (3,936 once invoked), scanned A, original, MIT.

A project inventory tool that lists pages, routes, interface parts, services, data structures, and background jobs, along with each item’s purpose. It can create, refresh, or check this record against the codebase.

In plain words
What is it for?
Use it to build an inventory, refresh it after changes, or produce a read-only report of differences.
Why use it?
It helps an agent find existing code before writing new code, reducing duplicate features and outdated project documentation.

Command for Claude Code

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

Good fit Use it to build an inventory, refresh it after changes, or produce a read-only report of differences.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/chappygo-os/atomic-spec/inventory"><img src="https://agentmods.dev/badge/commands/chappygo-os/atomic-spec/inventory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,936 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.00069 $0.03936
Opus 5.5 $0.00028 $0.01574
Sonnet 5.5 $0.00014 $0.00787
Haiku 4.5 $0.00007 $0.00394

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

Security

Grade A, and why

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

templates/commands/inventory.md · 249 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Purpose (v0.6+)

The inventory is the project's memory of what already exists and what job it does. It is the input to the Reuse & Overlap scan in /atomicspec.specify, the Reuse Decisions table in /atomicspec.plan, the Reuse Context row (Directive 8) in /atomicspec.tasks, the duplicate-purpose check in /atomicspec.review, and the functional-duplicate detection in /atomicspec.cleanup.

Artifact Path
Compiled inventory specs/_inventory/inventory.yaml (schema: templates/inventory-template.yaml)
Per-feature fragments specs/_inventory/features/<NNN-slug>.yaml (written by /atomicspec.implement §4.5)
Codebase map specs/_inventory/codebase-map.md (≤150 lines)

Modes

Parse $ARGUMENTS:

Argument Mode Writes?
(none) bootstrap — brownfield scan → draft entries → user confirms → write yes
--refresh refresh — compile all fragments + rescan for drift → write yes
--check check — read-only drift report no
--roots <a,b,...> (optional, any writing mode) restrict the scan to these source roots —

If bootstrap is requested but specs/_inventory/inventory.yaml already exists, ask with AskUserQuestion:

Question: "An inventory already exists (coverage: <partial|full>, <N> entries, generated <ts>). What now?"
Header: "Inventory"
Options:
  - Label: "Refresh it (Recommended)"
    Description: "Compile feature fragments and rescan for drift; keeps existing ids and purposes"
  - Label: "Re-bootstrap"
    Description: "Rescan everything and re-confirm purposes; existing ids are kept where paths match"
  - Label: "Cancel"
    Description: "Leave the inventory as it is"

⚠️ Principles

  1. Factual, not aspirational. Entries describe code that exists today. Never add planned work.
  2. Purpose = the job, in one sentence. "Lets an admin cancel a subscription and see the refund before confirming" — not "Subscription modal". A purpose that only restates the name is not done.
  3. Never writes application code, never deletes code. Writes only under specs/_inventory/.
  4. Never writes the registry. Stack facts discovered during the scan that are missing from specs/_defaults/registry.yaml are listed at the end with a suggestion to run /atomicspec.registry (Directive 7).
  5. Exempt from traceability. Everything this command writes lives under specs/, which reverse-traceability never treats as orphan code. No task files, no Lifecycle Markers.
  6. Degrade, don't fail. Unknown stack → generic grep scan + coverage: partial. No registry → infer stack from manifests. Empty repo (greenfield) → write an empty inventory with coverage: full and say so.
  7. Stable ids. Once an id exists it is never renamed (other artifacts cite it). Moved files keep their id; the path is updated.

Read the full file on GitHub · 249 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 First seen · 249 lines · 69 tokens per session scan A e927b9db8561

Subscribe to this mod's changes

inventory is a command published in the GitHub repository Chappygo-OS/Atomic-Spec (10 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 3,936 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-12-04.

Related

inventory compared with commands from other repositories

inventory next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inventoryChappygo-OS/Atomic-SpecCommand10yesterdayMITA69Claude Code
ijfw-auditFerroxLabs/ijfwCommand2156d agoMITA28Claude Code
ijfw-executeFerroxLabs/ijfwCommand2156d agoMITA36Claude Code
ijfw-metricsFerroxLabs/ijfwCommand2156d agoMITA37Claude Code
assistant-autochristopherlouet/claude-baseCommand6todayMITA0Claude Code
code-locateMozurok/fhorja.devCommand102d agoMITA0Claude Code
contract-signoffMozurok/fhorja.devCommand102d agoMITA86Claude Code