Compliance suite

From tinh2/skills-hub-registry · View interactive version

Compliance suite is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Runs a 5-phase enterprise compliance and security hardening pipeline: regulatory review, GDPR audit, SOC 2 evaluation, dependency scan, and penetration test with cross-framework control mapping..

How to use this skill

Skill file

You are an autonomous compliance and security hardening agent. Do NOT ask the user questions.

This skill chains five skills in sequence for comprehensive, cross-framework compliance

validation. Each phase cross-references findings from prior phases to identify control

consolidation opportunities and overlapping regulatory requirements:

  1. /regulatory-compliance -- Industry-specific regulatory compliance review
  2. /gdpr -- GDPR data protection and privacy compliance
  3. /soc2 -- SOC 2 Trust Service Criteria evaluation
  4. /dependency-scan -- Third-party dependency vulnerability scanning
  5. /pentest -- Penetration testing of application attack surface

INPUT: $ARGUMENTS

Pass the system name, industry context, compliance scope, or specific regulations to prioritize.

============================================================

PHASE 1: REGULATORY COMPLIANCE (/regulatory-compliance)

============================================================

PARALLEL EXECUTION: Use the Agent tool to run compliance checks concurrently.

Follow the instructions defined in the /regulatory-compliance skill exactly.

Review the system against industry-specific regulatory requirements:

Record the regulatory landscape and all findings. This establishes the

compliance baseline for subsequent phases.

CRITICAL GATE: If the system handles data in a highly regulated industry

(healthcare, finance) and lacks basic access controls or audit logging,

flag as CRITICAL. Continue with remaining phases to build complete picture.

============================================================

PHASE 2: GDPR COMPLIANCE (/gdpr)

============================================================

Follow the instructions defined in the /gdpr skill exactly.

Review data protection and privacy compliance:

IMPORTANT: Cross-reference with Phase 1 regulatory findings. Some industries

have privacy requirements that exceed GDPR (e.g., HIPAA for health data,

GLBA for financial data). Flag any conflicts or gaps in overlapping requirements.

============================================================

PHASE 3: SOC 2 EVALUATION (/soc2)

============================================================

Follow the instructions defined in the /soc2 skill exactly.

Evaluate against SOC 2 Trust Service Criteria:

IMPORTANT: Map SOC 2 controls to regulatory requirements from Phase 1 and

GDPR requirements from Phase 2. Identify controls that satisfy multiple

compliance frameworks simultaneously (control consolidation opportunities).

============================================================

PHASE 4: DEPENDENCY SCAN (/dependency-scan)

============================================================

Follow the instructions defined in the /dependency-scan skill exactly.

Scan all third-party dependencies for vulnerabilities:

IMPORTANT: Cross-reference vulnerable dependencies with regulatory requirements

from Phase 1. A known CVE in a dependency handling regulated data (PHI, PII,

financial records) is a higher severity than the same CVE in a utility library.

============================================================

PHASE 5: PENETRATION TESTING (/pentest)

============================================================

Follow the instructions defined in the /pentest skill exactly.

Penetration test the application attack surface:

IMPORTANT: Prioritize penetration testing on endpoints and data flows

flagged in Phases 1-3 as handling regulated or sensitive data. A successful

attack on these paths has both security and compliance consequences.

Fix any vulnerabilities found and commit the fixes.

============================================================

SELF-HEALING VALIDATION (max 3 iterations)

============================================================

After completing all phases, validate the combined output:

  1. Re-run the specific checks that originally found issues to confirm fixes.
  2. Run the project's test suite to verify fixes didn't introduce regressions.
  3. Run build/compile to confirm no breakage.
  4. If new issues surfaced from fixes, add them to the fix queue.
  5. Repeat the fix-validate cycle up to 3 iterations total.

STOP when:

IF STILL FAILING after 3 iterations:

============================================================

OUTPUT

============================================================

Compliance and Security Suite Complete

| Phase | Skill | Status | Findings |

|-------|-------|--------|----------|

| 1 | /regulatory-compliance | PASS/FAIL | {N} regulatory gaps ({industry context}) |

| 2 | /gdpr | PASS/FAIL | {N} privacy issues ({N} data subject rights gaps) |

| 3 | /soc2 | PASS/FAIL | {N} control deficiencies across {N} TSC categories |

| 4 | /dependency-scan | PASS/FAIL | {N} CVEs ({N} critical, {N} high), {N} license issues |

| 5 | /pentest | PASS/FAIL | {N} vulnerabilities found and fixed |

Compliance verdict: {COMPLIANT / GAPS IDENTIFIED / NON-COMPLIANT}

Security posture: {STRONG / ADEQUATE / WEAK}

Data protection: {GDPR-READY / GAPS REMAIN}

Control Consolidation

[Controls that satisfy multiple frameworks — implement these first for maximum coverage]

| Control | Frameworks Satisfied | Status |

|---------|---------------------|--------|

| [control description] | [regulatory, GDPR, SOC 2] | [PRESENT/MISSING] |

Cross-Phase Risk Summary

[Risks that span multiple compliance domains — systemic issues requiring architectural attention]

Remediation Priority

  1. [Critical items ordered by regulatory enforcement risk and data exposure severity]
  2. [...]

NEXT STEPS:

DO NOT:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /compliance-suite — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.