rules-eval
Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits.
How do I install this agent skill?
npx skills add https://github.com/athola/claude-night-market --skill rules-evalIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The rules-eval skill is a quality assurance framework for managing Claude Code rules. It performs static analysis on rule files to ensure they meet standards for YAML frontmatter, glob patterns, and content quality. No malicious patterns, data exfiltration, or unauthorized command execution were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
5 files scanned · No issues
What does this agent skill do?
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
- Scan
.claude/rules/for all.mdfiles (including subdirectories) - Validate YAML frontmatter syntax and fields
- Analyze glob patterns for correctness and specificity
- Assess content quality (actionable, concise, non-conflicting)
- Check organization (naming, structure, symlinks)
- 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 frameworkabstract:hooks-eval- Hook evaluation framework
Exit Criteria
- Every
.mdfile 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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/athola/claude-night-market/rules-eval">View rules-eval on skillZs</a>