njt2810/claude-code-framework/compliance-audit

Claude Code and agent skill by njt2810/claude-code-framework

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TRIGGER when: the user wants to audit the project against PDPA or SOC 2 controls, asks about compliance status, wants a gap analysis, says "are we compliant", or is preparing for a client security questionnaire. DO NOT TRIGGER when: the user wants a security audit (use /security-check), data inventory only (use /data-inventory), or legal docs (use /legal-docs).

Install

npx vskill@latest install njt2810/claude-code-framework/compliance-audit

SKILL.md

The same SKILL.md was published earlier as njt2810/claude-code-framework/compliance-audit.

Compliance Audit

When to Use

When you need a gap analysis of the current project against PDPA (Singapore) or SOC 2 Common Criteria, or both. Produces a structured report — does not auto-remediate. The user fixes gaps in subsequent sessions.

Procedure

Step 1 — Determine Scope

Read $ARGUMENTS to determine which framework(s) to audit:

  • PDPA — Singapore Personal Data Protection Act only
  • SOC2 — SOC 2 Common Criteria only
  • both — audit against both (recommended)
  • If empty: ask "Audit against PDPA, SOC 2, or both?"

Also read the project's own CLAUDE.md for a Production-tier: line (v2, written by /adopt) — falls back to the old Stream:/.claude/stream detection for a v1 project not yet re-adopted:

  • If not production-tier: STOP. Say "Non-production-tier projects are not

in compliance scope. /compliance-audit is for production-tier projects only."

Step 2 — Delegate to Compliance Officer

Delegate to the Compliance Officer subagent:

"Perform a {PDPA|SOC2|both} gap audit on this project.

For PDPA, check these obligations (Singapore PDPA Part IV-VI):

  1. Consent — is consent collected for PII processing?
  2. Purpose limitation — is purpose stated and respected?
  3. Notification — are users told what's collected and why?
  4. Access & correction — can users request their data?
  5. Accuracy — are mechanisms in place to keep data accurate?
  6. Protection — encryption, access controls, retention
  7. Retention — is there a retention policy and enforcement?
  8. Transfer limitation — are cross-border transfers compliant?
  9. Openness — is privacy policy published?
  10. Data Protection Officer — is a DPO designated?

For SOC 2, check Common Criteria (CC1-CC9): CC1 — Control environment (governance, accountability) CC2 — Communication and information CC3 — Risk assessment CC4 — Monitoring activities CC5 — Control activities CC6 — Logical and physical access CC7 — System operations (change management, monitoring) CC8 — Change management CC9 — Risk mitigation

For each control, classify the project as: PASS — control fully implemented with evidence PARTIAL — control implemented but missing evidence or has gaps FAIL — control not implemented N/A — control does not apply to this project

Report findings as a structured table. For each FAIL or PARTIAL, include a remediation suggestion."

Wait for the Compliance Officer's report.

Step 3 — Write Gap Report

Write wiki/compliance/gaps.md (append a new dated section if file exists):

markdown
## Audit — {YYYY-MM-DD}
Scope: {PDPA|SOC2|both}
Auditor: Compliance Officer agent
Realm: {realm-key, or "one-off"}
### Summary
| Framework | PASS | PARTIAL | FAIL | N/A | Total |
|-----------|------|---------|------|-----|-------|
| PDPA | {n} | {n} | {n} | {n} | {n} |
| SOC 2 | {n} | {n} | {n} | {n} | {n} |
### PDPA Findings
| Obligation | Status | Evidence / Gap | Remediation |
|-----------|--------|----------------|-------------|
| Consent | ... | ... | ... |
| ... | ... | ... | ... |
### SOC 2 Findings
| Criterion | Status | Evidence / Gap | Remediation |
|-----------|--------|----------------|-------------|
| CC1 | ... | ... | ... |
| ... | ... | ... | ... |
### Top 5 Gaps to Address
1.{Gap} — {why critical} — {effort: S/M/L}
2....
### Next Audit Recommended
{Date — typically 90 days for active projects, 30 days if many FAILs}

Step 4 — Update Evidence Index

For each PASS finding, append to wiki/compliance/evidence-index.md:

markdown
| Control | Evidence Location | Last Verified | Verifier |
|---------|------------------|---------------|----------|
| {control id} | {file path} | {YYYY-MM-DD} | Compliance Officer |

Step 5 — Report Summary

Print to user:

Compliance Audit Complete
Scope: {PDPA|SOC2|both}
PASS: {N} controls
PARTIAL: {N} controls
FAIL: {N} controls
N/A: {N} controls
Top 5 gaps to address:
1. {gap}
2. {gap}
...
Full report: wiki/compliance/gaps.md
Evidence index: wiki/compliance/evidence-index.md
Next steps:
- Review the FAIL gaps and decide which to address first
- Run /data-inventory if PII flow mapping was flagged as a gap
- Run /legal-docs if missing privacy policy / DPA was flagged
- Run /audit-logging-setup if audit logging was flagged

Pitfalls

  • Running this without a Compliance Officer agent installed — fails silently.

Confirm agent exists at .claude/agents/compliance-officer.md first.

  • Running on a non-production-tier project — meaningless and noisy. Block early.
  • Overwriting wiki/compliance/gaps.md instead of appending — historical

audits matter for SOC 2 evidence.

  • Auditing without specifying scope — defaults are dangerous; ask the user.

Verification

  • wiki/compliance/gaps.md was written with today's date
  • All controls in scope have a status (PASS/PARTIAL/FAIL/N/A)
  • Top 5 gaps are clearly identified
  • Evidence index updated with PASS findings
  • User has a clear next action

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/njt2810/claude-code-framework/compliance-audit/badge)](https://verified-skill.com/skills/njt2810/claude-code-framework/compliance-audit)

Something wrong with this skill or its page? Tell us.