security-compliance-audit — Claude Code skill: SOC 2 and GDPR audits
A skill that walks through security compliance checks for SOC 2, GDPR, HIPAA, PCI-DSS and ISO 27001. Useful before certification or an annual audit.
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a claude-codeWhat security-compliance-audit does
The skill runs a systematic review of security controls, policies and procedures. It ships a Python data model with ComplianceFramework, ControlStatus and Control classes, where each control carries control_id, framework and category. Full implementations live in references/automated-compliance-checker.md and references/nodejs-compliance-automation.md.
Six scenarios are covered: annual audits, pre-certification assessments, regulatory validation, security posture review, third-party audits and gap analysis. Each control gets a status — compliant, non_compliant, partially_compliant or not_applicable — so you can see where remediation is still owed.
Install runs through npx skills add with a platform flag. GitHub Copilot uses a different command: gh skill install. The skill file lands in .cursor/skills/, .github/skills/ or ~/.claude/skills/ depending on the tool. The reference guides assume a Python environment, since the sample code relies on dataclasses and enum.
What it helps with
- check security controls before a SOC 2 certification
- collect evidence for each GDPR requirement
- find gaps in ISO 27001 coverage
- track remediation status after an audit
- prepare a HIPAA or PCI-DSS compliance report
Example prompts for the agent
- run a SOC 2 control audit and list what fails
- build a GDPR requirements checklist for our service
- show what we have not covered under ISO 27001 and suggest a fix plan
How to install security-compliance-audit
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a claude-code2Manually: put the files in place
~/.claude/skills/security-compliance-audit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/security-compliance-audit/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a codex2Manually: put the files in place
.agents/skills/security-compliance-audit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a cursor2Manually: put the files in place
.cursor/skills/security-compliance-audit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts security-compliance-audit2Manually: put the files in place
.github/skills/security-compliance-audit/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/security-compliance-auditManually: put the files in place
.devin/skills/security-compliance-audit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about security-compliance-audit
How do I install security-compliance-audit in Claude?
Run npx skills add aj-geddes/useful-ai-prompts --skill security-compliance-audit -a claude-code. The skill file ends up at ~/.claude/skills/security-compliance-audit/SKILL.md.
What does security-compliance-audit do?
It evaluates security controls and procedures against SOC 2, GDPR, HIPAA, PCI-DSS and ISO 27001. Use it for certification prep, annual audits and gap analysis.
Which platforms are supported?
Claude, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode. Each platform has its own install command and skill file path.
Source text
SKILL.md · MIT
---
name: security-compliance-audit
description: >
Conduct comprehensive security compliance audits for SOC 2, GDPR, HIPAA,
PCI-DSS, and ISO 27001. Use when preparing for certification, annual audits,
or compliance validation.
---
# Security Compliance Audit
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Systematic evaluation of security controls, policies, and procedures to ensure compliance with industry standards and regulatory requirements.
## When to Use
- Annual compliance audits
- Pre-certification assessments
- Regulatory compliance validation
- Security posture evaluation
- Third-party audits
- Gap analysis
## Quick Start
Minimal working example:
```python
# compliance_auditor.py
from dataclasses import dataclass, field
from typing import List, Dict
from enum import Enum
import json
from datetime import datetime
class ComplianceFramework(Enum):
SOC2 = "SOC 2"
GDPR = "GDPR"
HIPAA = "HIPAA"
PCI_DSS = "PCI-DSS"
ISO_27001 = "ISO 27001"
class ControlStatus(Enum):
COMPLIANT = "compliant"
NON_COMPLIANT = "non_compliant"
PARTIALLY_COMPLIANT = "partially_compliant"
NOT_APPLICABLE = "not_applicable"
@dataclass
class Control:
control_id: str
framework: ComplianceFramework
category: str
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Automated Compliance Checker](references/automated-compliance-checker.md) | Automated Compliance Checker |
| [Node.js Compliance Automation](references/nodejs-compliance-automation.md) | Node.js Compliance Automation |
## Best Practices
### ✅ DO
- Automate compliance checks
- Document all controls
- Maintain evidence repository
- Conduct regular audits
- Track remediation progress
- Involve stakeholders
- Keep policies updated
### ❌ DON'T
- Skip documentation
- Ignore findings
- Delay remediation
- Cherry-pick controls
- Forget evidence collection
© aj-geddes · MIT · aj-geddes/useful-ai-prompts