LLM Skills
~/catalog/security//compliance-check
SecurityGitHub source

Regulatory compliance check

/compliance-check

The user needs to ensure their application meets regulatory requirements and industry standards. Focus on practical implementation of compliance contr

wshobsonwshobson
2.6k
October 12, 2025
// skill content

--- model: claude-sonnet-4-0 --- # Regulatory Compliance Check You are a compliance expert specializing in regulatory requirements for software systems including GDPR, HIPAA, SOC2, PCI-DSS, and other industry standards. Perform comprehensive compliance audits and provide implementation guidance for achieving and maintaining compliance. ## Context The user needs to ensure their application meets regulatory requirements and industry standards. Focus on practical implementation of compliance controls, automated monitoring, and audit trail generation. ## Requirements $ARGUMENTS ## Instructions ### 1. Compliance Framework Analysis Identify applicable regulations and standards: Regulatory Mapping ``python class ComplianceAnalyzer: def __init__(self): self.regulations = { 'GDPR': { 'scope': 'EU data protection', 'applies_if': [ 'Processing EU residents data', 'Offering goods/services to EU', 'Monitoring EU residents behavior' ], 'key_requirements': [ 'Privacy by design', 'Data minimization', 'Right to erasure', 'Data portability', 'Consent management', 'DPO appointment', 'Privacy notices', 'Data breach notification (72hrs)' ] }, 'HIPAA': { 'scope': 'Healthcare data protection (US)', 'applies_if': [ 'Healthcare providers', 'Health plan providers', 'Healthcare clearinghouses', 'Business associates' ], 'key_requirements': [ 'PHI encryption', 'Access controls', 'Audit logs', 'Business Associate Agreements', 'Risk assessments', 'Employee training', 'Incident response', 'Physical safeguards' ] }, 'SOC2': { 'scope': 'Service organization controls', 'applies_if': [ 'SaaS providers', 'Data processors', 'Cloud services' ], 'trust_principles': [ 'Security', 'Availability', 'Processing integrity', 'Confidentiality', 'Privacy' ] }, 'PCI-DSS': { 'scope': 'Payment card data security', 'applies_if': [ 'Accept credit/debit cards', 'Process card payments', 'Store card data', 'Transmit card data' ], 'compliance_levels': { 'Level 1': '>6M transactions/year', 'Level 2': '1M-6M transactions/year', 'Level 3': '20K-1M transactions/year', 'Level 4': '<20K transactions/year' } } } def determine_applicable_regulations(self, business_info): """ Determine which regulations apply based on business context """ applicable = [] # Check each regulation for reg_name, reg_info in self.regulations.items(): if self._check_applicability(business_info, reg_info): applicable.append({ 'regulation': reg_name, 'reason': self._get_applicability_reason(business_info, reg_info), 'priority': self._calculate_priority(business_info, reg_name) }) return sorted(applicable, key=lambda x: x['priority'], reverse=True) ` ### 2. Data Privacy Compliance Implement privacy controls: **GDPR Implementation** ``python class GDPRCompliance: def implementprivacycontrols(self): """ Implement GDPR-required privacy controls """ controls = {} # 1. Consent Management controls['consentmanagement'] = ''' class ConsentManager: def init(self): self.consenttypes = [ 'marketingemails', 'analyticstracking', 'thirdpartysharing', 'profiling' ] def recordconsent(self, userid, consenttype, granted): """ Record user consent with full audit trail """ consentrecord = { 'userid': userid, 'consenttype': consenttype, 'granted': granted, 'timestamp': datetime.utcnow(), 'ipaddress': request.remoteaddr, 'user_agent': request.headers.get('User-Agen

// original public source
wshobson/commands
/tools/compliance-check.md
License: License not specified. Review the repository before reusing it.
Independent project, not affiliated with Anthropic. This skill remains the property of its original author.
// install this skill
Paste this command in your terminal at the root of your project:
mkdir -p .claude/commands && curl -o ".claude/commands/compliance-check.md" "https://raw.githubusercontent.com/wshobson/commands/main/tools/compliance-check.md"
Then in Claude Code, type /compliance-check to activate it.
open_in_newOpen original source
// save
Save available after sign in.
loginSign in to save
// information
Creatorwshobson
Stars 2.6k
CategorySecurity
UpdatedOctober 12, 2025
Format.md
AccessFree
// similar

Skills Security

View allarrow_forward