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
- n8n Node Configuration — Node configuration with dependency rules and AI connections 3.6k ★
- Agent Rules Books — AGENTS.md rules / skills for AI coding agents: Codex, Cursor & Claude Code 2.6k ★
- PRD: Agent Builder — Create Your Own Sub-Agent — Your ecosystem, your rules 1.9k ★
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
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.
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.
Writing Style Skill
Writing style skill template with built-in auto-learning. AI writes → you edit → rules auto-extracted → SKILL.
Payo
Generate project-tailored AI assistant rules & skills (CLAUDE.md, .cursorrules, Copilot instructions, AGENTS.m
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
Architecture Verify
Architecture verification specialist. Use to verify dependency rules and pattern conformance. Works with depen