safe-push

safe-push is a command for Claude Code from jameywarren/shopify-claude-quickstart. It costs 9 tokens per session (643 once invoked), scanned A, original, MIT.

A safety review for Shopify theme changes before they are pushed to the live store. Shopify is the ecommerce platform where the theme controls the storefront’s design and code.

In plain words
What is it for?
Use it to check a theme release and, when clear, get the exact command for publishing it. Related section and template changes are pushed in two stages to avoid validation errors.
Why use it?
It helps catch untested changes, browser errors, invalid Liquid code, hardcoded text, missing translations, and unfinished data changes before they affect shoppers.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Good fit Use it to check a theme release and, when clear, get the exact command for publishing it. Related section and template changes are pushed in two stages to avoid validation errors.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jameywarren/shopify-claude-quickstart/safe-push
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/jameywarren/shopify-claude-quickstart

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 safe-push

README.md
[![agentmods](https://agentmods.dev/badge/commands/jameywarren/shopify-claude-quickstart/safe-push.svg)](https://agentmods.dev/commands/jameywarren/shopify-claude-quickstart/safe-push)
Your own site
<a href="https://agentmods.dev/commands/jameywarren/shopify-claude-quickstart/safe-push"><img src="https://agentmods.dev/badge/commands/jameywarren/shopify-claude-quickstart/safe-push.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 643 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.00009 $0.00643
Opus 5 $0.00005 $0.00321
Sonnet 5 $0.00002 $0.00129
Haiku 4.5 $0.00001 $0.00064

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

Security

Grade A, and why

safe-push 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 7d 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/commands/safe-push.md · 71 lines

What it actually says

Before pushing any theme changes to the live theme, run through:

  1. Were changes tested on a dev theme first? (find recent shopify theme push --theme commands in docs/session-log.md)
  2. Are there console errors in any changed sections?
  3. Does the Liquid validate cleanly via shopify-plugin:shopify-liquid?
  4. Hardcoded strings that should be settings or translations?
  5. Missing schema translations for any new settings?
  6. Any in-flight metafield/metaobject changes that haven't been applied yet?

Report all issues. If all clear, confirm "ready to push" and output the exact push command for the live theme.

Push ordering — if pushing a section and a template that references it together:

Push in two steps. Shopify validates template JSON before resolving new section schemas, so pushing both at once can fail with a block-key error even when the files are correct.

# Step 1: section Liquid first
shopify theme push --path store-data/theme --store {STORE}.myshopify.com --theme LIVE_THEME_ID --force \
  --only sections/changed.liquid

# Step 2: template JSON after
shopify theme push --path store-data/theme --store {STORE}.myshopify.com --theme LIVE_THEME_ID --force \
  --only templates/changed.json

For unrelated files (no section/template dependency), a single push is fine:

shopify theme push --path store-data/theme --store {STORE}.myshopify.com --theme LIVE_THEME_ID --force \
  --only sections/a.liquid sections/b.liquid

--force is required for live theme pushes. Claude Code runs non-interactively — the Shopify CLI prompt "Push theme files to the live theme?" has no TTY to answer and exits with code 1. --force bypasses it. Dev theme pushes don't need it.

The --path store-data/theme flag is required — omitting it causes "not in a theme directory" errors.

Do not push yourself — I push.


After the user confirms the push succeeded

Check if this project has a git remote:

git remote -v 2>/dev/null

If a remote exists — commit the pushed files automatically:

git add store-data/theme/
git status

Show the staged files, then commit with a message derived from what was pushed (use the filenames from the --only list):

git commit -m "theme: {brief description of what changed}

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>"
git push

Example messages: theme: update hero subheading and CTA copy, theme: add ski landing page template, theme: fix product grid spacing on mobile.

If no remote exists — ask: "No GitHub repo connected yet. Want to run /github-setup to enable version history?"

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. 7d ago First seen · 71 lines · 9 tokens per session scan A aef53bb33fe8

Subscribe to this mod's changes

safe-push is a command published in the GitHub repository jameywarren/shopify-claude-quickstart (2 stars, last pushed 4mo ago), licensed MIT. It adds 9 tokens to every session and 643 once invoked, about $0.0000 per session on Opus 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.