shopify-policy-guardrails

Featured

Implement Shopify app policy enforcement with ESLint rules for API key detection, query cost budgets, and App Store compliance checks. Trigger with phrases like "shopify policy", "shopify lint", "shopify guardrails", "shopify compliance", "shopify eslint", "shopify app review".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Shopify Policy & Guardrails ## Overview Automated policy enforcement for Shopify apps: secret detection, query cost budgets, App Store compliance checks, and CI policy validation. ## Prerequisites - ESLint configured in project - Pre-commit hooks infrastructure - CI/CD pipeline with GitHub Actions - Shopify app with `shopify.app.toml` ## Instructions ### Step 1: Secret Detection Rules ```javascript // eslint-rules/no-shopify-secrets.js module.exports = { meta: { type: "problem", docs: { description: "Detect hardcoded Shopify tokens and secrets" }, messages: { adminToken: "Hardcoded Shopify Admin API token detected (shpat_*)", apiSecret: "Potential Shopify API secret detected", storefrontToken: "Hardcoded Storefront API token detected", }, }, create(context) { return { Literal(node) { if (typeof node.value !== "string") return; const v = node.value; // Admin API access token: shpat_ + 32 hex chars if (/^shpat_[a-f0-9]{32}$/i.test(v)) { context.report({ node, messageId: "adminToken" }); } // Storefront token: shpss_ pattern if (/^shpss_[a-f0-9]{32}$/i.test(v)) { context.report({ node, messageId: "storefrontToken" }); } // Generic secret pattern (32+ hex that's clearly a token) if (/^[a-f0-9]{32,}$/i.test(v) && v.length === 32) { context.report({ node, messageId: "apiSecret" }); } }, Template...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category