# Compliance Review Workflows

> Apply compliance review workflows in an AI workflow with explicit scope, domain constraints, validation, and documented failure handling.

- Skill: `samotech/compliance-review-workflows` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/compliance-review-workflows`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/compliance-review-workflows/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/compliance-review-workflows

---


# Compliance Review Workflows
Category: domain-specific | Level: advanced | Stability: stable | Version: v2
## Description

Apply compliance review workflows as a bounded domain-specific capability. Define the task scope, preserve relevant source context, validate inputs and outputs, and avoid claiming domain certainty beyond the available evidence.

Compliance review workflows embed mandatory review checkpoints into agent pipelines for regulated domains: financial advice, medical recommendations, legal documents, or marketing copy. The agent drafts content, an interrupt gate surfaces it for compliance review (human or automated policy engine), and execution continues only after sign-off. Full audit trails are maintained for regulatory accountability.

## Inputs
- `draft_output`: agent-generated content requiring review
- `compliance_policy`: rules the content must satisfy (regulatory, legal, brand)
- `reviewer`: human compliance officer or automated policy LLM
- `interrupt_before`: LangGraph node list for compliance checkpoints
- `audit_store`: append-only log with reviewer ID, timestamp, decision, notes

## Outputs
- Approved content returned to end user
- Rejected content returned to agent with specific failure reasons for revision
- Immutable audit log entry created for every review decision

## Example
```python
def compliance_check_node(state):
    draft = state["draft"]
    # Automated policy check
    violations = policy_engine.check(draft)
    if violations:
        return {"status": "rejected", "violations": violations}
    return {"status": "pending_human_review"}

def human_review_node(state):
    decision = interrupt({
        "draft": state["draft"],
        "auto_check": state["status"]
    })
    return {"approved": decision["approved"], "reviewer_id": decision["reviewer_id"]}
```

## Failure Modes
| Cause | Symptom | Mitigation |
|---|---|---|
| Policy engine misses jurisdiction-specific rules | Non-compliant content approved | Maintain per-jurisdiction rule sets, not one global policy |
| Reviewer approves without reading | Liability exposure | Require reviewers to annotate specific sections they approved |
| Audit log tampered or deleted | No evidence for audit | Use append-only, cryptographically signed audit store |

## Prompt Patterns
**Basic:** `"Draft the document, then pause for compliance review before sending."`

**Chain-of-Thought:** `"Identify all regulatory requirements → generate compliant draft → run automated checks → route for human sign-off."`

**Constrained Output:** `"Never finalise or send output without a recorded approval decision in the audit log."`

## Model Comparison
| Capability | GPT-4o | Claude 3.7 Sonnet | Gemini 2.0 Flash |
|---|---|---|---|
| Regulatory content quality | ✅ Strong | ✅ Very Strong | ⚠️ Moderate |
| Policy violation detection | ✅ Good | ✅ Strong | ⚠️ Misses edge cases |
| Audit trail design advice | ✅ Detailed | ✅ Very Detailed | ⚠️ Basic |
| Multi-jurisdiction awareness | ✅ Good | ✅ Strong | ⚠️ US-centric |
| Cost | Moderate | Moderate | Low |

## Evidence
The canonical skill file is the authoritative repository implementation. Repository schema, validation workflows, and the Agent Skills projection contract define structural conformance. Domain-specific factual claims must remain traceable to supplied or independently verified authoritative sources.

## Related
- 16-domain-specific
- input-guardrails
- output-guardrails

