init-store

init-store is a command for Claude Code from commerce-atoms/agents. It costs 26 tokens per session (928 once invoked), scanned A, original, MIT.

A project-initialization command that creates a new Shopify Hydrogen storefront from a standard starter project.

In plain words
What is it for?
Use it to create a named storefront, set its package metadata, remove inherited Git history, and add the initial brand configuration and agent dependency.
Why use it?
It avoids manually cloning, renaming, cleaning, and preparing the starter repository. It also prevents overwriting an existing directory.

Command for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to create a named storefront, set its package metadata, remove inherited Git history, and add the initial brand configuration and agent dependency.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/commerce-atoms/agents/init-store
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/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 init-store

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/commerce-atoms/agents/init-store"><img src="https://agentmods.dev/badge/commands/commerce-atoms/agents/init-store.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 928 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.00026 $0.00928
Opus 5.5 $0.00010 $0.00371
Sonnet 5.5 $0.00005 $0.00186
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade A, and why

init-store 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.

kit/commands/init-store.md · 73 lines

How it starts

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

/init-store <store-name>

Initialise a new Shopify Hydrogen storefront from the canonical starter, with the agent layer pinned and a brand-layer placeholder ready to fill in.

Convention

By convention (see rules/stores.md), run this command from ~/Projects/commerce-atoms/stores/. The new store is created as a sibling under stores/, never at the top level of commerce-atoms/.

Workflow

  1. Validate the name. Lowercase letters, digits, hyphens; starts with a letter; 2-50 chars. Reject anything else and surface the validation error.

  2. Refuse to overwrite. If <cwd>/<store-name> already exists, abort with a clear message. Do not destroy work.

  3. Run the CLI:

    cd ~/Projects/commerce-atoms/stores
    npx @commerce-atoms/agents init <store-name>
    

    This wraps:

    1. git clone --depth=1 --branch main https://github.com/commerce-atoms/hydrogen-storefront-starter.git <store-name>
    2. Remove the inherited .git/ history.
    3. Rename package.json#name to <store-name>, set private: true, reset to 0.1.0.
    4. Replace README.md with a store-specific stub (linked to @commerce-atoms/agents version).
    5. Seed app/config/brand.ts and app/assets/brand/ with placeholders if the starter doesn't provide them.
    6. Run commerce-atoms-agents sync internally to materialise AGENTS.md, CLAUDE.md, copilot-instructions.md, and .cursor/rules/*.mdc.
    7. git init --initial-branch=main + initial commit.
  4. Print the next-steps checklist (the CLI does this; surface it verbatim to the user):

    1. cd <store-name>
    2. Edit app/config/brand.ts (name, locales, colours, fonts).
    3. Replace app/assets/brand/* with your real assets.
    4. Set up Shopify Admin (storefront token, products, theme).
    5. Wire CI: /deploy-setup
    6. First deploy: git push origin main
    

Done when

  • The directory <cwd>/<store-name> exists.
  • package.json#name is <store-name>.
  • agents.config.json pins the current @commerce-atoms/agents version.
  • AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, and .cursor/rules/*.mdc are present.
  • app/config/brand.ts exists with placeholder values.
  • The repo has a single initial commit on main.

Read the full file on GitHub · 73 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 Changed db48856a5d3c
  2. 1mo ago First seen · 73 lines · 26 tokens per session scan A 9a1821fc9401

Subscribe to this mod's changes

init-store is a command published in the GitHub repository commerce-atoms/agents (1 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 928 once invoked, about $0.0001 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.