Skip to content
Skillpedia
Misc280k · #283

skill-comply

Helps your agent check if it follows defined rules and skills. It creates tests to see if the agent behaves as expected.

What it does

This tool checks if an AI agent follows the instructions it was given. It creates tests to see if the agent behaves as expected, even when the instructions are not explicit.

When to use it

  • ✓When you want to be sure an AI agent is following the rules.
  • ✓After creating new rules or instructions for an agent.
  • ✓To verify if an AI agent is functioning correctly.

Example of what to ask your AI

“Check if the AI agent follows the security rule.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool creates examples of how the agent should act and then tests if it actually does. It measures how well the agent follows instructions.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add affaan-m/ECC --skill skill-comply

Or download just the file:

curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/skills/skill-comply/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

skill-comply: Automated Compliance Measurement

Measures whether coding agents actually follow skills, rules, or agent definitions by:

  1. Auto-generating expected behavioral sequences (specs) from any .md file
  2. Auto-generating scenarios with decreasing prompt strictness (supportive → neutral → competing)
  3. Running claude -p and capturing tool call traces via stream-json
  4. Classifying tool calls against spec steps using LLM (not regex)
  5. Checking temporal ordering deterministically
  6. Generating self-contained reports with spec, prompts, and timelines

Supported Targets

  • Skills (skills/*/SKILL.md): Workflow skills like search-first, TDD guides
  • Rules (rules/common/*.md): Mandatory rules like testing.md, security.md, git-workflow.md
  • Agent definitions (agents/*.md): Whether an agent gets invoked when expected (internal workflow verification not yet supported)

When to Activate

  • User runs /skill-comply <path>
  • User asks "is this rule actually being followed?"
  • After adding new rules/skills, to verify agent compliance
  • Periodically as part of quality maintenance

Usage

# Full run
uv run python -m scripts.run ~/.claude/rules/common/testing.md

# Dry run (no cost, spec + scenarios only)
uv run python -m scripts.run --dry-run ~/.claude/skills/search-first/SKILL.md

# Custom models
uv run python -m scripts.run --gen-model haiku --model sonnet <path>

Key Concept: Prompt Independence

Measures whether a skill/rule is followed even when the prompt doesn't explicitly support it.

Report Contents

Reports are self-contained and include:

  1. Expected behavioral sequence (auto-generated spec)
  2. Scenario prompts (what was asked at each strictness level)
  3. Compliance scores per scenario
  4. Tool call timelines with LLM classification labels

Advanced (optional)

For users familiar with hooks, reports also include hook promotion recommendations for steps with low compliance. This is informational — the main value is the compliance visibility itself.

FAQ

What are 'scenarios with decreasing prompt strictness'?

These are tests created by the tool. They start with very clear instructions and become vaguer to see if the agent still understands and follows what's expected.

What is 'Prompt Independence'?

It means testing if the agent follows the rule even when the prompt given to it doesn't directly mention that rule.

What does the final report show?

The report shows what was expected, the tests performed, the results (whether the agent complied or not), and a timeline of the agent's actions.

Details

Original description by the author

Visualize whether skills, rules, and agent definitions are actually followed — auto-generates scenarios at 3 prompt strictness levels, runs agents, classifies behavioral sequences, and reports compliance rates with full tool call timelines. Use when checking whether agents actually follow the skills, rules, and definitions they were given, rather than assuming they do.

repo: affaan-m/ECC

Popularity

GitHub stars
280k
Ranking position
#283
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills