src/main/resources/targets/claude/skills/conditional/review/x-review-compliance/SKILL.md
PCI-DSS compliance review with 25-point checklist for code changes involving payment card data. Produces per-point PASS/FAIL report with remediation.
npx skillsauth add edercnj/claude-environment x-review-complianceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code changes against PCI-DSS v4.0 requirements. Produce a per-point PASS/FAIL compliance report with remediation guidance for each finding.
Include this skill when the project handles payment card data and compliance frameworks include PCI-DSS.
/x-review-compliance 42 -- review PR #42 for PCI-DSS compliance/x-review-compliance src/main/java/com/example/payment/ -- review specific file paths| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| target | String | No | (current changes) | PR number or file paths to review |
| Pack | Files | Purpose |
|------|-------|---------|
| security | skills/security/references/security-principles.md | Data classification, input validation, fail-secure patterns |
| security | skills/security/references/cryptography.md | TLS, hashing, key management |
| compliance | skills/compliance/SKILL.md and skills/compliance/references/ | PCI-DSS requirements |
Read skills/compliance/references/pci-dss.md for full PCI-DSS requirement mapping.
Identify all files handling cardholder data (PAN, CVV, expiry, track data).
Evaluate each of the 25 checklist points against the changed code. For each point: mark PASS or FAIL with file location and evidence.
Generate report with remediation for each FAIL.
log.* or System.out call includes raw PAN values.****NNNN (last 4 digits only).Math.random() or non-cryptographic RNG for generating tokens, session IDs, or keys.## PCI-DSS Compliance Review — [Change Description]
### Summary
- Points evaluated: 25
- PASS: [count]
- FAIL: [count]
- N/A: [count]
### Per-Category Results
#### Data Protection (1-5)
- [x] 1. PAN not in logs — PASS
- [ ] 2. PAN masked in output — FAIL: [file:line] — PAN returned unmasked in response DTO
- **Remediation:** Apply PanMasker.mask() before setting response field
... (all 25 points)
### Overall Verdict: COMPLIANT / NON-COMPLIANT
### Risk Level: LOW / MEDIUM / HIGH / CRITICAL
| Scenario | Action | |----------|--------| | No cardholder data files found | Report N/A for all points with explanation | | Compliance KP not available | Warn and proceed with checklist-only review | | PR number invalid or inaccessible | Report error with PR number and suggest checking access |
development
Documentation freshness gate: validates 6 dimensions (readme, api, adr, etc.) per PR.
testing
Conditional dep-policy gate: CVEs, licenses, versions, freshness; SARIF + report.
documentation
Incrementally updates the service or system architecture document; never regenerative.
development
Scans code and git history for leaked credentials, API keys, and tokens; SARIF output.