add-billing-plan

add-billing-plan is a command for Claude Code from mentilead/shopify-app-skill. It costs 0 tokens per session (465 once invoked), scanned A, original, MIT.

A coding command for adding a subscription plan to a Shopify app, including its price, trial period, and which features the plan unlocks.

In plain words
What is it for?
Use it when launching a new paid tier, such as a monthly Pro or Enterprise plan, with optional free trials and feature restrictions.
Why use it?
It removes the need to connect billing settings, stored subscription data, and plan-based access by hand. It also accounts for Shopify development-store and custom-app billing limits.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Part of the shopify-app-skill plugin — 1 skill, 10 commands shipped together

Good fit Use it when launching a new paid tier, such as a monthly Pro or Enterprise plan, with optional free trials and feature restrictions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mentilead/shopify-app-skill/add-billing-plan
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/mentilead/shopify-app-skill

Made for: Claude Code.

Or install shopify-app-skill, the plugin that ships this one along with the rest of its 1 skill, 10 commands.

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 add-billing-plan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mentilead/shopify-app-skill/add-billing-plan"><img src="https://agentmods.dev/badge/commands/mentilead/shopify-app-skill/add-billing-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 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.00000 $0.00465
Opus 5 $0.00000 $0.00233
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

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

Security

Grade A, and why

add-billing-plan 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 9d 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/add-billing-plan.md · 31 lines

What it actually says

Add Billing Plan

Add a new subscription plan with trial support, plan gating, and pricing UI.

Arguments

$ARGUMENTS = plan name and optional details (e.g., "pro $29/month with 14-day trial", "enterprise")

Instructions

  1. Parse the plan name, price, and trial days from $ARGUMENTS. If missing, ask the user for plan name, monthly price, and trial length.
  2. Read .claude/skills/shopify-app/references/billing-patterns.md for the full billing flow, billing.request() throw behavior, and isDevelopmentStore pattern.
  3. Read .claude/skills/shopify-app/SKILL.md gotchas #7 (Plus dev stores can't approve test charges) and #8 (Custom apps cannot use Billing API).
  4. Add the plan definition to app/shopify.server.ts in the billing config:
    • Plan name, amount, currencyCode, interval
    • trialDays if trial was specified
  5. Create or update the billing service function in app/services/billing.server.ts:
    • syncBillingToDb(shopDomain, admin) — checks active subscription and writes to DynamoDB
    • loadShopBilling(shopDomain) — reads current plan from DynamoDB
    • Feature gating helper that maps plans to feature sets
  6. Update the layout loader in app/routes/app.tsx to sync billing on page load using the charge_id redirect pattern from the skill (gotcha #5).
  7. Create or update the pricing page at app/routes/app.pricing.tsx:
    • Show plan cards with features and pricing
    • Use useFetcher for the upgrade action (not useActionData — gotcha #3)
    • Handle isDevelopmentStore for test charges
  8. If the plan gates specific features, add the gating check to relevant loaders/actions.
  9. Remind the user to:
    • Test with a non-Plus Basic dev store (gotcha #7)
    • Verify the app is Public or Unlisted distribution (gotcha #8)
    • Test the full flow: trial start → approval → redirect → plan display
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. 9d ago First seen · 31 lines · 0 tokens per session scan A 046ecf583dd3

Subscribe to this mod's changes

add-billing-plan is a command published in the GitHub repository mentilead/shopify-app-skill (5 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 465 tokens. 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.