Skip to content
cccskills
FreePublished on GitHub

rules-eval

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md3.6 KB
  • modules/content-quality-metrics.md909 B
  • modules/frontmatter-validation.md1.3 KB
  • modules/glob-pattern-analysis.md1.1 KB
  • modules/organization-patterns.md1.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

CategoryPointsFocus
Frontmatter Validity25YAML syntax, required fields, correct field names
Glob Pattern Quality20Syntax, specificity, quoting
Content Quality25Actionable, concise, non-conflicting
Organization15Naming, structure, symlink usage
Token Efficiency15Rule size, redundancy detection
ScoreLevel
91-100Excellent - Production-ready
76-90Good - Minor improvements possible
51-75Basic - Needs optimization
26-50Below Standards - Significant issues
0-25Critical - 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Shapes turns action-first: action leads, steps numbered, state restated. Use for ADHD-friendly output. Do not use to trim tokens; use response-compression.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

Inverts burden of proof for code additions. Use when reviewing PRs, planning refactors, or running unbloat to challenge every addition's necessity.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

Tracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

Coordinates Claude agent teams via filesystem protocol. Use when orchestrating parallel agents with task dependencies. Do not use for single-agent tasks.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

Evaluates API surface design, consistency, and exemplar alignment. Use when reviewing public API changes or before releasing a new API surface.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

Selects architecture paradigm via research before scaffolding. Use when architecture is undecided and the choice needs justification and documentation.

The English summary is being prepared. Showing the original description.

athola/claude-night-market343Updated Oct 17, 2026

See all skills by athola

Report a problem with this skill