# Govern

> Govern is an open-source agent skill for developer tools. Shows an agent's governed state: active rules, memory by kind, and pending proposals. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/govern
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** govern
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives the agent a read-only view of what the mokata system is currently governing. It covers the always-on rules tier, which combines rules and guardrails under a budget cap, memory grouped by kind, the read/write ratio, and any self-healing proposals still waiting on a decision.

The agent calls a govern tool from the mokata MCP server when available, which writes a self-contained HTML dashboard and returns its path with summary counts. If the tool is missing, the skill falls back to a mokata command-line invocation that produces the same view. The dashboard uses inline styling with no network access or server.

Using it requires the mokata engine, either through the MCP server or a mokata CLI on the path. Changes are not made from the view; any edit to a memory item goes through the gated memory edit command the skill points to, and durable writes need explicit human approval.

## When your agent uses it

> mokata · See the governed state — rules, memory-by-kind, read/write ratio, pending proposals (read-only).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/govern)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/govern)

## Features

- **Rules tier overview:** Displays the active rules and guardrails that the always-on tier is enforcing, within its budget cap.
- **Memory grouped by kind:** Lists stored memory organized by category so the user can see what mokata is remembering.
- **Read/write ratio:** Reports how often governed memory is read compared with written.
- **Pending proposals:** Surfaces self-healing proposals that need a human decision before anything changes.
- **Read-only dashboard:** Renders a standalone HTML view without writing or editing governed state.
- **Recovery guidance:** Points to commands for checking a stuck run, pending approvals and hung MCP servers.

## Good for

- Show me which rules mokata is currently enforcing
- What pending self-healing proposals need my review?
- Summarize the memory items stored by kind
- Check the read/write ratio before a governance decision
- Open the governance dashboard for this project

## Install

### Claude Code

This skill ships in the `mokata` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/govern`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/govern &&
cp -R "$tmp/src/mokata/skills/govern" ~/.claude/skills/govern &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/govern` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/govern` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/govern &&
cp -R "$tmp/src/mokata/skills/govern" ~/.agents/skills/govern &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/govern` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/govern` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/govern &&
cp -R "$tmp/src/mokata/skills/govern" ~/.cursor/skills/govern &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/govern` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/govern
```

Or copy the folder to `~/.gemini/skills/govern` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/govern`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/govern &&
cp -R "$tmp/src/mokata/skills/govern" ~/.copilot/skills/govern &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/govern` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/govern` into your agent's skills folder as `govern`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Can Govern change a rule or memory item?

No. The view is read-only. Edits go through the gated mokata memory edit path that the skill surfaces, and that path requires human approval.

### What does the skill need to run?

It prefers the govern tool on the mokata MCP server. If that is absent, it falls back to the mokata CLI, resolved from the plugin root or a mokata command on the PATH.

### When does the skill trigger?

When the user wants to see the governed state, asks what mokata is enforcing or remembering, or is reviewing governance before a decision. It does not trigger to change rules or run a pipeline phase.

### Where is the dashboard written?

The CLI and MCP tool write the governance HTML under the gitignored .mokata/temp_local/ directory, and the path is returned to the user.

### How do I install Govern in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/govern to use it in all your projects, or to .claude/skills/govern in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Govern run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Govern?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Govern?

The closest alternatives to Govern are Onboard, Repository governance lifecycle, Build governance agent, Codebase memory MCP and Merrymen monitor.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Onboard](https://ai-powered.com/skills/onboard-jasgujral): Onboard is an open-source agent skill for developer tools.
- [Repository governance lifecycle](https://ai-powered.com/skills/repository-governance-lifecycle): Repository governance lifecycle is an open-source agent skill for developer tools.
- [Build governance agent](https://ai-powered.com/skills/build-governance-agent): Build governance agent is an open-source agent skill for developer tools.
- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Merrymen monitor](https://ai-powered.com/skills/merrymen-monitor): Merrymen monitor is an open-source agent skill for developer tools.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.
- [Failure codifier](https://ai-powered.com/skills/failure-codifier-chachamaru127): Failure codifier is an open-source agent skill for developer tools.
- [Docs governance](https://ai-powered.com/skills/docs-governance): Docs governance is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/govern-jasgujral
