gouvernai

gouvernai is a skill for Claude Code from Myr-Aya/GouvernAI-claude-code-plugin. It costs 71 tokens per session (2,289 once invoked), scanned B, original, MIT.

A safety and approval system for Claude Code actions. It classifies sensitive work such as file changes, shell commands, API calls, credential access, package installation, and irreversible operations by risk level.

In plain words
What is it for?
Use it to control and log routine and sensitive actions, apply stricter checks to bulk or unfamiliar operations, block credential exposure and dangerous commands, and inspect guardrail session statistics.
Why use it?
It helps prevent unsafe or accidental actions and records an audit trail of what the assistant does. Some high-risk actions are stopped until approval is given.

Skill for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the gouvernai plugin — 1 skill, 1 command, 1 hook shipped together

Good fit Use it to control and log routine and sensitive actions, apply stricter checks to bulk or unfamiliar operations, block credential exposure and dangerous commands, and inspect guardrail session statistics.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Myr-Aya/GouvernAI-claude-code-plugin
Claude Code
/plugin install gouvernai

Made for: Claude Code.

Or install gouvernai, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 hook.

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 gouvernai

README.md
[![agentmods](https://agentmods.dev/badge/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai/github.svg)](https://agentmods.dev/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai)
Your own site
<a href="https://agentmods.dev/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai"><img src="https://agentmods.dev/badge/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai/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 gouvernai

Your own site · 80×15
<a href="https://agentmods.dev/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai"><img src="https://agentmods.dev/badge/skills/myr-aya/gouvernai-claude-code-plugin/gouvernai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00071 $0.02289
Opus 5 $0.00036 $0.01144
Sonnet 5 $0.00014 $0.00458
Haiku 4.5 $0.00007 $0.00229

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

Security

Grade B, and why

gouvernai scanned grade B with 2 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 11d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

**Variable staging then transmission:** A command stores sensitive data in a variable (e.g. `SECRET=$(cat .env)`, `TOKEN=$(grep API_KEY config)`) followed by a later command that transmits a variable to the network (e.g.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Send email, modify config, delete files, curl, npm install | 🛡️ T3 — pause, require approval, log |
gouvernai/skills/gouvernai/SKILL.md · 160 lines

How it starts

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

🛡️ GouvernAI

Runtime guardrails for AI agents. Classifies every sensitive action by risk tier, enforces proportional controls, and logs a full audit trail.

Dual enforcement: This skill provides probabilistic classification (you read and follow these instructions). Hard constraints are also enforced deterministically via PreToolUse hooks — obfuscated commands, credential exposure, and dangerous system commands are blocked programmatically even if you skip the skill.

Quick reference

Situation Action
Read file, git status, draft message Auto-approved — zero gate, zero overhead
Write to user file, git commit 🛡️ T2 — auto-approved with notification, log
Send email, modify config, delete files, curl, npm install 🛡️ T3 — pause, require approval, log
sudo, credential transmit, purchase, public post 🛡️ T4 — full stop, warn, require approval, log
Credential transmission, obfuscated command 🛡️ BLOCKED — hard constraint, no override
Bulk operation (5+ targets) Escalate +1 tier
Unfamiliar endpoint or recipient Escalate +1 tier
User invokes /guardrails Show session stats

Reference files

Read these on demand — do NOT load them every session:

File Read when
GUIDE.md First gated action of the session
ACTIONS.md Classifying an action (Step 3)
TIERS.md Checking escalation rules or controls (Steps 4, 7)
POLICY.md Checking hard constraints or conflicts (Step 6)

All reference files are in the same directory as this SKILL.md.

When this skill does NOT activate

Do NOT run the gate for read-only or zero-side-effect actions:

  • Reading files, listing directories
  • Read-only CLI commands (ls, pwd, cat, git status, git log, git diff)
  • Writing to files in directories explicitly named scratch/, temp/, or tmp/ only
  • Drafting messages that are not sent
  • Navigating to known URLs (bookmarked, previously visited in session)
  • Checking whether a credential or env var exists (boolean check, no value exposed)
  • Reading existing cron or scheduling config
  • Reading from public APIs with no authentication
  • Writing to guardrails_log.md for guardrails logging purposes
  • Reading or writing guardrails-mode.json for mode persistence

Read the full file on GitHub · 160 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 160 lines · 71 tokens per session scan B 0e1ed419a75c

Subscribe to this mod's changes

gouvernai is a skill published in the GitHub repository Myr-Aya/GouvernAI-claude-code-plugin (23 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 2,289 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

researcher

Delegate a deep research or survey task to Google's Antigravity CLI (agy staffer, fast Gemini). Use when the user says /agy:researcher, "ask agy to research", "have the agy staffer survey X", or wants a second, independent deep-dive on a topic or codebase without spending the host model's quota.

keli-wen/agy-staff · 75 tokens

OCR Review-to-Approval Loop

Drive a PR to an approved code review by looping OCR's multi-agent review and address steps. Runs /ocr:review then /ocr:address repeatedly until the review verdict is APPROVE, then one final /ocr:address for leftover suggestions, posting every review and every address round to the GitHub PR as comments. Use when the…

spencermarx/open-code-review · 178 tokens

outsystems-mcp

You are connected to OutSystems over the MCP HTTP transport. OutSystems is a cloud-native low-code platform where apps are built from OML (OutSystems Model Language), a binary format describing entities, screens, actions, and logic. Every tool call carries the harness's validated OAuth bearer; tenant + user identity…

OutSystems/outsystems-mcp · 0 tokens

writing-javascript

How browser JavaScript is written in this repo — both surfaces now speak one modern dialect and this says what that means for the code you type, where ES modules are impossible and where they are merely unused, and how to pick a feature (Baseline plus a file:// gate). Covers functional idiom over imperative DOM work…

AleksandarBisevac/claude-plugins · 163 tokens

writing-python

How Python is written in this repo — free functions over classes, structured returns instead of mutated arguments, comprehensions, no module state, and the stdlib-only, annotation-free, Python 3.8 dialect the AST lints enforce. Covers modular structure and the import-layer rule, DRY without copying a helper into a…

AleksandarBisevac/claude-plugins · 161 tokens

cleanup

Clean up after a merged pull request — return to the base branch, remove the worktree, delete the branch, sweep other stale branches and worktrees, and report tracker state. Use after a merge or whenever asked what is left over.

mikestankavich/claude-ship-workflow · 0 tokens