realfastAI/principles
A Ruby CLI that maps coding-agent rules and detects drift across files
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
principles is a Ruby 3.4 CLI with a Claude Code plugin. It separates bookkeeping from judgment: the CLI maintains a map from each operating principle to the files or passages that express or enforce it, while the coding agent interprets those passages. The agent starts with principles list-principles, surveys candidate files, and registers members with commands such as add-member, which can identify a section and describe its role.
The main workflow passes structured JSON with next-step instructions back to the agent; list-member-problems --short provides compact output for hooks. Maps and audit records live in a project-root .principles/ directory and can be committed to Git. The CLI checks that cited passages exist but neither calls a model nor edits the harness. Its integration surface is shell commands and plugin hooks, not an established MCP server endpoint.
Key Capabilities & Differentiators
The workflow handles guidance spread across CLAUDE.md, AGENTS.md, rules, skills, subagents, and hooks. list-member-problems --short identifies mapped locations changed since their last audit. start-audit presents the related material together; submit-answer REQUEST_ID --file answer.json records the agent’s judgment. A change that preserves meaning can be acknowledged without a full review, while unresolved findings can be tracked with list-open-findings.
Audits can also surface duplicate instructions or guidance loaded in every session even though it applies to only one kind of task. Context-loading estimates are specific to Claude Code. The tool does not choose a model backend or fix contradictions automatically: the agent evaluates the evidence, and the tracked record distinguishes completed fixes from issues still awaiting action.
Trade-offs & Limitations
Compared with reviewing a single CLAUDE.md or AGENTS.md by hand, principles adds mapping and audit maintenance. That cost is justified when a policy spans several guidance layers and individual diffs do not show whether the whole policy still agrees. Compared with a rule-based linter or a mandatory CI check, it can bring semantically related prose into one review, but it does not provide deterministic enforcement.
Change detection covers mapped locations, so incomplete maps will leave gaps. Citation validation confirms that a passage exists, not that the agent read it correctly. Keep hard requirements such as blocking commits on failed tests in deterministic gates; use principles to keep the instructions that describe those requirements aligned. Versioned records make findings reviewable, but the team still has to maintain mappings and act on open findings.
Hardware & Deployment Guide
For Claude Code, add the realfastAI/principles marketplace, install principles@realfastai, reload plugins, and run /principles:principles. The plugin adds reporting at session start and after commits, plus a setup-ruby skill that asks before proceeding when Ruby 3.4 is missing. For terminal use, install with gem install principles; the CLI can locate an rbenv-managed Ruby 3.4 even when PATH points to another version.
Use --project PATH to keep independent projects in a monorepo separate and commit each project’s .principles/ records with its code. Codex works through the shell CLI; show-hook-setup generates Codex hook entries, but those entries have not been tried in a real Codex session, and native Codex skills are not yet built. Pi support is planned, and no GitHub release is listed. The CLI needs no model service of its own; network and compute requirements for agent-led audits depend on the host agent.
list-member-problems --short surfaces mapped locations changed since their last audit in a hook-friendly format.start-audit brings related passages into one review, and the CLI checks that cited passages exist..principles/ stores maps and audits alongside code; --project PATH selects an independent project root.Teams sharing a coding-agent setup whose operating rules span several guidance files, skills, subagents, and hooks and need a reviewable audit trail.
One guidance file is enough, you need a deterministic enforcement gate, or your client requires a native MCP server rather than a shell CLI.
Quick Start & Installation
principles list-member-problems --shortComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| principles ★ | 42 | +8 | Ruby | Apache-2.0 | A Ruby CLI that maps coding-agent rules and detects drift across files |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| skills | 338.7k | +4.4k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
| superpowers | 332.4k | +4.2k | Shell | MIT | A skills framework that gives coding agents a test-first development workflow |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/realfastAI/principles.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about principles
How do Claude Code and Codex integrate with principles?
/principles:principles. In Codex, have the agent invoke the Ruby CLI from a shell and work from its JSON results. Both can use the same .principles/ records. The integration described here is CLI- and hook-based; no native MCP server endpoint is established.Does it need a GPU, and where does the runtime overhead come from?
Can we run it internally or redistribute it commercially?
When is it better than manual review or a conventional linter?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy