Back to directory
reporails avatar
reporails / rules

rules

Evidence-backed rules for validating AI coding agent instructions. Core rules for structure, content, efficiency, governance, and maintenance.

11

Stars

0

Forks

1

Watchers

NOASSERTION

License

Reporails Rules

Validation rules for AI agent instruction files (CLAUDE.md, .cursorrules, copilot-instructions.md). Community-maintained.

Version: 0.5.0

Pre-1.0 — moving fast, API still evolving, feedback welcome.

Quickstart

npx @reporails/cli install

This registers the MCP server with Claude Code. Then ask Claude:

> What ails claude?

Or run directly without MCP:

npx @reporails/cli check

What's here

core/
  structure/       # 25 rules: File presence, nesting, format, hooks, skills
  content/         # 32 rules: Context, commands, conventions, constraints
  context_quality/ # 7 rules: Architecture, tech stack, directory layout
  efficiency/      # 5 rules: Size limits, redundancy, grouping
  governance/      # 8 rules: Credentials, permissions, MCP, self-contained config
  maintenance/     # 1 rule: Freshness markers

agents/
  claude/          # 8 rules: Hooks, skills, frontmatter
  codex/           # 2 rules: File priority, skill structure
  copilot/         # 2 rules: applyTo scope, setup steps
  generic/         # Config only (default agent)

schemas/           # Rule, agent, and config schemas
registry/          # Capabilities, levels, coordinate map
docs/              # Capability levels, sources

90 rules. For additional recommended rules, see reporails/recommended.

Tombstones: Old coordinate slots from pre-0.4.0 rules will be backfilled in registry/tombstones.yml after 0.5.0.

Contributing

See CONTRIBUTING.md

Supported agents: Claude Code, Codex, Copilot CLI, Generic (AGENTS.md)

Documentation

License

CC BY-SA 4.0

Releases

Feb 24, 2026

v0.5.0

Download .zip

Summary Major catalog expansion from 17 to 102 rules. Agent-specific rules migrated to their own namespaces (CLAUDE:, CODEX:, COPILOT:), new context_quality category added, and all OpenGrep references...

Feb 17, 2026

v0.4.1

Download .zip

v0.4.1 - Workflow documentation Every shared workflow now pairs its mermaid flowchart (the what) with prose sections explaining the why — key decisions, design rationale, and constraint justifications...

Feb 16, 2026

Download .zip

Rules consolidation — focused rule set, GitHub Copilot support, new categories. Highlights 47 → 17 rules. The core rule set has been consolidated to the rules that matter most. Opinionated and agent-s...

Feb 10, 2026

v0.3.1

Download .zip

What's Changed

Update release mechanism.

Full Changelog: 0.2.2...0.3.1

0.2.2 — 2026-02-04 Changed

Package Schema: 0.2.2 Collapsed rules listing in CLAUDE.md

Fixed

Rule ID mapping inconsistency in CLAUDE_S2