pci-compliance
Skill by wshobson
Explains PCI DSS compliance for handling payment card data, with Python patterns for tokenization, encryption and data minimization. Written for developers building payment processing systems or preparing for PCI assessments.
Install pci-compliance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wshobson/agents /tmp/agents && mkdir -p ~/.claude/skills && cp -r /tmp/agents/plugins/payment-processing/skills/pci-compliance ~/.claude/skills/pci-complianceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wshobson/agents /tmp/agents && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agents/plugins/payment-processing/skills/pci-compliance ~/.gemini/antigravity-cli/skills/pci-complianceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers PCI DSS v4.0.1 compliance for systems that process or store cardholder data. It lists the 12 core requirements, from network security and system configuration to access control, logging and organizational policy. It also gives the compliance levels that depend on transaction volume.
The skill includes Python code patterns. These cover data minimization, such as masking card numbers in logs and blocking storage of CVV or PIN values. It shows Stripe token examples that keep card details off the server, a custom token vault built on Fernet encryption, AES-256-GCM encryption at rest, and transit settings such as secure cookie flags and HTTPS enforcement. The skill is aimed at developers and teams who build payment flows or work toward a PCI DSS assessment. More templates are in a separate reference file.
Written from the project's SKILL.md and checked against it.
What it can do
- PCI DSS requirements overviewLists the 12 core PCI DSS v4.0.1 requirements grouped by goal.
- Compliance levelsShows merchant levels 1 to 4 based on annual transaction volume.
- Data minimizationDefines prohibited data such as CVV and PIN and allowed data such as the PAN.
- Log sanitizingMasks card numbers and removes prohibited fields from log data.
- Stripe tokenizationShows charging and storing payment methods with tokens instead of card details.
- Custom token vaultEncrypts card data with Fernet and maps random tokens to the stored data.
- Encryption at restProvides an AES-256-GCM helper class for encrypting stored card numbers.
- Secure transit settingsSets secure cookie flags and enforces HTTPS in Flask or Django apps.
What you need
- Python
- cryptography Python package
- Stripe account and API keys for the token examples
Try asking
- Review my checkout code for PCI DSS data minimization issues
- Show me how to tokenize card payments with Stripe
- Write an AES-256-GCM helper to encrypt stored card numbers
Good to know
- The token vault example keeps tokens in memory and says production should use an encrypted database.
- Code samples are templates and need review before use in production.
- Full pattern library is in references/details.md and is not included in this file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/payment-processing/skills/pci-compliance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/details.md5 KB
Alternatives to pci-compliance
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
pci-compliance: common questions
Which card data must never be stored under PCI DSS?
The source lists full track data, the card verification code or value (CVV), and the PIN or PIN block as prohibited for storage. The primary account number, cardholder name, expiration date and service code can be stored if encrypted.
Which PCI DSS version does this skill cover?
The skill is based on PCI DSS v4.0.1 and lists its 12 core requirements.
What is Level 4 for PCI compliance?
The source defines Level 4 as fewer than 20,000 e-commerce transactions or fewer than 1 million total transactions per year.
How do I install pci-compliance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pci-compliance free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pci-compliance safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pci-compliance?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
