agents: Instructions file for Claude Code

CLAUDE.md

agents CLAUDE.md is an instructions file for Claude Code from commerce-atoms/agents. It costs 513 tokens per session, scanned A, original, MIT.

Repository instructions for maintaining the commerce-atoms/agents npm package, including its TypeScript source, tests, and storefront kit.

In plain words
What is it for?
Use them when changing the package, reviewing its contribution rules, working on the separate storefront kit, running verification, or preparing a tag-based release.
Why use it?
They prevent edits in the wrong project area and require type checks, index validation, and tests after meaningful changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to commerce-atoms/agents. 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/commerce-atoms/agents/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/commerce-atoms/agents

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 agents CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/commerce-atoms/agents/claude-md/github.svg)](https://agentmods.dev/instructions/commerce-atoms/agents/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/commerce-atoms/agents/claude-md"><img src="https://agentmods.dev/badge/instructions/commerce-atoms/agents/claude-md/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 agents CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/commerce-atoms/agents/claude-md"><img src="https://agentmods.dev/badge/instructions/commerce-atoms/agents/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 513 This file is loaded in full into every session.
When invoked 513 The same file — it is already loaded in full.
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.00513 $0.00513
Opus 5.5 $0.00205 $0.00205
Sonnet 5.5 $0.00103 $0.00103
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

agents CLAUDE.md 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.md · 25 lines

What it actually says

CLAUDE.md. @commerce-atoms/agents (kit authoring)

You are working on the npm package itself, not a Hydrogen storefront. Read AGENTS.md and then CONTRIBUTING.md before doing anything else.

The shipped product lives under kit/ and has its own kit/CLAUDE.md. Those rules are for AI agents in storefront repos and do not govern this repo.

Behavioural defaults for this repo

  1. Edit, don't speculate. When asked to change behaviour in src/ or bin/, read the file first, then propose a minimal diff. The validators are pure; new tests should accompany behaviour changes.
  2. TypeScript strict mode is non-negotiable. Don't suppress type errors with as any, // @ts-expect-error, or // @ts-ignore. Fix the root cause.
  3. Run npm run verify after substantive edits. It runs tsc --noEmit, the INDEX.json linter, and the test suite. If something fails, fix before reporting work as done.
  4. Don't edit content under kit/ without reading kit/AGENTS.md first. Treat that subtree as a separate sub-project.
  5. Releases happen via tag + CI, not from a workstation. If asked to publish, push a tag; do not invoke npm publish directly.

Where to look

Question Answer lives in
How is content shipped to consumers? src/sync.ts + bin/sync.ts
How is a new store initialised? src/init.ts
How are architecture rules enforced in consumer repos? src/validate.ts + src/internal/validators/
What lives in the kit? kit/INDEX.json
Why a decision was made? kit/docs/decisions/
How do I add a rule / skill / command / prompt / persona? CONTRIBUTING.md → "Kit content"
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 · -1 tokens per session 8288fb5a752d
  2. 2mo ago First seen · 25 lines · 514 tokens per session scan A 115ef19d7773

Subscribe to this mod's changes

agents CLAUDE.md is an instructions file published in the GitHub repository commerce-atoms/agents (1 stars, last pushed 1mo ago), licensed MIT. It adds 513 tokens to every session, about $0.0021 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.

Related

agents CLAUDE.md compared with instructions from other repositories

agents CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents CLAUDE.mdcommerce-atoms/agentsInstructions file11mo agoMITA513Claude Code
plugin-files-modegriddynamics/rosettaInstructions file370yesterdayApache-2.0A236GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot