Rulekeep — AI skill for Claude Code
Enforce your project's rules while an AI agent works — in Claude Code, and again in CI.
How to install Rulekeep
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open inbuilt-aura/rulekeep and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Rulekeep does
Enforce your project's rules while an AI agent works — in Claude Code, and again in CI.
Alternatives in AI
- LongHorizon Harness — The long-horizon computer-use harness 1.3k ★
- Academic Humanizer — Strip AI-writing tells from papers and grant proposals (NSF/NIH), while keeping scholarly voice and tying clai 1.1k ★
- AI Investigator — An automated AI system (Python framework) designed to analyze any type of website content and generate structu 733 ★
README
Rulekeep
**Your project's rules, enforced while the AI works.**
Rulekeep turns project conventions into checks that run while an AI coding agent works and again in CI. A broken rule is caught and explained in the moment, rather than waiting for review.
Today, rulekeep supports Claude Code. Codex and Gemini CLI adapters are planned but are not included yet.
# rulekeep.yaml
version: 1
rules:
- id: no-any
type: line
files: ['src/**/*.ts']
added: '(:\s*any\b|\bas\s+any\b)'
mode: block
message: Don't use `any`. Use `unknown` and narrow it.
you: "add a function that parses the API response"
agent: writes `const data = response as any;`
rulekeep: this edit breaks 1 rule.
no-any (block) src/parse.ts:2
const data = response as any;
Don't use `any`. Use `unknown` and narrow it.
Fix the edit, then continue.
agent: rewrites it as `const data: unknown = response;` — and continues
Status: public pre-release
The Claude Code plugin, hook wiring, CI command, trust flow, and six rule types are implemented and tested. The repository is public, but version `0.1.0` has not been published to npm yet.
The remaining release gate is sustained dogfooding on a real project and tuning false alarms ([`docs/04-build-plan.md`](./docs/04-build-plan.md) M4 step 7).
| Piece | State |
|---|---|
Rule engine (command, line, boundary, test-guard, prose) |
✅ Built |
checker rule type (running a real command like tsc) |
✅ Built |
rulekeep.yaml parser, with line-numbered errors |
✅ Built |
Overrides (rulekeep-ignore : ) |
✅ Built |
Claude Code hook wiring (hook claude-code ) |
✅ Built, contract-tested against real hook payloads |
Installable Claude Code plugin (plugins/claude-code/) |
✅ Built |
Skills (/rulekeep:setup, :trust, :explain) |
✅ Built |
Checker trust flow (rulekeep trust) |
✅ Built |
rulekeep check — the CI backstop |
✅ Built, drives real git diff |
Related Skills
Model Citizen
The control plane for your coding agents, however you run them. One checkout of rules, skills, subagents, hook
Claude Code Practices
Interactive AI installer for Claude Code: setup once, keep context across sessions, enforce critical rules wit
Agent Gates
Stop telling your AI agent the rules — enforce them. Hook-based commit gates for Claude Code.
TDHarness Coding
Self-hosted AI workbench for a company LAN. One command on a Windows server sets up login, roster, model gatew
Willow
Willow — a companion narrator that gives blind developers situational awareness while an AI coding agent (e.g.
Full Duplex Code
Talk to Claude Code while it works. A full-duplex voice companion powered by GPT Live 1.
Related Agents
Quality Enforcer
Code quality specialist enforcing formatting, linting, error handling, and documentation standards. Use PROACT
Lessons Learned
In this document we briefly collect what we have learned while developing and using Serena, what works well an
Grimorio.Delegate
Raise when one task needs an owner end to end while the caller does something else. Works to its checks and re