Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-guardrails

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install shopify-policy-guardrails in Claude Code

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 →

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.

shopify-policy-guardrails Install

Add to stack

Loading.