inbuilt-aura

Rulekeep — AI skill for Claude Code

AI community

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

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