ioni-dev

Mati — Security skill for Claude Code

Security community

Your agent keeps 'fixing' the line that's deliberate.

How to install Mati

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ioni-dev/mati and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Mati does

Your agent keeps 'fixing' the line that's deliberate. mati denies the read or edit until it has read why: Claude Code reads and edits, Codex patch edits. Local Rust binary, no LLM, hash-chained audit log.

Alternatives in Security

  • Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★
  • Agent Retire — Gracefully retire an LLM agent from the workforce 83 ★
  • Fixing Accessibility — Audit a file or session for WCAG 2.1 AA accessibility violations — ARIA labels, keyboard navigation, focus man 34 ★

README

mati

Deterministic guardrails for AI coding agents.

There is a line in your codebase that looks like a mistake. It isn't. Someone wrote it that way on purpose, learned the hard way why it had to be that way, and never wrote the reason down. Then they left. Or they forgot. Or it was two years ago.

Now an AI agent opens the file. It sees the odd line. It "fixes" it. The old bug is back, and nobody remembers why it was a bug.

That is the ordinary tragedy of a codebase. Most of what a team knows about its own code lives where the code can't reach it: a Slack thread, a review comment, one person's head. Agents make it worse. They read fast, act faster, and start every session knowing none of it.

mati closes the gap. It attaches what your team knows to the files themselves and denies the agent's access until that knowledge has been read. The decision is made at the hook level, deterministically, outside the model's discretion, and every decision is recorded. It gates the paths it can see, which is not all of them: [What it doesn't catch](#what-it-doesnt-catch) has the numbers.

Coverage today: Claude Code gates file reads and edits (`Edit`/`Write`/`NotebookEdit`), Codex gates `apply_patch` edits, and both catch shell-command reads (`cat`, `grep`, and similar commands) on a best-effort basis.

Single Rust binary. MCP stdio server. Claude Code and Codex integration.

In Claude Code, add the plugin with `/plugin marketplace add ioni-dev/mati` and `/plugin install mati@mati`, then run `/mati:setup` in your project. It needs the `mati` binary; see [Quick start](#quick-start).

Compliance and audit exports live in the Enterprise tier ([getmati.dev](https://getmati.dev)).


Documentation is a suggestion

Suppose the knowledge does get written down. It still gets ignored. A comment, a CONTRIBUTING note, a wiki page nobody opens: an agent reads straight past it