enforcing-skill-rules

Extract assertions from SKILL.md and grade rule adherence with binary PASS/FAIL results.

4|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/rbaumier/skills --skill enforcing-skill-rules
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: enforcing-skill-rules
Source: https://github.com/rbaumier/skills/tree/main/enforcing-skill-rules
Command: npx skills add https://github.com/rbaumier/skills --skill enforcing-skill-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a reproducible, data-driven loop to measure per-rule effectiveness of an AI Skill, identify failures, and iterate wording or examples until every rule passes binary evaluation. This eliminates uncertainty about whether a skill's rules are followed, prevents regressions during compression, and documents discriminating vs non-discriminating rules.

Core Features & Use Cases

  • Extracts every rule from a SKILL.md as named assertions and tags them by category for coverage tracking.
  • Produces a single full-sweep trap prompt that violates all assertions, runs baseline and with-skill executions, and saves iteration artifacts for auditability.
  • Uses cross-model grading (separate grader model) to produce strict PASS/FAIL evidence, root-cause failures, discriminating flags per assertion, and benchmark reports.
  • Ideal for improving an existing skill, validating a new skill before deployment, compressing a skill without regression, and measuring variance reduction across runs.

Quick Start

Run a full-sweep evaluation: extract assertions, write one trap prompt that violates every rule, run baseline and three with-skill runs, then grade outputs with a separate cross-model grader and record benchmarks.

Frequently Asked Questions about enforcing-skill-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure AI skill rule adherence and validate rule compliance?▼

Skill rule adherence is measured by extracting assertions, running baseline and with-skill executions against a trap prompt, and applying cross-model grading to produce strict binary PASS/FAIL evaluations.

How do I compress an AI skill definition without causing rule regressions?▼

Compressing an AI skill without regression involves iteratively validating the compressed version against extracted assertions and trap prompts, running benchmark evaluations until every rule achieves a 100% pass rate.

What is cross-model grading for AI skill evaluation?▼

Cross-model grading for AI skill evaluation uses a separate grader model to strictly assess outputs, producing binary PASS/FAIL evidence, root-cause analysis, and discriminating flags per assertion for objective benchmarking.

How do I test if an AI skill actually prevents unwanted behaviors?▼

Testing if an AI skill prevents unwanted behaviors involves designing a single trap prompt that intentionally violates all rules, executing it with and without the skill, and verifying that cross-model grading catches the failures for 100% adherence.

Can I track which specific rules fail in my AI skill definitions?▼

You can track specific rule failures in AI skill definitions by extracting every rule as a named assertion, tagging them by category for coverage tracking, and generating benchmark reports that highlight discriminating versus non-discriminating rules.