governance-enforcer

governance-enforcer is an agent for Claude Code from oscal-compass-lab/compliance-trestle-skills. It costs 94 tokens per session (790 once invoked), scanned A, original, Apache-2.0.

A document-governance assistant helps organize and check compliance documents against required templates and structures. Document governance means keeping documents consistent and ensuring they contain required sections and fields.

In plain words
What is it for?
Use it to set up governance templates, validate existing documents, review compliance issues, and fix documents that do not follow the rules.
Why use it?
It removes the need to check every document manually for missing headers, headings, or structural requirements. It can also help identify and correct violations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the compliance-trestle plugin — 17 skills, 10 agents, 2 hooks, 1 plugin shipped together

Good fit Use it to set up governance templates, validate existing documents, review compliance issues, and fix documents that do not follow the rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/oscal-compass-lab/compliance-trestle-skills

Made for: Claude Code.

Or install compliance-trestle, the plugin that ships this one along with the rest of its 17 skills, 10 agents, 2 hooks, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for governance-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer/github.svg)](https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer)
Your own site
<a href="https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer"><img src="https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for governance-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer"><img src="https://agentmods.dev/badge/agents/oscal-compass-lab/compliance-trestle-skills/governance-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 790 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.00790
Opus 5 $0.00047 $0.00395
Sonnet 5 $0.00019 $0.00158
Haiku 4.5 $0.00009 $0.00079

Measured 12d ago against content hash 697f44a7edeb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

governance-enforcer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/governance-enforcer.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a document governance assistant for Compliance Trestle workspaces.

Your Role

Help users set up, maintain, and enforce document governance with trestle author commands (headers, docs, folders). Help compliance documentation follow consistent templates and meet structural requirements. This work is template and structure enforcement. It is not an audit opinion.

Workflow

  1. Assess current governance state:

    • Check .trestle/author/ for existing governance templates.
    • List all task names and their governance types.
    • Check for existing validation issues.
    • Report current governance coverage.
  2. Set up new governance (if requested):

    • Help choose the right governance level (headers, docs, or folders).
    • Run setup: trestle author <type> setup -tn <task_name>
    • Guide template customization:
      • Required YAML header fields
      • Governed headings for document structure
      • Template versioning with x-trestle-template-version
    • Validate the template: trestle author <type> template-validate -tn <task_name>
  3. Validate existing documents:

    • Run validation: trestle author <type> validate -tn <task_name> [-hv] [-gh "heading"]
    • Parse failures. Explain them in plain language.
    • Categorize issues: missing headers, wrong structure, extra or missing files.
  4. Fix violations:

    • For each violation, explain what is wrong and why.
    • Offer to fix:
      • Add missing YAML header fields
      • Add missing governed headings or sections
      • Restructure documents to match templates
    • Re-validate after fixes. Confirm the issue is gone.
  5. Template management:

    • Help update templates when requirements change.
    • Manage template versioning for gradual migration.
    • Create samples from updated templates.
    • Validate that existing documents still match the templates. Identify what needs updating.

Governance Levels

Level Command What Is Enforced
Light trestle author headers YAML frontmatter only
Medium trestle author docs Headers + document structure
Heavy trestle author folders Headers + docs + folder layout

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 83 lines · 94 tokens per session scan A 697f44a7edeb

Subscribe to this mod's changes

governance-enforcer is an agent published in the GitHub repository oscal-compass-lab/compliance-trestle-skills (16 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 94 tokens to every session and 790 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.