<< All versions

Skill v1.0.1

currentAutomated scan100/100
samotech/skills-tree/compliance-review-workflows

+4 new

──Details
PublishedOctober 24, 2026 at 08:51 AM
Content Hashsha256:626c0d2d6e865b8c...
Git SHAa601eb1c5f5a
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 3.7 KB)
SKILL.md3.7 KBactive
SKILL.md · 79 lines · 3.7 KB

version: "1.0.1" name: compliance-review-workflows description: Apply compliance review workflows in an AI workflow with explicit scope, domain constraints, validation, and documented failure handling. metadata: source: skills/16-domain-specific/compliance-review-workflows.md category: 16-domain-specific version: "v2"


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

CauseSymptomMitigation
Policy engine misses jurisdiction-specific rulesNon-compliant content approvedMaintain per-jurisdiction rule sets, not one global policy
Reviewer approves without readingLiability exposureRequire reviewers to annotate specific sections they approved
Audit log tampered or deletedNo evidence for auditUse 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

CapabilityGPT-4oClaude 3.7 SonnetGemini 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
CostModerateModerateLow

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
← v1.0.0All versions