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 realfastAIv0.1.7Apache-2.0In 1 marketplace
Maps every file that carries one of your project's principles, from CLAUDE.md to hooks, and catches where they drift apart. The agent settles conflicts and the CLI keeps the record, but the gem needs Ruby 3.4.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
principles-drift, claude-md, agents-md, instruction-files, rules-audit, self-audit, instructions, audit ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Tighter harness, longer running agents: trust the principles, loosen the supervision.
Every time your agent goes off the rails, you add a line somewhere. A rule in CLAUDE.md. A note in a skill. A check in a hook. A few days in, the same rule lives in five places, worded five slightly different ways, and nobody, not you and not your agent, knows which one wins.
So you're forced to always watch your agent, because you can't trust it. That's harness drift.
https://github.com/user-attachments/assets/8bd9d6cb-893e-4422-86f0-ecad91af5aa9
principles gives your agent a map of every place each of its operating principles lives: CLAUDE.md and AGENTS.md, rule files, skills, subagents and hooks. When any of those places changes, it tells your agent which principle is affected and has it read them together, settle what disagrees and record the result. The CLI keeps the books; your agent does the judging. You do less babysitting.
You'll get the most from it when:
CLAUDE.md/AGENTS.md, rules, skills, subagents, hooks and all the rest of the context management vectors a harness provides.If your project has a single CLAUDE.md or AGENTS.md at its root, principles is overkill. You can read that one file and keep it consistent yourself. Come back when your rules start to spread.
Here is one of realfast's projects, where an agent answers which principles are in place, how many places carry each, and which findings are still open:

Claude Code is fully supported. Codex is mostly supported and Pi is coming soon.
In Claude Code, add this repository as a plugin marketplace, install the plugin, reload your plugins, and start:
/plugin marketplace add realfastAI/principles
/plugin install principles@realfastai
/reload-plugins
/principles:principles
/principles:principles starts your agent mapping your project's principles. From there it follows what each result tells it, so you never need to learn the commands. The plugin also adds hooks that report which mapped places changed as each session starts and after each commit, and a setup-ruby skill your agent follows, asking you first, when no Ruby 3.4 is found.
From a terminal, or for another harness, install the gem instead. In Claude Code, the ! prefix runs a shell command in your session:
! gem install principles
Then ask your agent to map your project's principles. It runs principles list-principles and follows what each result tells it, so you never need to learn the commands. principles needs Ruby 3.4, and finds one installed by rbenv when the Ruby on your PATH is another version.
Your agent works the way its harness tells it to: CLAUDE.md files, rules, skills, subagents, hooks and the scripts they call. A team's operating principles, such as test first or never commit on a red build, each end up written in several of those files.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub realfastai/principles --plugin principles