Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Cyrikv0.4.1MITIn 1 marketplace
Repository rules and docs, delivered to your coding agent. Injects Cursor-style rules into Claude Code sessions by prompt keyword, edited path, or alwaysApply, with documentation imports and reinjection after compaction.
Claude hands work to one, or you mention it with @.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Repository rules and docs, delivered to your coding agent.
Rule Fairy is a plugin for Claude Code and Codex. It reads your project's Cursor rules and gives the agent the relevant instructions when you mention a topic or it edits a matching file. It also reviews code changes and plans against those rules.
.cursor/rules/ with Cursor, Claude Code
and Codex, or configure another directory.AGENTS.md, CLAUDE.md and related files.Install Babashka (bb) and make it available on the
PATH of the process that runs your agent.
Requires Claude Code 2.1.287 or later.
claude plugin marketplace add Cyrik/rule-fairy
claude plugin install rule-fairy@rule-fairy
Restart the session, or run /reload-plugins after installing from the shell.
codex plugin marketplace add Cyrik/rule-fairy
codex plugin add rule-fairy@rule-fairy
Restart the session to load the hooks.
For a local Claude Code install, use
claude plugin marketplace add ./rule-fairy in the directory containing the
checkout, then run the same install command above.
If the project registers its own rule-injection hooks in
.claude/settings.json or .codex/hooks.json, remove those registrations
to prevent duplicate injections. Keep unrelated hooks enabled.
For agents launched from an editor or app with a minimal PATH, the hooks
also look for bb in ~/.local/bin, /opt/homebrew/bin and /usr/local/bin.
Existing .cursor/rules/**/*.mdc files work without configuration. To try
keyword matching, create .cursor/rules/testing.mdc in your project:
---
description: Testing guidelines
promptAnyOf: test, testing
globs: test/**
alwaysApply: false
---
# Testing
When adding a regression test, make it fail for the bug it is meant to catch.
In a new session, ask:
Explain how you would test a bug fix in this project. Do not change any files.
Rule Fairy adds the rule to the agent's context with this marker:
[rule-fairy injected: testing.mdc]
You can ask the agent which rule it received. Editing a file under test/
also selects this rule. Choose a glob that matches your project's test
directory. Use alwaysApply: true for instructions that apply to every task.
A rule can include documentation too. If your project has a
docs/testing.md file with a Regression tests heading, add this line to
the rule body:
@docs/testing.md#regression-tests
Only that section and its subsections are included. See Writing rules for the full format, keyword conditions and ways to omit text from imported documents.
Ask your agent:
Review my uncommitted changes against our project rules.
Or name a plan file:
Review docs/plans/search.md against our project rules.
You can also invoke the skills explicitly:
| Task | Claude Code | Codex |
|---|---|---|
| Review code changes | /rule-fairy:review | $review |
| Review a plan | /rule-fairy:review-plan | $review-plan |
The code review accepts uncommitted changes, a branch against its base, or
a pull request. Pull request review also requires the
GitHub CLI (gh), logged in.
Both skills report violations supported by an explicit project rule, with the rule quoted. They do not replace general bug review or tests. They do not edit your code or plan, commit, or post findings to GitHub.
To include this check in your own review skill, see Using the review from another skill.
No configuration file is needed for existing Cursor rules. Put overrides
in rule-fairy.edn at the project root.
To read rules from another directory as well:
{:rules {:dirs [".cursor/rules" "docs/rules"]}}
Shell commands can edit files without an Edit or Write tool call. Rule Fairy can check for those changes after each command and deliver the matching rules for the agent's next pass. This check is on by default for Claude Code and off for Codex. To enable it for both:
npx claudepluginhub cyrik/rule-fairy --plugin rule-fairyBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground