← Back to Leaderboard
PrealfastAI

realfastAI/principles

A Ruby CLI that maps coding-agent rules and detects drift across files

View on GitHub ↗
Engineering Health (Methodology)
B+ · 74/100
Maintenance Activity
● Updated yesterday
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption8/25
Release Cadence11/20
License Clarity20/20
CLI
Total Stars
★ 42
24h Growth
+1
7d Growth
+8
Forks
3

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

realfastAI/principles Star History (2026-11-19 - 2026-12-04) DAILY STAR HISTORY (16-DAY D1 TELEMETRY) +41 in 15d · avg +3/day 46 23 0 2026-11-19: ★ 12026-11-20: ★ 92026-11-21: ★ 242026-11-22: ★ 242026-11-23: ★ 242026-11-24: ★ 262026-11-25: ★ 302026-11-26: ★ 302026-11-27: ★ 342026-11-28: ★ 412026-11-29: ★ 412026-11-30: ★ 412026-12-01: ★ 412026-12-02: ★ 412026-12-03: ★ 412026-12-04: ★ 42 ★ 42 11-19 11-26 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Policy mapping: Each member links an operating principle to a guidance file and records that location’s role.
Change detection: list-member-problems --short surfaces mapped locations changed since their last audit in a hook-friendly format.
Audit evidence: start-audit brings related passages into one review, and the CLI checks that cited passages exist.
Versioned state: .principles/ stores maps and audits alongside code; --project PATH selects an independent project root.
Integration boundary: Claude Code has a plugin and hook workflow; Codex can use the shared CLI, but its generated hooks are untested in a real session.
Best For

Teams sharing a coding-agent setup whose operating rules span several guidance files, skills, subagents, and hooks and need a reviewable audit trail.

Skip If

One guidance file is enough, you need a deterministic enforcement gate, or your client requires a native MCP server rather than a shell CLI.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
principles list-member-problems --short

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
principles ★42+8RubyApache-2.0A Ruby CLI that maps coding-agent rules and detects drift across files
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis
skills338.7k+4.4kShellMITComposable Markdown skills that bring engineering workflows to coding agents
superpowers332.4k+4.2kShellMITA 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/realfastAI/principles.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

realfastAI/principles Star History on RepoForAI

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?

In Claude Code, install the plugin and start with /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?

The CLI needs Ruby 3.4, reads project guidance and audit state, and does not call a model. It adds no GPU or VRAM requirement of its own. The agent that reads the passages and makes the audit judgments has separate resource or API costs, which depend on its model and the volume of material it reviews.

Can we run it internally or redistribute it commercially?

Yes. Apache-2.0 permits internal commercial use and redistribution subject to its terms. Teams can run the CLI locally without hosting a separate service. When redistributing, retain the license and applicable NOTICE attributions. The connected agent and any model provider remain subject to their own terms.

When is it better than manual review or a conventional linter?

Choose it when the same policy spans several files and reviewers need to see those passages together, record a judgment, and track unresolved findings. Manual review is simpler for a single guidance file. A linter or CI check is still the better fit when compliance can be expressed as a deterministic rule that must block a change.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining realfastAI/principles? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature realfastAI/principles on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare