init-shopify-app

init-shopify-app is a command for Claude Code from khadinakbarlabs/shopify-app-builder. It costs 24 tokens per session (515 once invoked), scanned A, original, MIT.

A setup workflow for creating a new Shopify app with Shopify CLI and a Remix template. Shopify CLI is Shopify's command-line tool, while Remix is a web framework for building the app interface and server routes.

In plain words
What is it for?
Use it to scaffold an app, create environment settings, configure OAuth login, set permissions, start local development, and prepare webhook tunnelling.
Why use it?
It provides a defined starting structure and covers local configuration, authentication, sessions, dependencies, and development startup.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the shopify-app-builder plugin — 32 skills, 9 commands, 5 agents shipped together

Good fit Use it to scaffold an app, create environment settings, configure OAuth login, set permissions, start local development, and prepare webhook tunnelling.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/khadinakbarlabs/shopify-app-builder/init-shopify-app
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/khadinakbarlabs/shopify-app-builder

Made for: Claude Code.

Or install shopify-app-builder, the plugin that ships this one along with the rest of its 32 skills, 9 commands, 5 agents.

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-shopify-app

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/khadinakbarlabs/shopify-app-builder/init-shopify-app"><img src="https://agentmods.dev/badge/commands/khadinakbarlabs/shopify-app-builder/init-shopify-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 515 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.00024 $0.00515
Opus 5 $0.00012 $0.00258
Sonnet 5 $0.00005 $0.00103
Haiku 4.5 $0.00002 $0.00052

Measured 8d ago against content hash 3282e0becb23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

init-shopify-app 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 8d 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.

commands/init-shopify-app.md · 60 lines

How it starts

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

Initialize Shopify App

You are scaffolding a new Shopify application. Follow these steps to create and configure the app.

Setup Phase

  1. Create project with Shopify CLI

    • Use shopify app create [app-name] with Node.js 20.19+
    • Select Remix template for web framework
    • Confirm package manager (npm/yarn/pnpm) based on store requirements
    • Reference skill: CLI scaffolding (01_cli_scaffolding.md)
  2. Configure environment variables

    • Generate .env file with SHOPIFY_API_KEY, SHOPIFY_API_SECRET
    • Add SCOPES (read_products, write_orders minimum)
    • Set SHOP environment variable to [store-domain]
    • Configure SHOPIFY_APP_URL for local ngrok tunneling
    • Reference skill: authentication patterns (04_functions_auth_billing_mcp.md)
  3. Initialize local development

    • Run shopify app dev to start Remix server on localhost:3000
    • Confirm Vite HMR enabled for hot module replacement
    • Verify webhook tunnel created automatically
    • Install dependencies: npm install or yarn install

Integration Phase

  1. Setup Token Exchange flow

    • Create /routes/auth/callback.jsx with OAuth token handler
    • Implement session storage in SQLite or external DB
    • Add PKCE-compliant exchange endpoint
    • Reference skill: authentication flows (04_functions_auth_billing_mcp.md)
  2. Configure webhook subscriptions

    • Define webhook topics in shopify.app.toml (PRODUCTS_CREATE, ORDERS_PAID)
    • Create webhook handlers in /routes/webhooks/ directory
    • Implement webhook signature verification with HMAC-SHA256
    • Reference skill: webhook configuration (02_apis.md)
  3. Test local development

    • Verify app loads in Shopify admin at /admin/apps/[app-id]
    • Confirm OAuth redirect works without errors
    • Test webhook delivery with test events from admin

Output Sample

Display completion with:

✓ App initialized: [app-name]
✓ Environment configured for [store-domain]
✓ Development server running on http://localhost:3000
✓ Webhook tunnel active
✓ Ready for Feature Development (use generate-extension for next step)

Read the full file on GitHub · 60 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. 8d ago First seen · 60 lines · 24 tokens per session scan A 3282e0becb23

Subscribe to this mod's changes

init-shopify-app is a command published in the GitHub repository khadinakbarlabs/shopify-app-builder (1 stars, last pushed 29d ago), licensed MIT. It adds 24 tokens to every session and 515 once invoked, about $0.0001 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.