/meta:rules-eval <path-or-scope> [low|medium|high]from meta
Evaluate Cursor rules and agent instruction files for clarity and enforceability
Ships in meta. Installing the plugin adds it to Claude Code.
Behavioral and structural evaluation of AI rules — Cursor rules, CLAUDE.md,
AGENTS.md, and plugin instruction files. Part of the meta plugin evaluation
suite.
/meta:rules-eval .cursor/rules
/meta:rules-eval CLAUDE.md
/meta:rules-eval AGENTS.md medium
/meta:rules-eval .
Scope can be a file, directory, or repo root (.). Optional strictness:
low, medium (default), or high.
| Target | Location |
|---|---|
| Cursor rules | .cursor/rules/*.mdc, .cursor/rules/*.md |
| Project instructions | CLAUDE.md, AGENTS.md |
| Plugin instructions | plugins/*/CLAUDE.md |
| Rule sections | CLAUDE.md § Section Name (evaluate one section) |
When invoked:
Resolve scope — Parse path and optional strictness from $ARGUMENTS. If
empty, ask which rules to evaluate or default to .cursor/rules and CLAUDE.md
when present.
Discover rule files — Glob within scope. Read each file fully.
Structural audit — For Cursor rules (.mdc), check:
description, globs, alwaysApply)alwaysApply: true OR non-empty globs (not both missing)Extract enforceable rules — From all files in scope, list explicit constraints: "must", "never", "always", "required", "CRITICAL", "IMPORTANT". Number as R1, R2…
Generate scenarios — 2–3 probes per strictness level that test whether an agent following these rules would behave correctly. Include:
Run probes — Spawn read-only subagents (Task tool) with scenario prompts and the extracted rules as context. Classify: compliant, partial, non-compliant.
Report — Do not modify rule files unless asked.
# Rules Eval: <scope>
**Strictness:** low | medium | high
**Files:** N
**Result:** PASS | PASS WITH WARNINGS | FAIL
## Summary
<one paragraph>
## Files Audited
| File | alwaysApply | globs | Lines | Issues |
| --- | --- | --- | --- | --- |
## Rules Extracted
| ID | Source | Rule |
| --- | --- | --- |
## Scenarios
| # | Level | Prompt | Result | Violated rules |
| --- | --- | --- | --- | --- |
## Structural Issues
- frontmatter, globs, length, vagueness
## Recommendations
- split oversized rules, clarify conflicts, add globs, strengthen CRITICAL blocks
Pair with /meta:skills-eval when rules and skills overlap in the same project.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub meaganewaller/marketplace --plugin meta9 commands in this plugin
/audit-skillAudit SkillAudit a Claude Code skill for structure, triggers, and quality best practices/context-optimization-reportContext Optimization ReportGenerate a context window optimization report for all skills in a directory/create-commandCreate CommandScaffold a new slash command in a Claude Code plugin using meta conventions/skills-evalSkills EvalBatch-evaluate all skills in a plugin or directory for quality and complianceOther plugins' commands for the same job