Rule Entropy — Testing skill for Claude Code
A self-testing rule router for AI agents — routes a query to relevant rules, with precision/recall receipts.
How to install Rule Entropy
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open gkw77/rule-entropy and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Rule Entropy does
A self-testing rule router for AI agents — routes a query to relevant rules, with precision/recall receipts.
Alternatives in Testing
- Claude Codepro — by Max Ritter - Professional development environment for Claude Code with spec-driven workflow, TDD enforcemen 1.6k ★
- TDD Skill — BitcoinAddressFinder — This skill documents test-driven development practices and refactoring patterns used in the BitcoinAddressFind 237 ★
- Cc10x — The Loop Engine for Claude Code — engineer the loop, not the prompt 163 ★
README
Rule Entropy: How many of your CLAUDE.md rules are just faith?
中文文档见 [README.zh.md](README.zh.md)
Every session your agent stuffs the entire CLAUDE.md / skills into context. Rules pile up, the agent gets dumber, and nobody knows which rule is actually helping vs. which is just "feels right" faith. The author turned the tool on his own rules: scanned 167 rule blocks - **87% are behavior rules with no metric, 12 claim metrics with zero receipt**. The tool is included; clone and run it on your own rules.
30 seconds: scan your own rules, see how many are "faith"
git clone https://github.com/gkw77/rule-entropy.git && cd rule-entropy
node reproducible/rule-evidence-audit.js corpus . # scan the repo's 13 rule snapshots, zero deps
node reproducible/rule-evidence-audit.js ~/.claude/rules "common,python" # scan your own rules
Each rule block gets an evidence verdict: `behavior_NA` (behavior rule, no metric) / `claimNoMetric` (claims a metric, zero receipt) / `faith` (claims and unmeasured) / `secondhand_needsRepro` (cites someone else's number, needs reproduction) / `selftested_partial` (has self-testing). Most of your blocks will land in the first two - that's rule entropy: unverified, it only grows.
What it does
- Routing - on a query, load only the relevant rules, not all of them. The author's own 13 rule files (~60KB) get auto-loaded in full every session by default; after routing, only the 1-3 relevant ones load. Fixes context bloat.
- Self-testing - routing accuracy has real P/R numbers, not "feels right". Rule corpus: L0 P=0.511 -> L1 P=0.648 -> strict-judge P=0.861; skill corpus: L0 P=0.30 -> L1 P=0.785 / R=1.0 (cross-language rescue). Routing rules are rules too - by "unverified rule = faith" they must be tested.
- Dedup - score skills + find semantic duplicates, flag redundancy to merge. Of 325 skills, 22 are redundant (should merge), 3 are broken (should delete).
All three come with receipts
Related Skills
QA Campaign
A gated, evidence-based pre-release QA campaign for any product you can drive and query — rules plus an Androi
Nexus Mod
All-in-one Claude Code mod: a live HUD, safety guards (command shield, secret masking, turn checkpoints with r
Kb Validate
Validate a ckb.json against the CKB spec (JSON Schema + semantic rules R1–R7) and report freshness and report
Auto Test
Auto-Testing Skill — PP Quality Gate. Detects the project type (Python/Node/Java/Mixed/Unknown) of the current
ShipGuard
Claude Code skills for automated E2E testing with agent-browser (Playwright CLI). Discover routes, generate YA
Performance Test
Run performance profiling and load testing using the performance-engineer agent — API response times, Node.js
Related Agents
Methodology Guide
Use proactively when a contributor asks "how do I..." about agentile workflow / rules / sprint planning / audi
Bully Scheduler
Background entropy agent. Runs bully-review against accumulated telemetry and opens a single, small PR retirin
Mnemos Recall
Recall the most relevant Mnemos context before substantial work. Use proactively at task start to surface dura