shopify-policy-guardrails
Skill by jeremylongshore
Adds policy enforcement to Shopify apps with ESLint rules, query cost budgets, pre-commit hooks and App Store compliance checks. It is for developers hardening a Shopify app against secret leaks or preparing for App Store review.
Install shopify-policy-guardrails
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/shopify-policy-guardrails ~/.claude/skills/shopify-policy-guardrailsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install shopify-policy-guardrails in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/shopify-policy-guardrails ~/.gemini/antigravity-cli/skills/shopify-policy-guardrailsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install shopify-policy-guardrails in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets up automated policy checks for a Shopify app. It adds a custom ESLint rule that flags hardcoded Shopify tokens (shpat_ and shpss_) and API secrets in string and template literals. It also statically analyzes GraphQL queries against budgets: at most 100 items per first: parameter, at most 3 levels of nesting, and at most 500 estimated cost.
The skill also covers pre-commit hooks that scan staged changes for tokens and block .env files, a pre-submission script that checks the three GDPR webhooks, token hygiene, CSP headers and API version stability, and a GitHub Actions workflow that runs these checks on every push and pull request. It is intended for developers of Shopify apps who want guardrails before App Store submission.
Written from the project's SKILL.md and checked against it.
What it can do
- Secret detection ESLint ruleFlags hardcoded Shopify tokens and API secrets in string and template literals.
- Query cost budget enforcementChecks GraphQL queries against limits on first: items, nesting depth and estimated cost.
- Pre-commit hooksScans staged changes for Shopify tokens and blocks .env files from being committed.
- App Store compliance checkerValidates GDPR webhooks, token hygiene, CSP headers and API version stability before submission.
- CI policy pipelineRuns token scanning and webhook and API version checks in GitHub Actions on push and PR.
What you need
- ESLint configured in the project
- Pre-commit hooks infrastructure
- CI/CD pipeline with GitHub Actions
- Shopify app with shopify.app.toml
Try asking
- Add a Shopify ESLint rule that catches hardcoded shpat_ tokens
- Set up query cost budgets for my Shopify GraphQL queries
- Run the Shopify App Store compliance checker before I submit
Good to know
- Pre-commit hooks can be bypassed with --no-verify, so CI is needed as a backup.
- Token regex can produce false positives on base64 strings and needs narrowing.
- Query cost estimates may be wrong with complex variable nesting.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/shopify-policy-guardrails/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npx:*)
-
SKILL.md4 KB -
references/ci-policy-pipeline.md1 KB -
references/compliance-checker.md2 KB -
references/query-cost-budget.md2 KB -
references/secret-detection-eslint.md1 KB
Alternatives to shopify-policy-guardrails
All alternatives →Shopify skill that lets an AI assistant set up and run a Shopify store through Shopify's official MCP server. It is for people who want to sell online, start a store, or manage an existing Shopify store.
Guides an AI assistant through building Shopify apps, extensions and themes. It covers the GraphQL Admin API, Shopify CLI, Polaris UI and Liquid. Intended for Shopify developers.
Searches Ticketmaster events and seat listings with pricing for people looking for event tickets. It returns Ticketmaster checkout links but cannot complete a purchase itself.
Analyzes ecommerce SEO for product pages, product schema, Google Shopping visibility, Amazon marketplace signals and keyword gaps. Built for stores, catalogs and product listings. Live Shopping and Amazon data needs the optional DataForSEO Merchant API.
Drafts replies to customer emails and tickets using order, refund, CRM and support desk data, in the owner's writing voice. Refunds and sends need the owner's approval, and with Shopify it also flags orders needing attention.
Reviews generated or changed WooCommerce code before it ships. It is for developers building extensions, payment and shipping integrations, checkout customizations, and order or product logic.
Compare with shopify, shopify-development or ticketmaster
shopify-policy-guardrails: common questions
Does this skill detect leaked Shopify API tokens?
Yes. It includes an ESLint rule and a pre-commit hook that look for shpat_ and shpss_ token patterns in code and staged changes.
What GDPR webhooks does the compliance checker look for?
The source says it validates all three GDPR webhooks, which are customers/data_request, customers/redact and shop/redact, as listed in the shopify.app.toml check.
Can a developer skip the pre-commit checks?
Yes, the source notes that the --no-verify flag bypasses pre-commit hooks, and it recommends enforcing the same checks in CI as a backup.
How do I install shopify-policy-guardrails?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shopify-policy-guardrails free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shopify-policy-guardrails safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to shopify-policy-guardrails?
Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.
