Lint 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.
Quick Start
# Check your setup (auto-installs OpenGrep + rules on first run)
uvx reporails-cli check .
That's it. You'll see:
╔══════════════════════════════════════════════════════════════╗
║ 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 improve.
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 |
MCP Integration (for Claude Code)
For full semantic analysis, add the MCP server:
claude mcp add reporails -- uvx reporails-cli ails-mcp
Then ask Claude: "What ails claude?"
Commands
ails check . # Score your setup
ails check . -f json # JSON output (for CI)
ails check . --strict # Exit 1 if violations (for CI)
ails map . # Show project structure
ails map . --save # Generate backbone.yml
ails explain S1 # Explain a rule
Rules
Rules are maintained separately at reporails/rules.
Want to add or improve rules? Contribute there.
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.0.2.tar.gz.
File metadata
- Download URL: reporails_cli-0.0.2.tar.gz
- Upload date:
- Size: 161.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb7c2e1b735b017eefada2501a9434b8cc79f4eb1fbcd79f1c1a449255ab1ca
|
|
| MD5 |
b89c8e639bd329efa65ba86d22e53206
|
|
| BLAKE2b-256 |
617384bdd310515f4f8f84fa94c4a6d1048dbeff4a9ce4921cb50096699ffac4
|
File details
Details for the file reporails_cli-0.0.2-py3-none-any.whl.
File metadata
- Download URL: reporails_cli-0.0.2-py3-none-any.whl
- Upload date:
- Size: 71.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82581d8c31e9faf9fb0421962e3540213dc6e703f05b40e6133065cbcefbcc48
|
|
| MD5 |
7f0183afdaff211a0f354d525be29442
|
|
| BLAKE2b-256 |
398584e5b2105cceca18d8681658e7404179bc48837400883338d3d079ff3d0f
|