Regulatory Compliance Audit
Overview
Executes a two-phase compliance analysis — detection scan followed by framework-by-framework
evaluation — across 7 regulatory frameworks. Produces a compliance scorecard with letter
grades (A-F) per framework, identifies specific gaps, and generates a prioritized
remediation roadmap with effort estimates and timelines.
This skill reads and analyzes existing assets. It does not generate legal documents or
modify any files. The output is an audit report documenting findings and recommendations.
Legal Disclaimer: This skill generates AI-assisted compliance analysis for
informational purposes only. It does not constitute legal advice, certification, or
attestation of compliance. Regulatory requirements are complex and jurisdiction-specific.
All findings should be reviewed by qualified legal counsel and/or certified compliance
professionals. No attorney-client relationship is created by using this tool.
Prerequisites
- A live website URL or local codebase to analyze
- Access to any existing privacy policy, terms of service, or compliance documentation
- Knowledge of the business type, target audience, and geographic reach
Instructions
Phase 1: Detection Scan
Scan the website. Use WebFetch on the target URL to collect:
- HTML source (meta tags, structured data, accessibility attributes)
- Cookie and tracking behavior (Set-Cookie headers, JavaScript trackers)
- Form elements (input types, required fields, consent checkboxes)
- Payment indicators (payment form fields, processor scripts)
- Third-party scripts and embeds (analytics, advertising, social)
- SSL/TLS certificate presence
- Content targeting indicators (age-related content, children's themes)
Scan the codebase (if available). Use Glob and Grep to find:
- Privacy policy and terms of service files
- Cookie consent implementation code
- Authentication and access control patterns
- Data encryption at rest and in transit
- Logging and audit trail implementations
- Age verification or gate mechanisms
- Email sending code and unsubscribe handling
- Payment processing integrations
- Accessibility attributes (aria-*, alt text, semantic HTML)
Build the detection inventory. Create a structured map of findings:
| Category |
Signals Found |
Frameworks Triggered |
| Data Collection |
Forms, cookies, analytics |
GDPR, CCPA |
| Payments |
Stripe, PayPal, card fields |
PCI-DSS |
| Accessibility |
Missing alt text, no skip nav |
ADA/WCAG |
| Email Marketing |
Newsletter signup, email sends |
CAN-SPAM |
| User Demographics |
Age gates, child-oriented content |
COPPA |
| Security Controls |
Auth, encryption, logging |
SOC 2 |
Phase 2: Framework-by-Framework Evaluation
Evaluate each applicable framework. Score against these criteria:
GDPR (General Data Protection Regulation)
CCPA/CPRA (California Consumer Privacy Act)
ADA/WCAG 2.1 (Accessibility)
PCI-DSS (Payment Card Industry)
CAN-SPAM (Commercial Email)
COPPA (Children's Online Privacy Protection)
SOC 2 (Trust Services Criteria)
Calculate compliance scores. For each framework:
- Count the criteria met vs. total applicable criteria
- Calculate a percentage score
- Assign a letter grade:
| Grade |
Score |
Meaning |
| A |
90-100% |
Substantially compliant |
| B |
75-89% |
Minor gaps, low risk |
| C |
60-74% |
Moderate gaps, action needed |
| D |
40-59% |
Significant gaps, priority remediation |
| F |
0-39% |
Non-compliant, immediate action required |
Generate remediation roadmap. For each gap, provide:
- Description of the gap
- Regulatory risk (fine amounts, enforcement precedents)
- Remediation action with specific steps
- Effort estimate (hours: 1-4, 4-16, 16-40, 40+)
- Priority tier: P0 (immediate), P1 (30 days), P2 (90 days), P3 (6 months)
- Suggested responsible party (legal, engineering, marketing, ops)
Compile the audit report using the output format below.
Output
Generate a single Markdown file named COMPLIANCE-AUDIT-{company}-{YYYY-MM-DD}.md:
# Regulatory Compliance Audit
**{Company Name}** — {URL or codebase path}
**Audit Date:** {date}
**Auditor:** AI Compliance Scan (Legal Assistant Plugin)
**Scope:** {frameworks evaluated}
---
## Executive Summary
{3-5 sentence overview of compliance posture, highest-risk areas, and top recommendation}
## Compliance Scorecard
| Framework | Score | Grade | Status |
|-----------|-------|-------|--------|
| GDPR | {%} | {A-F} | {Compliant / Gaps Found / Non-Compliant} |
| CCPA/CPRA | {%} | {A-F} | {status} |
| ADA/WCAG 2.1 | {%} | {A-F} | {status} |
| PCI-DSS | {%} | {A-F} | {status} |
| CAN-SPAM | {%} | {A-F} | {status} |
| COPPA | {%} | {A-F} | {status} |
| SOC 2 | {%} | {A-F} | {status} |
| **Overall** | **{%}** | **{grade}** | |
## Detection Inventory
{table of all signals detected during Phase 1}
## Detailed Findings
### GDPR
{criteria-by-criteria evaluation with PASS/FAIL/N-A}
### CCPA/CPRA
{criteria-by-criteria evaluation}
{... remaining frameworks ...}
## Remediation Roadmap
### P0 — Immediate (This Week)
| # | Gap | Framework | Action | Effort | Owner |
|---|-----|-----------|--------|--------|-------|
{high-risk items}
### P1 — Short-Term (30 Days)
{moderate-risk items}
### P2 — Medium-Term (90 Days)
{lower-risk items}
### P3 — Long-Term (6 Months)
{enhancement items}
## Risk Exposure Summary
{estimated fine exposure per framework based on published enforcement ranges}
---
**Frameworks Not Applicable:** {list with reason}
**Limitations:** AI scan cannot detect server-side controls, review organizational policies,
or assess physical security. This audit supplements but does not replace professional
compliance assessment.
**Generated by:** Legal Assistant Plugin — Not a substitute for legal counsel.
Error Handling
| Error |
Cause |
Solution |
| Website unreachable |
URL down, behind auth, or blocked |
Ask for codebase path or manual description of features |
| Framework not applicable |
Business does not trigger certain regulations |
Mark as N/A with explanation, exclude from overall score |
| Cannot assess server-side |
No codebase access, only URL |
Note limitation, recommend server-side review separately |
| Mixed signals on COPPA |
Cannot determine if audience includes children |
Flag for manual review, apply COPPA criteria conservatively |
| Payment processing unclear |
Redirects to external checkout |
Note processor, limit PCI-DSS scope to integration points |
| Existing policies not found |
No privacy policy or ToS published |
Score as F for policy-dependent criteria, flag as P0 |
Examples
Example 1: E-Commerce Website
Request: "Audit https://example-shop.com for compliance"
Result: COMPLIANCE-AUDIT-ExampleShop-2026-04-02.md with:
- GDPR: C (68%) — privacy policy exists but missing granular consent, no DPA with Shopify
- CCPA: D (45%) — no "Do Not Sell" link, no consumer request mechanism
- ADA/WCAG: B (82%) — good semantic HTML, missing alt text on 12 product images
- PCI-DSS: A (95%) — Stripe checkout handles card data, HTTPS enforced
- CAN-SPAM: B (78%) — unsubscribe works, missing physical address
- COPPA: N/A — adult products only
- SOC 2: N/A — not pursuing certification
- Remediation: 14 items across P0-P2, estimated 120 hours total
Example 2: SaaS Application Codebase
Request: "Run a compliance audit on our codebase at ./src"
Result: COMPLIANCE-AUDIT-SaaSApp-2026-04-02.md with:
- GDPR: D (52%) — no data processing records, no breach notification procedure
- CCPA: C (65%) — basic privacy controls exist, missing sensitive data handling
- ADA/WCAG: F (35%) — minimal ARIA attributes, no keyboard navigation, poor contrast
- PCI-DSS: B (80%) — Stripe integration clean, but card-related strings in logs
- CAN-SPAM: A (92%) — proper unsubscribe, physical address, clear headers
- COPPA: N/A
- SOC 2: D (48%) — no incident response plan, minimal access controls
- Remediation: 23 items, accessibility overhaul as top P0
Resources
1---
2name: compliance-audit
3description: |
4 Performs regulatory gap analysis across 7 compliance frameworks with a scored
5 report card and prioritized remediation roadmap. Use when assessing a website
6 or application for GDPR, CCPA, ADA, PCI-DSS, CAN-SPAM, COPPA, or SOC 2 compliance.
7 Trigger with "/compliance-audit" or "audit my website for regulatory compliance".
8allowed-tools: Read, Glob, Grep, WebFetch
9version: 1.0.0
10author: Intent Solutions <jeremy@intentsolutions.io>
11license: MIT
12compatible-with: claude-code, codex, openclaw
13tags: [legal, compliance, gdpr, ccpa, ada, pci-dss, audit, regulatory]
14metadata:
15 source: https://skillmd.com/skills/aibot88/compliance-audit
16---
17
18# Regulatory Compliance Audit
19
20## Overview
21
22Executes a two-phase compliance analysis — detection scan followed by framework-by-framework
23evaluation — across 7 regulatory frameworks. Produces a compliance scorecard with letter
24grades (A-F) per framework, identifies specific gaps, and generates a prioritized
25remediation roadmap with effort estimates and timelines.
26
27This skill reads and analyzes existing assets. It does not generate legal documents or
28modify any files. The output is an audit report documenting findings and recommendations.
29
30> **Legal Disclaimer:** This skill generates AI-assisted compliance analysis for
31> informational purposes only. It does not constitute legal advice, certification, or
32> attestation of compliance. Regulatory requirements are complex and jurisdiction-specific.
33> All findings should be reviewed by qualified legal counsel and/or certified compliance
34> professionals. No attorney-client relationship is created by using this tool.
35
36## Prerequisites
37
38- A live website URL or local codebase to analyze
39- Access to any existing privacy policy, terms of service, or compliance documentation
40- Knowledge of the business type, target audience, and geographic reach
41
42## Instructions
43
44### Phase 1: Detection Scan
45
461. **Scan the website.** Use WebFetch on the target URL to collect:
47 - HTML source (meta tags, structured data, accessibility attributes)
48 - Cookie and tracking behavior (Set-Cookie headers, JavaScript trackers)
49 - Form elements (input types, required fields, consent checkboxes)
50 - Payment indicators (payment form fields, processor scripts)
51 - Third-party scripts and embeds (analytics, advertising, social)
52 - SSL/TLS certificate presence
53 - Content targeting indicators (age-related content, children's themes)
54
552. **Scan the codebase (if available).** Use Glob and Grep to find:
56 - Privacy policy and terms of service files
57 - Cookie consent implementation code
58 - Authentication and access control patterns
59 - Data encryption at rest and in transit
60 - Logging and audit trail implementations
61 - Age verification or gate mechanisms
62 - Email sending code and unsubscribe handling
63 - Payment processing integrations
64 - Accessibility attributes (aria-*, alt text, semantic HTML)
65
663. **Build the detection inventory.** Create a structured map of findings:
67
68 | Category | Signals Found | Frameworks Triggered |
69 |----------|---------------|---------------------|
70 | Data Collection | Forms, cookies, analytics | GDPR, CCPA |
71 | Payments | Stripe, PayPal, card fields | PCI-DSS |
72 | Accessibility | Missing alt text, no skip nav | ADA/WCAG |
73 | Email Marketing | Newsletter signup, email sends | CAN-SPAM |
74 | User Demographics | Age gates, child-oriented content | COPPA |
75 | Security Controls | Auth, encryption, logging | SOC 2 |
76
77### Phase 2: Framework-by-Framework Evaluation
78
794. **Evaluate each applicable framework.** Score against these criteria:
80
81 **GDPR (General Data Protection Regulation)**
82 - [ ] Privacy policy published and accessible
83 - [ ] Legal basis documented for each processing activity
84 - [ ] Cookie consent with granular opt-in (not just notice)
85 - [ ] Data subject rights mechanism (access, erasure, portability)
86 - [ ] Data Processing Agreement with third-party processors
87 - [ ] Data breach notification procedure documented
88 - [ ] Data Protection Impact Assessment for high-risk processing
89 - [ ] Records of processing activities maintained
90 - [ ] International transfer safeguards (SCCs, adequacy decisions)
91 - [ ] DPO appointed (if required by Article 37)
92
93 **CCPA/CPRA (California Consumer Privacy Act)**
94 - [ ] "Do Not Sell or Share My Personal Information" link visible
95 - [ ] Privacy policy discloses categories of personal information collected
96 - [ ] Consumer request mechanism (access, delete, correct, opt-out)
97 - [ ] Service provider agreements with data sharing restrictions
98 - [ ] Financial incentive disclosures (if offering loyalty programs)
99 - [ ] Sensitive personal information opt-out mechanism
100 - [ ] Annual privacy policy update
101 - [ ] Employee/applicant privacy notices (if applicable)
102
103 **ADA/WCAG 2.1 (Accessibility)**
104 - [ ] Alt text on all images
105 - [ ] Keyboard navigation support
106 - [ ] Color contrast ratios (4.5:1 minimum for text)
107 - [ ] Form labels and error messages
108 - [ ] Skip navigation links
109 - [ ] ARIA landmarks and roles
110 - [ ] Video captions and audio descriptions
111 - [ ] Responsive design / mobile accessibility
112
113 **PCI-DSS (Payment Card Industry)**
114 - [ ] No card data stored in plaintext
115 - [ ] Payment processing via certified processor (Stripe, Braintree)
116 - [ ] HTTPS enforced on all payment pages
117 - [ ] No card numbers in URLs, logs, or error messages
118 - [ ] SAQ (Self-Assessment Questionnaire) type determined
119 - [ ] Quarterly vulnerability scans (if applicable)
120
121 **CAN-SPAM (Commercial Email)**
122 - [ ] Physical mailing address in marketing emails
123 - [ ] Functional unsubscribe mechanism
124 - [ ] Unsubscribe honored within 10 business days
125 - [ ] Accurate "From" and "Subject" headers
126 - [ ] Commercial content clearly identified
127 - [ ] No harvested or purchased email lists
128
129 **COPPA (Children's Online Privacy Protection)**
130 - [ ] Age screening mechanism (if content may attract children under 13)
131 - [ ] Verifiable parental consent before collecting children's data
132 - [ ] Direct notice to parents about data practices
133 - [ ] Parental review and deletion rights
134 - [ ] Data minimization for children's data
135 - [ ] No behavioral advertising to children
136
137 **SOC 2 (Trust Services Criteria)**
138 - [ ] Access controls and authentication (Security)
139 - [ ] System monitoring and alerting (Availability)
140 - [ ] Data encryption and integrity checks (Processing Integrity)
141 - [ ] Privacy policy aligned with commitments (Privacy)
142 - [ ] Data handling and retention policies (Confidentiality)
143 - [ ] Incident response plan documented
144 - [ ] Vendor management program
145 - [ ] Change management procedures
146
1475. **Calculate compliance scores.** For each framework:
148 - Count the criteria met vs. total applicable criteria
149 - Calculate a percentage score
150 - Assign a letter grade:
151
152 | Grade | Score | Meaning |
153 |-------|-------|---------|
154 | A | 90-100% | Substantially compliant |
155 | B | 75-89% | Minor gaps, low risk |
156 | C | 60-74% | Moderate gaps, action needed |
157 | D | 40-59% | Significant gaps, priority remediation |
158 | F | 0-39% | Non-compliant, immediate action required |
159
1606. **Generate remediation roadmap.** For each gap, provide:
161 - Description of the gap
162 - Regulatory risk (fine amounts, enforcement precedents)
163 - Remediation action with specific steps
164 - Effort estimate (hours: 1-4, 4-16, 16-40, 40+)
165 - Priority tier: P0 (immediate), P1 (30 days), P2 (90 days), P3 (6 months)
166 - Suggested responsible party (legal, engineering, marketing, ops)
167
1687. **Compile the audit report** using the output format below.
169
170## Output
171
172Generate a single Markdown file named `COMPLIANCE-AUDIT-{company}-{YYYY-MM-DD}.md`:
173
174```
175# Regulatory Compliance Audit
176**{Company Name}** — {URL or codebase path}
177
178**Audit Date:** {date}
179**Auditor:** AI Compliance Scan (Legal Assistant Plugin)
180**Scope:** {frameworks evaluated}
181
182---
183
184## Executive Summary
185{3-5 sentence overview of compliance posture, highest-risk areas, and top recommendation}
186
187## Compliance Scorecard
188
189| Framework | Score | Grade | Status |
190|-----------|-------|-------|--------|
191| GDPR | {%} | {A-F} | {Compliant / Gaps Found / Non-Compliant} |
192| CCPA/CPRA | {%} | {A-F} | {status} |
193| ADA/WCAG 2.1 | {%} | {A-F} | {status} |
194| PCI-DSS | {%} | {A-F} | {status} |
195| CAN-SPAM | {%} | {A-F} | {status} |
196| COPPA | {%} | {A-F} | {status} |
197| SOC 2 | {%} | {A-F} | {status} |
198| **Overall** | **{%}** | **{grade}** | |
199
200## Detection Inventory
201{table of all signals detected during Phase 1}
202
203## Detailed Findings
204
205### GDPR
206{criteria-by-criteria evaluation with PASS/FAIL/N-A}
207
208### CCPA/CPRA
209{criteria-by-criteria evaluation}
210
211{... remaining frameworks ...}
212
213## Remediation Roadmap
214
215### P0 — Immediate (This Week)
216| # | Gap | Framework | Action | Effort | Owner |
217|---|-----|-----------|--------|--------|-------|
218{high-risk items}
219
220### P1 — Short-Term (30 Days)
221{moderate-risk items}
222
223### P2 — Medium-Term (90 Days)
224{lower-risk items}
225
226### P3 — Long-Term (6 Months)
227{enhancement items}
228
229## Risk Exposure Summary
230{estimated fine exposure per framework based on published enforcement ranges}
231
232---
233
234**Frameworks Not Applicable:** {list with reason}
235**Limitations:** AI scan cannot detect server-side controls, review organizational policies,
236or assess physical security. This audit supplements but does not replace professional
237compliance assessment.
238**Generated by:** Legal Assistant Plugin — Not a substitute for legal counsel.
239```
240
241## Error Handling
242
243| Error | Cause | Solution |
244|-------|-------|----------|
245| Website unreachable | URL down, behind auth, or blocked | Ask for codebase path or manual description of features |
246| Framework not applicable | Business does not trigger certain regulations | Mark as N/A with explanation, exclude from overall score |
247| Cannot assess server-side | No codebase access, only URL | Note limitation, recommend server-side review separately |
248| Mixed signals on COPPA | Cannot determine if audience includes children | Flag for manual review, apply COPPA criteria conservatively |
249| Payment processing unclear | Redirects to external checkout | Note processor, limit PCI-DSS scope to integration points |
250| Existing policies not found | No privacy policy or ToS published | Score as F for policy-dependent criteria, flag as P0 |
251
252## Examples
253
254**Example 1: E-Commerce Website**
255
256Request: "Audit https://example-shop.com for compliance"
257
258Result: `COMPLIANCE-AUDIT-ExampleShop-2026-04-02.md` with:
259- GDPR: C (68%) — privacy policy exists but missing granular consent, no DPA with Shopify
260- CCPA: D (45%) — no "Do Not Sell" link, no consumer request mechanism
261- ADA/WCAG: B (82%) — good semantic HTML, missing alt text on 12 product images
262- PCI-DSS: A (95%) — Stripe checkout handles card data, HTTPS enforced
263- CAN-SPAM: B (78%) — unsubscribe works, missing physical address
264- COPPA: N/A — adult products only
265- SOC 2: N/A — not pursuing certification
266- Remediation: 14 items across P0-P2, estimated 120 hours total
267
268**Example 2: SaaS Application Codebase**
269
270Request: "Run a compliance audit on our codebase at ./src"
271
272Result: `COMPLIANCE-AUDIT-SaaSApp-2026-04-02.md` with:
273- GDPR: D (52%) — no data processing records, no breach notification procedure
274- CCPA: C (65%) — basic privacy controls exist, missing sensitive data handling
275- ADA/WCAG: F (35%) — minimal ARIA attributes, no keyboard navigation, poor contrast
276- PCI-DSS: B (80%) — Stripe integration clean, but card-related strings in logs
277- CAN-SPAM: A (92%) — proper unsubscribe, physical address, clear headers
278- COPPA: N/A
279- SOC 2: D (48%) — no incident response plan, minimal access controls
280- Remediation: 23 items, accessibility overhaul as top P0
281
282## Resources
283
284- [ICO GDPR Guidance](https://ico.org.uk/for-organisations/guide-to-data-protection/) — UK Information Commissioner's Office
285- [California Attorney General CCPA](https://oag.ca.gov/privacy/ccpa) — Official CCPA guidance and enforcement
286- [FTC CAN-SPAM Compliance Guide](https://www.ftc.gov/business-guidance/resources/can-spam-act-compliance-guide-business) — Federal requirements
287- [W3C WCAG 2.1 Guidelines](https://www.w3.org/TR/WCAG21/) — Web accessibility standards
288- [PCI Security Standards Council](https://www.pcisecuritystandards.org/) — Payment card security standards
289- [FTC COPPA Rule](https://www.ftc.gov/legal-library/browse/rules/childrens-online-privacy-protection-rule-coppa) — Children's privacy requirements
290- [AICPA SOC 2 Trust Services Criteria](https://www.aicpa.org/interestareas/frc/assuranceadvisoryservices/sorhome) — SOC 2 framework