Generating Compliance Reports
Overview
Generate structured compliance reports for major security frameworks including
PCI DSS, HIPAA, SOC 2, GDPR, and ISO 27001. This skill scans codebases,
configurations, and infrastructure definitions to assess compliance posture,
maps findings to specific framework controls, and produces audit-ready
documentation with evidence references and gap analysis.
Prerequisites
- Access to the target codebase, infrastructure configs, and policy documents in
${CLAUDE_SKILL_DIR}/
- Knowledge of the target compliance framework and its applicable scope
- Standard shell utilities and Grep/Glob available for evidence gathering
- Reference:
${CLAUDE_SKILL_DIR}/references/README.md for PCI DSS guidelines, HIPAA compliance checklist, SOC 2 framework overview, config schema, and API documentation
Instructions
- Determine the target compliance framework (PCI DSS, HIPAA, SOC 2, GDPR, ISO 27001, or custom) and identify applicable control domains based on the system under audit.
- Enumerate the control requirements for the target framework -- for PCI DSS, map the 12 requirements and their sub-controls; for HIPAA, map Administrative, Physical, and Technical Safeguards; for SOC 2, map Trust Services Criteria (CC1-CC9).
- Scan the codebase for evidence of control implementation: encryption at rest and in transit (TLS configuration, database encryption), access controls (RBAC definitions, IAM policies), logging and monitoring (audit log configuration, SIEM integration), and data retention policies.
- Evaluate each control as Compliant, Partially Compliant, Non-Compliant, or Not Applicable -- document the evidence file path and line number for each assessment.
- For Partially Compliant and Non-Compliant controls, describe the specific gap: what is missing, what risk it introduces, and what remediation is required.
- Calculate an overall compliance score as percentage of applicable controls that are fully compliant.
- Generate the report with these sections: Executive Summary, Scope and Methodology, Control-by-Control Assessment, Gap Analysis, Risk Rating, Remediation Roadmap with priority and effort estimates, and Evidence Appendix.
- Write the report to
${CLAUDE_SKILL_DIR}/compliance-report-[framework]-[date].md using the Write tool.
- Validate the report against the config schema in
${CLAUDE_SKILL_DIR}/references/README.md if applicable.
Output
- Compliance report: Markdown document with Executive Summary, Scope, Control Assessment (table with Control ID, Description, Status, Evidence, Gap), Risk Rating, and Remediation Roadmap
- Compliance score: Percentage of applicable controls rated Compliant, broken down by control domain
- Gap analysis: Prioritized list of non-compliant controls with risk impact and remediation effort (high/medium/low)
- Evidence index: File paths and line references for each control assessment
- Remediation roadmap: Prioritized action items with estimated effort, owner assignment placeholders, and target dates
Error Handling
| Error |
Cause |
Solution |
| Unknown compliance framework requested |
Framework not in supported list |
Map the custom framework controls manually or select the closest standard framework as a baseline |
| Insufficient evidence for control assessment |
Codebase lacks configuration files or documentation |
Mark the control as "Evidence Not Available" and recommend documenting the control implementation |
| Mixed framework versions |
Codebase references multiple versions of a standard (e.g., PCI DSS 3.2.1 vs 4.0) |
Clarify the target version and assess against that version only; note version discrepancies in the report |
| Large codebase scan timeout |
Too many files to scan within time limits |
Scope the scan to relevant directories (e.g., src/, config/, infra/) and exclude generated code |
| Conflicting control evidence |
Different parts of the codebase implement conflicting security policies |
Flag as Partially Compliant and document both implementations; recommend standardization |
Examples
PCI DSS Compliance Report
Scan an e-commerce application in ${CLAUDE_SKILL_DIR}/ for PCI DSS v4.0 compliance.
Assess Requirement 2 (Apply Secure Configurations) by checking for default
credentials in config files, Requirement 3 (Protect Stored Account Data) by
verifying encryption of cardholder data fields, and Requirement 6 (Develop and
Maintain Secure Systems) by checking dependency vulnerability status. Produce a
report rating each requirement as Compliant/Non-Compliant with file-level evidence.
HIPAA Technical Safeguards Audit
Evaluate a healthcare application against HIPAA Technical Safeguards. Check
164.312(a)(1) Access Control by reviewing authentication and RBAC implementations,
164.312(e)(1) Transmission Security by verifying TLS 1.2+ enforcement, and
164.312(b) Audit Controls by confirming audit logging captures access to PHI.
Generate a gap analysis with remediation steps for each non-compliant safeguard.
SOC 2 Type II Readiness Assessment
Assess SOC 2 Trust Services Criteria CC6 (Logical and Physical Access Controls)
and CC7 (System Operations) by scanning for access control policies, change
management procedures, incident response documentation, and monitoring
configurations. Produce a readiness report indicating which criteria need
additional evidence or implementation before a formal SOC 2 audit.
Resources
Source: jeremylongshore/claude-code-plugins-plus-skills → skills/.curated/generating-compliance-reports/SKILL.md
Also appears in: jeremylongshore/claude-code-plugins-plus-skills/plugins/security/compliance-report-generator/skills/generating-compliance-reports/SKILL.md
1---
2name: generating-compliance-reports
3description: "Generate comprehensive compliance reports for security standards. Use when creating compliance documentation. Trigger with 'generate compliance report', 'compliance status', or 'audit compliance'."
4allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(security:*), Bash(scan:*), Bash(audit:*)"
5category: security-and-compliance
6source_repo: jeremylongshore/claude-code-plugins-plus-skills
7source_path: "skills/.curated/generating-compliance-reports/SKILL.md"
8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/skills/.curated/generating-compliance-reports/SKILL.md
9metadata:
10 source: https://skillmd.com/skills/thedixitjain/generating-compliance-reports
11---
12
13# Generating Compliance Reports
14
15## Overview
16
17Generate structured compliance reports for major security frameworks including
18PCI DSS, HIPAA, SOC 2, GDPR, and ISO 27001. This skill scans codebases,
19configurations, and infrastructure definitions to assess compliance posture,
20maps findings to specific framework controls, and produces audit-ready
21documentation with evidence references and gap analysis.
22
23## Prerequisites
24
25- Access to the target codebase, infrastructure configs, and policy documents in `${CLAUDE_SKILL_DIR}/`
26- Knowledge of the target compliance framework and its applicable scope
27- Standard shell utilities and Grep/Glob available for evidence gathering
28- Reference: `${CLAUDE_SKILL_DIR}/references/README.md` for PCI DSS guidelines, HIPAA compliance checklist, SOC 2 framework overview, config schema, and API documentation
29
30## Instructions
31
321. Determine the target compliance framework (PCI DSS, HIPAA, SOC 2, GDPR, ISO 27001, or custom) and identify applicable control domains based on the system under audit.
332. Enumerate the control requirements for the target framework -- for PCI DSS, map the 12 requirements and their sub-controls; for HIPAA, map Administrative, Physical, and Technical Safeguards; for SOC 2, map Trust Services Criteria (CC1-CC9).
343. Scan the codebase for evidence of control implementation: encryption at rest and in transit (TLS configuration, database encryption), access controls (RBAC definitions, IAM policies), logging and monitoring (audit log configuration, SIEM integration), and data retention policies.
354. Evaluate each control as Compliant, Partially Compliant, Non-Compliant, or Not Applicable -- document the evidence file path and line number for each assessment.
365. For Partially Compliant and Non-Compliant controls, describe the specific gap: what is missing, what risk it introduces, and what remediation is required.
376. Calculate an overall compliance score as percentage of applicable controls that are fully compliant.
387. Generate the report with these sections: Executive Summary, Scope and Methodology, Control-by-Control Assessment, Gap Analysis, Risk Rating, Remediation Roadmap with priority and effort estimates, and Evidence Appendix.
398. Write the report to `${CLAUDE_SKILL_DIR}/compliance-report-[framework]-[date].md` using the Write tool.
409. Validate the report against the config schema in `${CLAUDE_SKILL_DIR}/references/README.md` if applicable.
41
42## Output
43
44- **Compliance report**: Markdown document with Executive Summary, Scope, Control Assessment (table with Control ID, Description, Status, Evidence, Gap), Risk Rating, and Remediation Roadmap
45- **Compliance score**: Percentage of applicable controls rated Compliant, broken down by control domain
46- **Gap analysis**: Prioritized list of non-compliant controls with risk impact and remediation effort (high/medium/low)
47- **Evidence index**: File paths and line references for each control assessment
48- **Remediation roadmap**: Prioritized action items with estimated effort, owner assignment placeholders, and target dates
49
50## Error Handling
51
52| Error | Cause | Solution |
53|-------|-------|----------|
54| Unknown compliance framework requested | Framework not in supported list | Map the custom framework controls manually or select the closest standard framework as a baseline |
55| Insufficient evidence for control assessment | Codebase lacks configuration files or documentation | Mark the control as "Evidence Not Available" and recommend documenting the control implementation |
56| Mixed framework versions | Codebase references multiple versions of a standard (e.g., PCI DSS 3.2.1 vs 4.0) | Clarify the target version and assess against that version only; note version discrepancies in the report |
57| Large codebase scan timeout | Too many files to scan within time limits | Scope the scan to relevant directories (e.g., `src/`, `config/`, `infra/`) and exclude generated code |
58| Conflicting control evidence | Different parts of the codebase implement conflicting security policies | Flag as Partially Compliant and document both implementations; recommend standardization |
59
60## Examples
61
62### PCI DSS Compliance Report
63
64Scan an e-commerce application in `${CLAUDE_SKILL_DIR}/` for PCI DSS v4.0 compliance.
65Assess Requirement 2 (Apply Secure Configurations) by checking for default
66credentials in config files, Requirement 3 (Protect Stored Account Data) by
67verifying encryption of cardholder data fields, and Requirement 6 (Develop and
68Maintain Secure Systems) by checking dependency vulnerability status. Produce a
69report rating each requirement as Compliant/Non-Compliant with file-level evidence.
70
71### HIPAA Technical Safeguards Audit
72
73Evaluate a healthcare application against HIPAA Technical Safeguards. Check
74164.312(a)(1) Access Control by reviewing authentication and RBAC implementations,
75164.312(e)(1) Transmission Security by verifying TLS 1.2+ enforcement, and
76164.312(b) Audit Controls by confirming audit logging captures access to PHI.
77Generate a gap analysis with remediation steps for each non-compliant safeguard.
78
79### SOC 2 Type II Readiness Assessment
80
81Assess SOC 2 Trust Services Criteria CC6 (Logical and Physical Access Controls)
82and CC7 (System Operations) by scanning for access control policies, change
83management procedures, incident response documentation, and monitoring
84configurations. Produce a readiness report indicating which criteria need
85additional evidence or implementation before a formal SOC 2 audit.
86
87## Resources
88
89- [PCI DSS v4.0 Requirements](https://www.pcisecuritystandards.org/document_library/)
90- [HIPAA Security Rule](https://www.hhs.gov/hipaa/for-professionals/security/index.html)
91- AICPA SOC 2 Trust Services Criteria
92- [ISO 27001:2022 Controls](https://www.iso.org/standard/27001)
93- [NIST Cybersecurity Framework](https://www.nist.gov/cyberframework)
94
95---
96
97**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `skills/.curated/generating-compliance-reports/SKILL.md`
98
99**Also appears in:** `jeremylongshore/claude-code-plugins-plus-skills/plugins/security/compliance-report-generator/skills/generating-compliance-reports/SKILL.md`