Code Auditor Mcp
Description
Architectural invariants and code quality analysis, enforced inside your AI agent's edit loop. MCP server + CLI + Claude Code plugin. TypeScript, JavaScript, Go.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Code Auditor
Architectural invariants enforced inside your AI agent's edit loop. When the agent writes code that breaks a project rule, Code Auditor catches it and blocks the edit. The agent sees the rule's message and fixes itself.
Install
npm install -g code-auditor-mcp
code-audit install --agent all
Two commands to install everywhere. `code-audit install --agent all` copies the skill to every AI coding tool on your machine. Use `--agent` for specific tools.
What you get per tool: the skill (SKILL.md), MCP server access, and hook wiring where the tool supports it (blocking on Claude Code and Codex, advisory on Cursor).
code-audit install --list # see the support matrix
Claude Code users can also install via plugin:
claude plugin marketplace add BenAHammond/code-auditor-mcp
claude plugin install code-auditor
The hook auto-installs the auditor on first use via npx.
Prompt examples
**"Index the codebase and run a full audit. Create tasks from any violations."**
**"Create a `.codeauditor.json` that bans lodash imports and prevents `src/languages/` from importing anything in `src/analyzers/`."**
**"Run a full code audit and create tasks from the violations."**
**"Sync the code index and audit only what changed vs main."**
**"Add an ast-pattern rule that blocks `new Function(...)`."**
**"Add a naming rule requiring hooks in `src/hooks/` to start with `use`."**
**"Add a call-constraint so `chargeCustomer()` in `src/services/payment.ts` can only be called from `src/api/`."**
Rule kinds
Five kinds. The agent writes them to `.codeauditor.json`. Bad configs fail the audit, not silently.
| Kind | What it blocks |
|---|---|
import-ban |
Banned module imports |
call-constraint |
Function calls from unauthorized files |
module-boundary |
Imports across module boundaries |
naming |
Exported symbols not matching a pattern |
ast-pattern |
AST nodes matching an ast-grep pattern |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI