src/skills/x-review-compliance/SKILL.md
PCI-DSS compliance review with 15-point checklist for payment-card-data changes.
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 |
Use the canonical selector as the single source of truth for review assets:
Skill(skill: "x-internal-select-context-packs",
args: "--phase review --capabilities compliance,security,api,java")
Consumption rules:
required.recommended only when relevant to the changed scope.optional only with explicit justification in findings.src/knowledge/shared/security-knowledge/pci-dss-requirements/knowledge.md for the 15-point PCI-DSS checklist (items 21-35).src/knowledge/shared/compliance-knowledge/compliance/knowledge.md for cross-framework controls used in evidence and remediation notes.Before evaluation, resolve canonical compliance assets:
Skill(skill: "x-internal-select-context-packs",
args: "--phase review --capabilities compliance,security,api,java")
Then consume selector output with these rules:
required asset.recommended assets.src/knowledge/shared/security-knowledge/pci-dss-requirements/knowledge.md and src/knowledge/shared/compliance-knowledge/compliance/knowledge.md.Identify all files handling cardholder data (PAN, CVV, expiry, track data).
Evaluate each of the 15 checklist points (21-35) against the changed code. For each point: mark PASS or FAIL with file location and evidence.
Generate report with remediation for each FAIL.
## PCI-DSS Compliance Review — [Change Description]
### Summary
- Points evaluated: 15
- PASS: [count]
- FAIL: [count]
- N/A: [count]
### Per-Category Results
#### Cardholder Data (21-25)
- [x] 21. PAN not in logs — PASS
- [ ] 22. CVV/CVC/PIN persisted after authorization — FAIL: [file:line] — Sensitive authentication data persisted
- **Remediation:** Apply PanMasker.mask() before setting response field
... (all 15 points)
### Overall Verdict: COMPLIANT / NON-COMPLIANT
### Risk Level: LOW / MEDIUM / HIGH / CRITICAL
Convenções de erro/degradação transversais a review/audit (empty input, RULE-012 template fallback, falha de specialist, build/test override, idempotência) vivem em
_shared/error-handling-review.md. As linhas abaixo são específicas desta skill.
| 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.