Skip to main content

AI instruction diagnostics for coding agents

Project description

Reporails CLI

AI Instruction Diagnostics for coding agents. Validates the entire agentic instruction system against 90+ rules.

Beta — first 100 users free. Moving fast, feedback welcome.

Quick Start (No install)

npx @reporails/cli check
# or
uvx --from reporails-cli ails check

Install

npm install -g @reporails/cli
# or
pip install reporails-cli

Then just:

ails check
Reporails — Diagnostics

  ┌─ Main (1)
  │ CLAUDE.md  4 dir / 3 con · 73% prose
  │   ⚠       Missing tech stack declaration  CORE:C:0034
  │   ⚠       Missing testing documentation  CORE:C:0005
  │     2 brief · 2 orphan
  │
  └─ 10 findings

  ── Summary ──────────────────────────────────────────────

  Score: 7.4 / 10  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░  (1.2s)
  Agent: Claude

  Scope:
    capabilities: 1 main
    instructions: 4 directive / 11 prose (73%)
                  3 constraint

  10 findings · 8 warnings · 2 info
  Compliance: HIGH

Fix the issues, run again, watch your score improve.

Authentication

Offline diagnostics work without an account. For server-enhanced diagnostics (cross-file analysis, compliance scoring), sign up for the beta:

ails auth login       # GitHub Device Flow — authorize in browser
ails auth status      # Check current auth state
ails auth logout      # Remove stored credentials

Commands

ails check                       # Validate instruction files
ails check -f json               # JSON output
ails check -f github             # GitHub Actions annotations
ails check --strict              # Exit 1 on any finding
ails check --agent claude        # Agent-specific rules only
ails check --exclude-dirs vendor # Exclude directory from scanning
ails check -v                    # Verbose: all findings with rule IDs

ails explain CORE:S:0001         # Explain a specific rule
ails heal                        # Auto-fix common violations
ails install                     # Install MCP server for detected agents
ails version                     # Show version info

Exit codes

Code Meaning
0 Success
1 Findings found (strict mode)
2 Invalid input (bad path, unknown agent/format/rule)

Supported Agents

Agent Instruction files
Claude CLAUDE.md, .claude/rules/*.md, .claude/skills/*/SKILL.md
Codex AGENTS.md, CODEX.md, agents/*.md
Copilot .github/copilot-instructions.md
Gemini GEMINI.md, .gemini/rules/*.md
Cursor .cursorrules, .cursor/rules/*.md

The CLI auto-detects which agents are present in your project.

Configuration

Project config in .ails/config.yml:

default_agent: claude          # Default agent (run: ails config set default_agent claude)
exclude_dirs: [vendor, dist]   # Directories to skip
disabled_rules: [CORE:C:0010]  # Rules to disable

Set values via CLI: ails config set <key> <value>

Global defaults

Global config in ~/.reporails/config.yml applies to all projects. Project config overrides global.

ails config set --global default_agent claude

GitHub Actions

Add ails check as a CI gate with inline PR annotations:

name: Reporails
on:
  pull_request:
    paths: ['CLAUDE.md', '.claude/**', 'AGENTS.md', '.cursorrules']
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: reporails/cli/action
        with:
          strict: "true"

Or without the action:

      - run: pip install reporails-cli && ails check . --format github --strict

What It Checks

90+ rules across five categories:

  • Structure — File organization, discoverability, size limits, modularity
  • Content — Clarity, specificity, reinforcement patterns, tech stack, domain terminology
  • Efficiency — Token usage, instruction elaboration, formatting
  • Maintenance — Versioning, review processes
  • Governance — Security policies, credential protection, permissions

Offline vs Authenticated

Feature Offline Authenticated
Mechanical checks 70+ rules 70+ rules
Content-quality checks 25+ rules 25+ rules
Cross-file analysis Conflicts, repetition
Compliance scoring Per-instruction strength

Performance

The embedding model is bundled in the wheel. First run may download the spaCy language model (~13 MB). Subsequent runs complete in under 2 seconds for typical projects.

License

BUSL 1.1 — converts to Apache 2.0 three years after each release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reporails_cli-0.5.1.tar.gz (542.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reporails_cli-0.5.1-py3-none-any.whl (83.5 MB view details)

Uploaded Python 3

File details

Details for the file reporails_cli-0.5.1.tar.gz.

File metadata

  • Download URL: reporails_cli-0.5.1.tar.gz
  • Upload date:
  • Size: 542.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for reporails_cli-0.5.1.tar.gz
Algorithm Hash digest
SHA256 bd7940e5b2bed5233128c8a5fb399af102e24b0889c05b2424813b8ca00622de
MD5 68e5ed76b72dca211bb0e8ef32aac22e
BLAKE2b-256 d7194ebf90d409b10b5f23bde9d6389c7d808d3ff8b18fa99b1c74f8aca131c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for reporails_cli-0.5.1.tar.gz:

Publisher: release.yml on reporails/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reporails_cli-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: reporails_cli-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 83.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for reporails_cli-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0440b3f739ff17979a7f2316cf9a8f7701df9ea12e6288bc39ebb65e89e25c3c
MD5 505e91ac0cbd698a107af4fb4ba014fd
BLAKE2b-256 6ed6ba8a1d71d51ce537abc7561cc86914a6d1f8ac469ca7b6f2441d8c979134

See more details on using hashes here.

Provenance

The following attestation bundles were made for reporails_cli-0.5.1-py3-none-any.whl:

Publisher: release.yml on reporails/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page