Validate and score CLAUDE.md files — MCP-first AI context governance
Project description
Reporails CLI
Score your CLAUDE.md files. See what's missing. Improve your AI coding setup. Why this exists
Pre-1.0 — moving fast, API still evolving, feedback welcome.
Quick Start
One-line install (npm)
npx @reporails/cli install
This registers the MCP server with Claude Code. Then ask Claude: What ails claude?
MCP Integration (manual)
For full semantic analysis, add the MCP server:
# Add the MCP and restart Claude
claude mcp add reporails -- uvx --refresh --from reporails-cli ails-mcp
Then ask Claude:
❯ What ails claude?
CLI path (only deterministic rules)
# No install needed — run directly
uvx reporails-cli check
# or
npx @reporails/cli check
That's it. You'll get a score, capability level, and actionable violations.
╔══════════════════════════════════════════════════════════════╗
║ SCORE: 8.1 / 10 (partial) | CAPABILITY: Governed (L5) ║
║ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░ ║
╚══════════════════════════════════════════════════════════════╝
Violations:
CLAUDE.md (7 issues)
○ MED C4.no-antipatterns :1 No NEVER or AVOID statements found
· LOW C12.no-version :1 No version or date marker found
...
Fix the issues, run again, watch your score and your experience improve.
Install
# Ephemeral (no install, always latest)
uvx reporails-cli check
npx @reporails/cli check
# Persistent (adds `ails` to PATH)
pip install reporails-cli
# or
npm install -g @reporails/cli
Once installed, all commands use ails directly.
What It Checks
- Structure — File organization, size limits
- Content — Clarity, completeness, anti-patterns
- Efficiency — Token usage, context management
- Maintenance — Versioning, review processes
- Governance — Ownership, security policies
Capability Levels
| Level | Name | What it means |
|---|---|---|
| L1 | Absent | No instruction file |
| L2 | Basic | Has CLAUDE.md |
| L3 | Structured | Sections, imports |
| L4 | Abstracted | .claude/rules/ directory |
| L5 | Governed | Shared files, 3+ components |
| L6 | Adaptive | Backbone + full governance |
Commands
ails check # Score your setup
ails check -f json # JSON output (for CI)
ails check --strict # Exit 1 if violations (for CI)
ails explain S1 # Explain a rule
ails map # Show project structure
ails map --save # Generate backbone.yml
ails update # Update rules framework
ails update --cli # Upgrade the CLI package itself
ails update --check # Check for updates
ails dismiss C6 # Dismiss a semantic finding
ails version # Show version info
Updating
ails update # Update rules framework to latest
ails update --cli # Upgrade the CLI package itself
ails update --check # Check for updates without installing
Ephemeral runners (uvx, npx) always use the latest CLI version automatically.
Recommended Rules
Recommended rules (AILS_ namespace) are included by default and auto-downloaded on first run. To opt out, add to your .reporails/config.yml:
recommended: false
To force re-fetch the latest recommended rules:
ails update --recommended
Prerequisites
Depends on your install path:
- uvx/pip path: uv — no separate Python install needed
- npx/npm path: Node.js >= 18 — uv is auto-installed if missing
- MCP install/uninstall: Claude Code
Rules
Core rules are maintained at reporails/rules. Recommended rules at reporails/recommended.
Want to add or improve rules? Please follow Contribute guide in the Core repo.
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reporails_cli-0.1.4.tar.gz.
File metadata
- Download URL: reporails_cli-0.1.4.tar.gz
- Upload date:
- Size: 199.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68299de0563015477fee6b93b5a35e350bf06190336eaac30fb04a7a1463c3b7
|
|
| MD5 |
dfb20d5919925d22dce5bfaad6e72f9e
|
|
| BLAKE2b-256 |
4e2c42a874979eabc64b4002642cb9ecfe0033b0e928ae77837114b7c5a99c0a
|
Provenance
The following attestation bundles were made for reporails_cli-0.1.4.tar.gz:
Publisher:
release.yml on reporails/cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reporails_cli-0.1.4.tar.gz -
Subject digest:
68299de0563015477fee6b93b5a35e350bf06190336eaac30fb04a7a1463c3b7 - Sigstore transparency entry: 913286725
- Sigstore integration time:
-
Permalink:
reporails/cli@47617c264da06a27cecfa9533fb2b3cf8c5ae8cd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/reporails
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@47617c264da06a27cecfa9533fb2b3cf8c5ae8cd -
Trigger Event:
push
-
Statement type:
File details
Details for the file reporails_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: reporails_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 86.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84c2aca4a028ab1827951f55f7a68876dc31ca574d3dc7591f1812dea74079cc
|
|
| MD5 |
a8f3e969505422aafe161e7d178653a2
|
|
| BLAKE2b-256 |
09721d57034473776ef59d1ff88281ab8b580be03d230b73d317905aab2a1362
|
Provenance
The following attestation bundles were made for reporails_cli-0.1.4-py3-none-any.whl:
Publisher:
release.yml on reporails/cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reporails_cli-0.1.4-py3-none-any.whl -
Subject digest:
84c2aca4a028ab1827951f55f7a68876dc31ca574d3dc7591f1812dea74079cc - Sigstore transparency entry: 913286801
- Sigstore integration time:
-
Permalink:
reporails/cli@47617c264da06a27cecfa9533fb2b3cf8c5ae8cd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/reporails
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@47617c264da06a27cecfa9533fb2b3cf8c5ae8cd -
Trigger Event:
push
-
Statement type: