Skip to content
Development
Skill

/rules-eval

Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill rules-eval --agent claude-code

SKILL.md

rules-eval.SKILL.md
name: rules-eval
description: 'Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits.'
alwaysApply: false
category: rule-management
tags:
- evaluation
- rules
- validation
- quality-assurance
- glob-patterns
- frontmatter
dependencies:
- skills-eval
provides:
  infrastructure:
  - rules-evaluation
  - frontmatter-validation
  - glob-pattern-analysis
  patterns:
  - rule-auditing
  - content-quality
  - organization-analysis
estimated_tokens: 400
evaluation_criteria:
  frontmatter_validity: 25
  glob_pattern_quality: 20
  content_quality: 25
  organization: 15
  token_efficiency: 15
role: entrypoint

Rules Evaluation Framework

When NOT To Use

  • Evaluating skills (use `abstract:skills-eval`)
  • Evaluating hooks (use `abstract:hooks-eval`)
  • Writing a new rule (use `hookify:writing-rules`)

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

  • **Frontmatter Validation**: See `modules/frontmatter-validation.md`
  • **Glob Pattern Analysis**: See `modules/glob-pattern-analysis.md`
  • **Content Quality Metrics**: See `modules/content-quality-metrics.md`
  • **Organization Patterns**: See `modules/organization-patterns.md`

Tools

  • **Rules Validator**: `scripts/rules_validator.py`

Related Skills

  • `abstract:skills-eval` - Skill evaluation framework
  • `abstract:hooks-eval` - Hook evaluation framework

Exit Criteria

  • [ ] Every `.md` file under `.claude/rules/` (including subdirectories) receives a quality score

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

  • [ ] YAML frontmatter syntax errors and unquoted glob patterns are listed as blocking findings

before any score is reported.

  • [ ] Rules using Cursor-specific fields (`alwaysApply`, `globs`) are flagged as

non-compliant with the expected Claude Code schema.

  • [ ] Any rule scoring below 26 (Critical tier) is reported with at least one concrete

corrective action, not just a score.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about rules-eval.

Which coding agents can use rules-eval?
rules-eval installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.