Skip to content

Guide · Agent skill

How to use the PCI DSS Compliance Guide agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The pci-compliance skill gives an AI agent a structured reference for PCI DSS, the Payment Card Industry Data Security Standard that businesses follow when they handle payment card data. Once it is installed, the agent can explain the 12 core requirements, the merchant compliance levels and which card data may or may not be stored. This guide shows you what the skill does, how to install it, how to trigger it and where you should be careful.

PCI DSS Compliance Guidewshobson/agents · MIT

Quick start

  1. 1Download the ZIP. Download the pci-compliance ZIP from this page and unzip it. You should have a folder containing SKILL.md and references/details.md.
  2. 2Choose an install location. Use ~/.claude/skills/ to make the skill available in all projects, or .claude/skills/ inside one project to limit it to that project.
  3. 3Install the skill. Move the unzipped pci-compliance folder into the chosen skills folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
  4. 4Start a new session. Open or restart your agent session so the new skill is loaded.
  5. 5Ask a payment question. Make a natural request that mentions PCI DSS, cardholder data or payment security, such as asking for a review of a checkout handler.
  6. 6Check the output. Verify thresholds and any code against current PCI SSC documents and your payment processor's documentation before using it.

What the pci-compliance skill makes the agent do

An agent skill is a folder of instructions and reference material that an AI agent loads when a task matches the skill's description. This one covers PCI DSS. When it is active, the agent can list the 12 core PCI requirements grouped into six goals, explain the four merchant compliance levels, and tell you which cardholder data is prohibited from storage and which may be stored if encrypted.

The skill also includes Python code patterns the agent can draw on: tokenization using a payment processor such as Stripe, a custom token vault, log sanitizing, and AES-256-GCM encryption for data at rest. Its purpose is to steer payment code toward safer patterns, not to certify that your system is compliant.

  • Explains the 12 core PCI DSS requirements
  • Describes merchant compliance levels 1 to 4
  • Lists card data that must never be stored (full track data, CVV, PIN) and data that may be stored if encrypted
  • Provides tokenization, encryption and access-control code examples

Install the skill from the ZIP download

Download the ZIP for this skill from this page and unzip it. The skill is a folder containing SKILL.md and a references/details.md file. Place that folder in one of two locations, depending on how you want to use it.

For all your projects, unzip it into your personal skills folder at ~/.claude/skills/. For one project only, unzip it into the .claude/skills/ folder inside that project. Restart or reopen your agent session if it was already running, so it picks up the new skill.

  • Personal (all projects): ~/.claude/skills/
  • Single project: .claude/skills/ inside the project folder
  • Or upload the ZIP in the Claude apps under Settings → Capabilities → Skills
~/.claude/skills/pci-compliance/SKILL.md

Trigger the skill with natural requests

You do not need a special command. The agent decides to use the skill when your request matches its description, which mentions securing payment processing, achieving PCI compliance and implementing payment card security measures. Plain requests work well, and naming PCI DSS or cardholder data helps make the match clear.

Be specific about your system. Saying which payment processor you use, or whether card numbers currently reach your server, gives the agent what it needs to choose the right pattern.

  • "Review this checkout handler for PCI DSS problems."
  • "Can we store card CVVs for recurring billing? What does PCI say?"
  • "Help me reduce our PCI scope by moving card entry to hosted tokenization."
  • "Give me a starting checklist of the 12 PCI DSS requirements for our self-assessment."

Example: keeping card numbers off your server

Suppose your app takes card numbers in a form that posts to your own backend. Ask the agent how to avoid storing or handling raw card data. Using the skill's guidance, the agent will point to the pattern in the source: collect card details with Stripe.js in the browser, send only the resulting token to your server, and store the customer and payment method IDs rather than card details.

The skill's server-side example charges with a token and states that the server should only see the token, never the card number. Treat this as a direction to check against Stripe's own documentation, since the example code is illustrative.

Know what the skill needs and what it does not do

To run the Python examples you need Python 3 and the cryptography package, which provides the Fernet and AESGCM examples. The Stripe examples also require the Stripe Python library and a Stripe account, and the frontend tokenization pattern requires Stripe.js. You only need the Stripe pieces if you follow the Stripe examples.

The skill does not run scripts and does not use the network. It is reference material the agent reads and applies to your code.

  • Required: Python 3 and the cryptography package
  • Only if using Stripe examples: Stripe Python library, a Stripe account and Stripe.js on the frontend
  • Runs scripts: no
  • Uses network: no

Safety notes before you use the code

Several examples are illustrative. The token vault in the source keeps data in memory and is marked 'in production: use encrypted database', so do not use it as-is. Cryptographic and payment code mistakes can expose real card data, so have a qualified reviewer check anything you ship.

The skill is not a Qualified Security Assessor (QSA) opinion and is not suitable for final compliance sign-off or audit. Its compliance-level thresholds should be checked against the current PCI Security Standards Council (PCI SSC) documents.

  • Do not ship examples without review
  • Verify compliance-level thresholds against current PCI SSC documents
  • Do not treat the skill as a QSA audit or certification

Tips for getting better answers

Give the agent your real context: the processor you use, your transaction volume, and where card data currently enters your system. The compliance level, for example, depends on transaction counts, so the agent needs those numbers to reason about your situation.

Ask for a checklist when you are preparing for a self-assessment, and ask for a review when you have code. The access-control pattern in the reference file, which restricts cardholder data to users with a pci_access role and logs access, is a useful starting point for a review.

  • State your payment processor and transaction volume
  • Ask for a checklist for self-assessment preparation
  • Ask for a code review against the 12 requirements

What people use it for

  • Reviewing a checkout handler to find places where card data is logged or stored
  • Deciding whether a field such as CVV can be kept for recurring billing
  • Building a starting checklist of the 12 PCI DSS requirements for a self-assessment
  • Planning a move to hosted tokenization to reduce the card data your servers handle
  • Drafting encryption-at-rest code for any stored payment-related data, then reviewing it

Frequently asked questions

Is the pci-compliance skill free to use?

The skill is published under the MIT licence, as listed on this page. Check the licence file in the source repository for the full terms before redistributing it.

What do I need to install the pci-compliance skill?

You need an agent that supports skills, and a place to put the folder: ~/.claude/skills/ or a project's .claude/skills/ folder. For the Python examples you need Python 3 and the cryptography package. Stripe examples also need the Stripe library and a Stripe account.

Does this skill make my system PCI compliant?

No. The skill is a general reference for PCI DSS requirements, compliance levels and code patterns. It is not a Qualified Security Assessor opinion, and it cannot certify compliance or replace an audit.

Can I store credit card CVV codes with this skill's guidance?

The skill's data minimization section lists CVV, full track data and PIN as prohibited data that must never be stored. The skill also says the primary account number, cardholder name, expiration date and service code may be stored only if encrypted.

Does the skill run code or access the internet?

No. The skill does not run scripts and does not use the network. It gives the agent reference material and code examples to apply to your project.

How does this compare to just asking an AI for PCI advice?

This skill loads a fixed reference of PCI DSS requirements, compliance levels and code patterns into the agent, so answers are anchored to that material. A general request may not draw on the same structured content, but either way you should verify results against PCI SSC documents.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you are a developer building or reviewing payment flows, or an engineering team starting a PCI DSS self-assessment and want a structured checklist and tokenization patterns. Pick something else, or a qualified assessor, if you need final compliance sign-off or audit, or if you plan to copy payment and cryptographic code into production without a careful review.

Download the skill

Find exactly what
you're looking for