Xpersona
R

rules-eval

CLAWHUB · Unverified

Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits Skill: rules-eval Owner: athola Summary: Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:03:59.226Z | user Release v1.9.19 v1.9.18 | 2026-08-15T21:28:13.884Z | user Release v1.9.18 v1.9.17 | 2026-07-30T05:28:07.025Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:45:07.593Z | user Release v1.9.16 v1.9.15 | 2026-07

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-abstract-rules-eval
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-rules-eval/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

106,388 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: rules-eval
description: |
  Evaluate Claude Code rules in .claude/rules/. Use for frontmatter, globs, and quality audits
version: 1.9.8
triggers:
  - evaluation
  - rules
  - validation
  - quality-assurance
  - glob-patterns
  - frontmatter
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/abstract", "emoji": "\ud83e\udd9e", "requires": {"config": ["night-market.skills-eval"]}}}
source: claude-night-market
source_plugin: abstract
---

> **Night Market Skill** — ported from [claude-night-market/abstract](https://github.com/athola/claude-night-market/tree/master/plugins/abstract). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# Rules Evaluation Framework

## Table of Contents

1. [Overview](#overview)
2. [Quick Start](#quick-start)
3. [Evaluation Workflow](#evaluation-workflow)
4. [Scoring](#scoring)
5. [Resources](#resources)

## 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

```bash
# 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`

### Tool

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-abstract-rules-eval",
  "version": "1.9.19",
  "publishedAt": 1787749439226
}

modules/content-quality-metrics.md

# Content Quality Metrics

## Quality Criteria

### Actionability
Rules should provide clear, actionable guidance. Descriptions alone are insufficient.

```markdown
<!-- BAD: Just a description -->
This project uses TypeScript.

<!-- GOOD: Actionable guidance -->
Use strict TypeScript. Enable `noImplicitAny` and `strictNullChecks`.
Prefer interfaces over type aliases for object shapes.
```

### Conciseness
Each rule file should be focused and concise (< 500 tokens typical).

### Non-Conflicting
Rules across files should not contradict each other.

### Single Topic
Each rule file should address one focused topic.

## Scoring (25 points, deductive)

Starts at 25, deducts for issues found:

| Issue | Deduction | Criteria |
|-------|-----------|----------|
| Empty content | -25 | Rule file has no body text |
| Too short | -5 | Fewer than 10 words |
| Too verbose | -5 | Exceeds 500 estimated tokens |

modules/frontmatter-validation.md

# Frontmatter Validation

## Valid Frontmatter Fields

Claude Code rules support these frontmatter fields:

| Field | Type | Required | Purpose |
|-------|------|----------|---------|
| `paths` | `list[string]` | No | Glob patterns for conditional loading |
| `description` | `string` | No | Brief description of rule purpose |

Rules without `paths` are unconditional (apply to all files).

## Common Errors

### YAML Syntax Errors
```yaml
# INVALID - unquoted glob starting with *
---
paths:
  - **/*.ts        # YAML parse error
---

# VALID - quoted glob
---
paths:
  - "**/*.ts"
---
```

### Wrong Field Names
```yaml
# INVALID - Cursor-specific fields
---
globs:             # Wrong! Use 'paths'
  - "*.ts"
alwaysApply: true  # Wrong! Cursor-only, not Claude Code
---
```

### Invalid Structure
```yaml
# INVALID - paths must be a list
---
paths: "**/*.ts"   # Should be a list
---

# VALID
---
paths:
  - "**/*.ts"
---
```

## Scoring (25 points, deductive)

Starts at 25, deducts for issues found:

| Issue | Deduction | Criteria |
|-------|-----------|----------|
| YAML parse error | -25 | Frontmatter fails to parse |
| Cursor-specific field | -5 each | `globs`, `alwaysApply`, etc. |
| Invalid `paths` type | -5 | `paths` is not a list |
| Unknown field | -2 each | Field not in valid set |
| Empty `paths` list | -1 | `paths: []` (likely unintended) |

modules/glob-pattern-analysis.md

# Glob Pattern Analysis

## Pattern Quality Assessment

### Good Patterns
```
"src/api/**/*.ts"       # Specific scope
"tests/**/*.test.ts"    # Clear intent
"{src,lib}/**/*.ts"     # Multiple dirs, quoted
"*.config.{js,ts}"      # Config files only
```

### Problem Patterns
```
"**/*"                  # Too broad - matches everything
"*"                     # Root only, usually too narrow
**/*.ts                 # Unquoted - YAML parse error
"."                     # Invalid glob
```

## Validation Rules

1. **Syntax validity**: Pattern must be valid glob syntax
2. **Quoting**: Patterns with `*`, `{`, `}`, `[`, `]` must be quoted
3. **Specificity**: Patterns should not match everything (`**/*`)
4. **Intent clarity**: Pattern should clearly indicate target files

## Scoring (20 points, deductive)

Starts at 20, deducts for issues found. Files without `paths` receive full score.

| Issue | Deduction | Criteria |
|-------|-----------|----------|
| Overly broad pattern | -5 each | Matches `**/*`, `*`, etc. |
| Empty pattern | -4 each | Blank or whitespace-only pattern |

Sponsored

Ads related to rules-eval and adjacent AI workflows.