Skip to content
ccmods.app

rule-fairy

v0.3.0

Injects matching .cursor/rules into Claude's context on prompt keywords, file edits and shell writes, and re-injects them after compaction.

by @Cyrik2Updated Broad accessGitHub

Installation

  1. Install from your shell (answer y to add the marketplace)

    $ claude plugin install rule-fairy --marketplace Cyrik/rule-fairy

Already in a session? Type this at the Claude Code prompt:

$ /plugin install rule-fairy --marketplace Cyrik/rule-fairy

Pick a scope and the mod is active right away. Needs Claude Code 2.1.287 or later, in a terminal. Full install guide

What does rule-fairy do?

  • Reads rules from .cursor/rules/**/*.mdc (or configured directories) and injects alwaysApply and keyword-matched rules with the prompt
  • Delivers rules whose globs match a file with the result of an Edit, Write, MultiEdit, NotebookEdit or MCP edit
  • After Bash commands, asks git which files changed and injects the matching rules
  • Heading-level doc imports (@doc/guide.md#section) and re-injection after /compact
  • /rule-fairy:review and /rule-fairy:review-plan check a diff or plan against the applicable rules

What do you need?

  • Claude Code 2.1.287 or later (terminal)
  • Babashka (bb) on PATH
  • GitHub CLI (gh), logged in, for reviewing pull requests

What can this mod access?

Read from the mod's code with claude plugin validate on Claude Code 2.1.296, synced Oct 12, 2026. This is a capability list, not a security audit. Mods run with your permissions, so install only from authors you trust.

Broad access
  • Runs programs on your machine
  • Intercepts or rewrites tool calls
  • Reads or rewrites your prompts
  • Reads your conversation
Hooks and engine calls (3 + 6)

hooks

  • prompt.submit
  • tool.call{tool=/"^(Edit|Write|MultiEdit|NotebookEdit)$|^mcp__.*(edit|write|patch)"/}
  • tool.call{tool=Bash}

calls

  • $.process.run
  • $.session.cwd
  • $.session.id
  • $.session.messages
  • $.session.root
  • $.ui.log

How do you uninstall rule-fairy?

$ claude plugin uninstall rule-fairy

To switch it off without removing it, use claude plugin disable with the same name.

Do you maintain rule-fairy?

Add this badge to your README so users can jump to this page for the install command and access report.

Listed on ccmods.app
[![Listed on ccmods.app](https://ccmods.app/badge.svg)](https://ccmods.app/mods/rule-fairy)

counterparts

mlapeter/counterparts

3

Local memory for Claude that writes, fades and recalls its own notes, with a sidebar pane showing what memory surfaced each turn.

UIPromptToolsBroad access
$ claude plugin install counterparts --marketplace mlapeter/counterparts

constellation

ShiftinBits/constellation-claude

2

Connects Claude Code to Constellation's code graph: impact, dependency and dead-code commands, a /constellation pane and search nudges.

UIPromptToolsBroad access
$ claude plugin install constellation --marketplace ShiftinBits/constellation-claude

silica-core

kiycoh/silica-core

67

Indexes the code, markdown and PDFs in a folder locally and nudges Claude to search them with silica_search before grepping.

UIPromptCommandsBroad access
$ claude plugin install silica-core --marketplace kiycoh/silica-core