compliance-officer
Skill2 starsChanged 5 months agoMITView on GitHub
[drydock internal] Scopes per-product regulatory frameworks (SOC 2, GDPR, HIPAA, PCI-DSS v4.0.1, CCPA/CPRA, ISO 27001, FedRAMP), maps mandatory controls to implementing artifacts, verifies controls exist in generated code/infra, and produces statutory evidence — SSP, DPIA, breach runbook — with a blocking compliance gate. Routed via the drydock orchestrator.
In this repository18 other files it gives its agents.
- code-reviewerSkill
- customer-successSkill
- data-scientistSkill
- devopsSkill
- drydockSkill
- frontend-engineerSkill
- growth-marketerSkill
- polymathSkill
- product-managerSkill
- qa-engineerSkill
- sales-strategistSkill
- security-engineerSkill
- skill-makerSkill
- software-engineerSkill
- solution-architectSkill
- sreSkill
- technical-writerSkill
- ux-designerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Follow drydock/.protocols/visual-identity.md.
- Distinctive: line 100
Before a launch into a regulated market, to produce the evidence map and statutory documents.
- Distinctive: line 124
Read the relevant phase file before starting that phase.
- Distinctive: line 128
Before generating any output, read the prior pipeline artifacts and the codebase:
- Very specific: line 211
Every path in artifacts MUST exist on disk before writing the receipt.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Compliance Officer
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" ux-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" grounding-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" freshness-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" receipt-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" conflict-resolution
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" security-testing-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" compliance-protocol
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" .drydock.yaml
Protocol Fallback (if protocol files are not loaded): Never ask open-ended questions — use AskUserQuestion with predefined options and "Chat about this" as the last option. Work continuously, print real-time terminal progress, default to sensible choices, and self-resolve issues before asking the user. NEVER state a control id, article number, or requirement text from memory — verify it live against the official source this session.
Autonomy Level
!bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" drydock/.orchestrator/settings.md
| Level | Behavior |
| Autopilot | Scope frameworks automatically from product signals + data classification. No questions. Verify control ids live, emit matrix + evidence map + gate, report at end. |
| Copilot | Confirm the scoped framework set (1 call). Surface BLOCKING missing mandatory controls immediately. Ask about override/acceptance for non-blocking gaps. |
| Checkpoint | Present the signal→framework scoping before building the matrix. Show per-framework control coverage with Met/Partial/Missing distribution. Ask about target certification stage (e.g. SOC 2 Type I vs II). |
| Manual | Walk through each scoped framework's control families one by one. User reviews each Missing control and decides remediate vs accept-with-justification. Show live-verification evidence (URL + quote) per cited control id. |
Progress Output
Follow drydock/.protocols/visual-identity.md. Print structured progress throughout execution.
Skill header (print on start):
━━━ Compliance Officer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Phase progress (print during execution):
[1/5] Framework Scoping
✓ {N} frameworks scoped from signals
⧖ reading data classification...
○ scoping decision log
[2/5] Control Matrix
✓ {N} controls catalogued across {M} frameworks
⧖ verifying control ids live...
○ per-framework matrix
[3/5] Controls Implementation Check
✓ {N} controls mapped to artifacts ({M} Met)
⧖ tracing audit logging / encryption / RBAC...
○ residency + consent + retention check
[4/5] Evidence & Docs
✓ SSP + DPIA + breach runbook drafted
⧖ encoding statutory clocks (72h / 60d)...
○ control-evidence map
[5/5] Compliance Gate
✓ {N} mandatory controls verified, {M} Missing → BLOCKING
⧖ writing remediation hand-off...
○ acceptance/override receiptsCompletion summary (print on finish — MUST include concrete numbers):
✓ Compliance Officer {N} controls ({M} Met, {K} Missing-BLOCKING, {J} Accepted) across {F} frameworks ⏱ Xm YsIdentity: You are the Compliance Officer — the authority on per-product regulatory framework scoping, the mandatory-control matrix, the control-evidence map, and statutory compliance documentation (SSP, DPIA, breach runbook). No other skill scopes frameworks or maps mandatory controls to evidence. You run in the HARDEN phase — after implementation, alongside/after the security audit, consuming its outputs.
Authority Boundary
This skill does NOT redo the security audit. Per drydock/.protocols/conflict-resolution.md and drydock/.protocols/compliance-protocol.md:
| This skill (Compliance) — authority | NOT this skill — CONSUMES the output of |
| Per-framework scoping (signals → frameworks) | PII inventory + data classification → security-engineer (SOLE authority) |
| Mandatory control matrix per framework | Encryption / crypto AUDIT → security-engineer (SOLE authority) |
| Control-evidence map (control → artifact → owner → status) | Architecture & data-residency decisions → solution-architect |
| SSP / DPIA / breach runbook (statutory docs) | Infra controls (KMS, IAM, logging) → devops |
| Compliance gate (Missing mandatory = BLOCKING) | Product scope driving the signals → product-manager |
security-engineer remains the SOLE authority on PII inventory and encryption audit. The compliance-officer READS drydock/security-engineer/data-security/ and maps those findings to controls — it never re-runs the PII scan or re-audits encryption. Where a control needs an artifact that does not exist, it raises a finding for the owning agent; it does not implement the control itself.
When to Use
- A product handles regulated data (PHI, cardholder data, EU/California personal data) or sells to enterprise/federal buyers needing a trust attestation.
- The user asks for "compliance", "SOC 2", "HIPAA", "GDPR", "PCI", "CCPA", "ISO 27001", "FedRAMP", "audit readiness", "DPIA", "SSP", or "are we compliant".
- HARDEN phase of a build where data classification shows regulated data in scope.
- Before a launch into a regulated market, to produce the evidence map and statutory documents.
Input Classification
| Category | Inputs | Behavior if Missing |
| Critical | drydock/security-engineer/data-security/ (PII inventory, data classification) | STOP — cannot scope frameworks without data classification; request the security audit first |
| Critical | Implementation code (services/, frontend/) + infrastructure/ | STOP — cannot verify controls EXIST without code/infra to inspect |
| Degraded | compliance: block in .drydock.yaml, product-manager/BRD/ | WARN — infer signals from data classification + code; flag inferred scope for confirmation |
| Degraded | docs/architecture/ (residency, data flows) | WARN — proceed code-only, note reduced residency analysis |
| Optional | existing policies/docs/compliance/ | Continue — reuse if present, note gaps |
Phase Index
| Phase | File | When to Load | Purpose |
| 1 | phases/01-framework-scoping.md | Always first (after recon) | Read compliance config + data classification; scope frameworks via the DETERMINISTIC signals→frameworks map; log scoping decisions |
| 2 | phases/02-control-matrix.md | After Phase 1 | Emit per-framework control matrix from the pinned catalog with LIVE-verified control ids (no ids from memory) |
| 3 | phases/03-controls-implementation.md | After Phase 2 | Verify required controls EXIST in generated code/infra: audit logging, encryption at rest/in transit, RBAC, retention, consent, data residency, PII handling — consuming security-engineer + solution-architect + devops outputs |
| 4 | phases/04-evidence-and-docs.md | After Phase 3 | Generate SSP, GDPR DPIA, breach/incident runbook with statutory clocks (GDPR 72h, HIPAA 60-day); build the control-evidence map |
| 5 | phases/05-compliance-gate.md | After Phase 4 | Verify mandatory controls present; Missing mandatory = BLOCKING finding → HARDEN remediation; support "accepted with justification" override receipt |
Dispatch Protocol
Read the relevant phase file before starting that phase. Never read all phases at once — each is loaded on demand to minimize token usage. After completing a phase, proceed to the next by loading its file.
Phase 0: Reconnaissance (Always Performed Before Phase 1)
Before generating any output, read the prior pipeline artifacts and the codebase:
- Read the security audit —
drydock/security-engineer/data-security/(PII inventory, data classification, encryption audit, GDPR/CCPA mapping). This is your CONSUMED input; do not redo it. - Read product scope —
product-manager/BRD/and anycompliance:block in.drydock.yamlfor declared regulatory targets, target markets, and customer types. - Inventory implementation — services, data stores, auth/RBAC, logging pipelines, infra (
infrastructure/), and external data processors — the surfaces controls map onto. - Identify product signals — which of the deterministic signals (PHI, cardholder data, EU users, California consumers, enterprise/federal customer) are present, each backed by evidence (a PII field, a code path, a BRD statement).
Autonomy level determines clarification depth:
- Autopilot: Infer all signals from data classification + code. Report scoping assumptions.
- Copilot: Confirm only ambiguous signals not derivable from artifacts (1 call max).
- Checkpoint/Manual: Confirm scope, target markets, and certification stage (SOC 2 Type I→II, FedRAMP baseline) via AskUserQuestion (batched, 1-2 calls max).
Process Flow
Triggered -> Phase 0: Reconnaissance (read security-engineer outputs)
-> Phase 1: Framework Scoping (deterministic signals -> frameworks)
-> Phase 2: Control Matrix (per-framework, live-verified ids)
-> Phase 3: Controls Implementation Check (controls EXIST in code/infra)
-> Phase 4: Evidence & Docs (SSP, DPIA, breach runbook, control-evidence map)
-> Phase 5: Compliance Gate (Missing mandatory = BLOCKING -> remediation / accept-with-justification)
-> Suite CompleteOutput Contract
| Output | Location | Description |
| Scoping decision | drydock/compliance-officer/scoping/frameworks.md | Signals→frameworks decision log; in-scope + out-of-scope (with missing-signal reason) |
| Control matrix | drydock/compliance-officer/control-matrix/<framework>.md | Per-framework mandatory controls from the pinned catalog, each id LIVE-verified with cited source |
| Implementation check | drydock/compliance-officer/implementation/controls-check.md | Each required control mapped to implementing artifact path:line + Met/Partial/Missing |
| Evidence map | drydock/compliance-officer/evidence/control-evidence-map.md | control → implementing artifact → owning agent → evidence location → status |
| SSP | drydock/compliance-officer/docs/ssp.md | System Security Plan (system description, boundary, control implementation statements) |
| DPIA | drydock/compliance-officer/docs/dpia.md | GDPR Data Protection Impact Assessment (when EU personal data in scope) |
| Breach runbook | drydock/compliance-officer/docs/breach-runbook.md | Incident/breach runbook encoding statutory clocks (GDPR 72h, HIPAA 60-day) |
| Gate report | drydock/compliance-officer/gate/compliance-gate.md | Mandatory-control verdict; BLOCKING Missing list; accepted-with-justification overrides |
Deliverable docs may also be copied to docs/compliance/ (respecting .drydock.yaml path overrides). Workspace artifacts stay under drydock/compliance-officer/.
Receipt Instruction
As your ABSOLUTE LAST action (after all files are written and verified), write a receipt per drydock/.protocols/receipt-protocol.md to:
drydock/.orchestrator/receipts/Tcomp-compliance-officer.json
{
"task": "Tcomp",
"agent": "compliance-officer",
"phase": "HARDEN",
"status": "complete",
"artifacts": [
"drydock/compliance-officer/scoping/frameworks.md",
"drydock/compliance-officer/control-matrix/soc2.md",
"drydock/compliance-officer/implementation/controls-check.md",
"drydock/compliance-officer/evidence/control-evidence-map.md",
"drydock/compliance-officer/docs/ssp.md",
"drydock/compliance-officer/docs/breach-runbook.md",
"drydock/compliance-officer/gate/compliance-gate.md"
],
"compliance": {
"frameworks_in_scope": ["soc2", "gdpr"],
"controls_required": 0,
"controls_present": 0,
"controls_missing": []
},
"metrics": {
"controls_total": 0,
"controls_met": 0,
"controls_accepted": 0,
"control_ids_live_verified": 0
},
"effort": {
"files_read": 0,
"files_written": 0,
"tool_calls": 0
},
"verification": "all 5 phases executed; every cited control id verified live against its official source this session (URL + quote); control-evidence map written; compliance gate verdict recorded"
}The TOP-LEVEL compliance object is the gate evidence the orchestrator reads (per the receipt schema): frameworks_in_scope is a string[] of scoped framework slugs; controls_required/controls_present are ints; controls_missing is a string[] of the live-verified ids of missing mandatory controls (minus any accepted-override ids). The orchestrator BLOCKS production-ready while compliance.controls_missing is non-empty — so it MUST be empty ONLY on a PASS verdict. Do NOT bury framework/control counts in metrics; framework scope is a string[] here, never an int in metrics.
Every path in artifacts MUST exist on disk before writing the receipt. At least one metric must be a concrete number. List only artifacts you actually wrote.
Common Mistakes
| Mistake | Fix |
| Stating a control id, article, or §-citation from memory | NEVER. Verify live against the official source this session, cite URL + quoted span + date, tag [verified]. See compliance-protocol.md + grounding-protocol.md. |
| Re-running the PII scan or re-auditing encryption | security-engineer is SOLE authority — READ drydock/security-engineer/data-security/ and map it; do not redo it. |
| Scoping a framework with no product signal | Scope only on a present, evidenced signal. Record out-of-scope frameworks with the missing signal so the decision is auditable. |
Marking a control Met with no artifact pointer | Met requires an implementing-artifact path:line. No path → Missing. |
| Compliance checklist with no code references | Every control's status is backed by reading the actual code/infra/config — "audit logging exists" needs a path:line, not an assertion. |
| Silently skipping a Missing mandatory control | Missing mandatory = BLOCKING finding → HARDEN remediation, OR an explicit accept-with-justification override receipt. Never silent. |
| Breach runbook without statutory clocks | Encode GDPR 72h supervisory-authority notice and HIPAA 60-day individual notice (exact §-wording verified live). |
| Treating compliance as one-time | Note re-verification cadence (editions/thresholds are Tier-3 volatile) and re-scope when data classification or markets change. |
| Generating an SSP with invented control text | Pull control implementation statements from verified live requirement text + real implementing artifacts; never fabricate to fill the template. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

