Rules eval

From athola/claude-night-market · View interactive version

Rules eval is an AI agent skill from the GitHub repository athola/claude-night-market. Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits.

How to use this skill

Skill file

Rules Evaluation Framework

Scoring weights (out of 100): frontmatter_validity 25, glob_pattern_quality

20, content_quality 25, organization 15, token_efficiency 15.

When NOT To Use

Overview

This skill evaluates Claude Code rules in .claude/rules/ directories against quality standards. It validates YAML frontmatter, glob pattern syntax, content quality, and directory organization. Rules files support path-scoped conditional loading via paths frontmatter and unconditional rules (no paths field).

Key validations: YAML syntax errors, unquoted glob patterns, Cursor-specific fields (alwaysApply, globs), overly broad patterns, content verbosity, and naming conventions.

Quick Start

# Evaluate rules in current project
/rules-eval

# Evaluate specific directory
/rules-eval .claude/rules/

# Detailed analysis with recommendations
/rules-eval --detailed

Evaluation Workflow

  1. Scan .claude/rules/ for all .md files (including subdirectories)
  2. Validate YAML frontmatter syntax and fields
  3. Analyze glob patterns for correctness and specificity
  4. Assess content quality (actionable, concise, non-conflicting)
  5. Check organization (naming, structure, symlinks)
  6. Measure token efficiency and redundancy

Scoring

| Category | Points | Focus |

|----------|--------|-------|

| Frontmatter Validity | 25 | YAML syntax, required fields, correct field names |

| Glob Pattern Quality | 20 | Syntax, specificity, quoting |

| Content Quality | 25 | Actionable, concise, non-conflicting |

| Organization | 15 | Naming, structure, symlink usage |

| Token Efficiency | 15 | Rule size, redundancy detection |

| Score | Level |

|-------|-------|

| 91-100 | Excellent - Production-ready |

| 76-90 | Good - Minor improvements possible |

| 51-75 | Basic - Needs optimization |

| 26-50 | Below Standards - Significant issues |

| 0-25 | Critical - Invalid or broken rules |

Resources

Skill-Specific Modules

Tools

Related Skills

Exit Criteria

(0-100) with per-category breakdown across the five dimensions.

before any score is reported.

non-compliant with the expected Claude Code schema.

corrective action alongside the score.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.