shopify-security-basics
Skill by jeremylongshore
Shopify Security Basics is a skill that applies Shopify security practices for API credentials, webhook HMAC validation, and access scopes. It is for developers building or auditing Shopify apps.
Install shopify-security-basics
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-security-basics ~/.claude/skills/shopify-security-basicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install shopify-security-basics 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-security-basics ~/.gemini/antigravity-cli/skills/shopify-security-basicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install shopify-security-basics in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives Claude Code guidance on securing Shopify apps. It covers storing API keys and tokens in environment variables, verifying webhook signatures with HMAC-SHA256, and validating OAuth request HMAC parameters. It also covers requesting only the minimal access scopes an app needs and setting Content Security Policy headers for embedded apps.
The skill is written as a step-by-step guide with token format references, scope tables, and code examples. It links to reference files with full webhook and OAuth implementations. It ends with a security audit checklist and a git-secrets setup to prevent token leaks. It is aimed at developers who run Shopify Partner apps and need to secure API credentials or review their app's security configuration.
Written from the project's SKILL.md and checked against it.
What it can do
- Secure credential storageKeeps Shopify keys and tokens in environment variables and excludes them from git.
- Webhook HMAC verificationChecks the X-Shopify-Hmac-Sha256 header using timing-safe comparison.
- OAuth request verificationValidates the HMAC query parameter on incoming OAuth requests from Shopify.
- Minimal access scopesLists which Shopify scopes suit common use cases and advises requesting them incrementally.
- CSP for embedded appsShows how to set frame-ancestors headers for Shopify embedded apps.
- Security audit checklistProvides a checklist covering tokens, HMAC checks, scopes, CSP, and token rotation.
- Token leak preventionShows how to add Shopify token patterns to git-secrets and install a pre-commit hook.
What you need
- Shopify Partner account with app credentials
- Understanding of HMAC-SHA256 signatures
- Access to Shopify app configuration
Try asking
- Check my Shopify app for hardcoded API keys or access tokens.
- Write a webhook handler that verifies the Shopify HMAC signature.
- Which Shopify access scopes does my order dashboard app need?
Good to know
- Webhook middleware must use a raw body parser, not a JSON parser.
- Storefront API token format varies and is not specified in the source.
Security check
B- Allowed to use Write without limitsIn
SKILL.md
Checked automatically: skills/.curated/shopify-security-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteGrep
-
SKILL.md5 KB -
references/oauth-request-verification.md823 B -
references/webhook-hmac-verification.md1 KB
Alternatives to shopify-security-basics
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
shopify-security-basics: common questions
How does this skill verify Shopify webhooks?
It checks the X-Shopify-Hmac-Sha256 header, which Shopify signs with the app's API secret using HMAC-SHA256. It uses crypto.timingSafeEqual for the comparison.
Does this skill store my Shopify credentials?
No. It describes how to keep API keys and tokens in a .env file that is listed in .gitignore and never committed.
Which Shopify scopes should an app request?
The skill recommends requesting only the scopes the app needs, such as read_products for a read-only catalog. For full admin apps it advises requesting scopes incrementally.
How do I install shopify-security-basics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shopify-security-basics free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shopify-security-basics safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write without limits). Review the code before you install. How grades work.
What are alternatives to shopify-security-basics?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
