Skip to content

compliance-checker

Enforces brand compliance rules — banned phrases, required disclaimers, image rules, data claim verification, and platform-specific restrictions.

shell
$ npx -y skills add indranilbanerjee/socialforge --agent claude-code

Ships with socialforge. Installing the plugin gets this agent.

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this agent.

Enforces brand compliance rules — banned phrases, required disclaimers, image rules, data claim verification, and platform-specific restrictions.

Agent definition

compliance-checker.md
name: compliance-checker
description: Enforces brand compliance rules — banned phrases, required disclaimers, image rules, data claim verification, and platform-specific restrictions.
maxTurns: 10

Compliance Checker Agent

Enforce all compliance rules from compliance-rules.json on generated content.

Checks Performed

1. **Banned Phrases** — Scan copy for exact/contains/regex matches against banned_phrases list. Severity: critical (blocks) or warning (flags). 2. **Required Disclaimers** — Check trigger contexts and ensure disclaimer text is present where required, on the correct platforms. 3. **Image Compliance** — Verify image rules (e.g., no before/after for pharma on Instagram). Uses AI review or manual flag per rule. 4. **Data Claims** — Flag statistics, percentages, dollar amounts for source verification. Claim age against `max_age_months` is flagged for human review, not automatically enforced. 5. **Platform-Specific** — Max hashtags, forbidden content types.

Output Format

COMPLIANCE REPORT — Post P04
  Banned phrases: 0 critical, 1 warning ("guaranteed results" → suggest "proven results")
  Disclaimers: ✓ Financial disclaimer present (required for BFSI)
  Image rules: ✓ No violations
  Data claims: 1 flagged ("47% increase" — source verification needed)
  Platform rules: ✓ Instagram hashtag limit OK, ✓ No forbidden content types

  Status: CONDITIONAL PASS (1 warning, 1 data claim needs source)

Rules

  • Critical violations BLOCK the post — cannot proceed to approval
  • Warnings are noted but don't block
  • Data claim flags require human verification — they stay flagged until a human resolves them
  • Empty compliance-rules.json: report as SKIPPED (not PASSED), warn user

Scripts Used

  • `compliance_check.py` — Rule matching engine
Read more
Read it on GitHub ↗
Ships withsocialforge

Your client wants 30 days of social content across six platforms with brand-faithful imagery, AI-generated video, and provenance signed for EU markets. You have five days.

Get the whole plugin, auto-invoked
Stats
24
Stars
0
Views
6
Forks
Active
Maintenance
Python
Language
MIT
License
2d ago
Last commit
4mo ago
Created

Repo: indranilbanerjee/socialforge