skill-comply
Automatically tests and visualizes whether coding agents follow defined rules and skills.
Install
mkdir -p .claude/skills/skill-comply && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10755" && unzip -o skill.zip -d .claude/skills/skill-comply && rm skill.zipInstalls to .claude/skills/skill-comply
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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 timelinesKey capabilities
- →Auto-generate expected behavioral sequences (specs)
- →Auto-generate scenarios with varying prompt strictness
- →Capture tool call traces via stream-json
- →Classify tool calls against spec steps using LLM
- →Check temporal ordering deterministically
- →Generate self-contained compliance reports
How it works
The skill measures agent compliance by generating behavioral specs and scenarios, running agents to capture tool call traces, classifying these calls, and reporting compliance rates.
Inputs & outputs
When to use skill-comply
- →Verifying agent adherence
- →Testing new rules
- →Auditing compliance
About this skill
skill-comply: Automated Compliance Measurement
Measures whether coding agents actually follow skills, rules, or agent definitions by:
- Auto-generating expected behavioral sequences (specs) from any .md file
- Auto-generating scenarios with decreasing prompt strictness (supportive → neutral → competing)
- Running
claude -pand capturing tool call traces via stream-json - Classifying tool calls against spec steps using LLM (not regex)
- Checking temporal ordering deterministically
- 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 "Claude Sonnet 4" <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:
- Expected behavioral sequence (auto-generated spec)
- Scenario prompts (what was asked at each strictness level)
- Compliance scores per scenario
- 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.
When not to use it
- →When only needing to verify internal workflow
- →When not interested in agent compliance measurement
Limitations
- →Internal workflow verification not yet supported for agent definitions
- →Compliance classification uses LLM, not regex
- →Reports include hook promotion recommendations for low compliance steps
How it compares
This skill automates the measurement of agent compliance against defined rules and skills, providing quantitative reports and timelines, unlike manual verification.
Compared to similar skills
skill-comply side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| skill-comply (this skill) | 0 | 3mo | Review | Advanced |
| proof-of-work | 1 | 6mo | No flags | Intermediate |
| verification-before-completion | 0 | 2mo | Review | Intermediate |
| cmd-check | 0 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by klu-dev
View all by klu-dev →You might also like
proof-of-work
MadAppGang
Proof artifact generation patterns for task validation. Covers screenshots, test results, deployments, and confidence scoring.
verification-before-completion
jnPiyush
Block false completion claims. Force the agent to identify the claim, run the exact verification command, read the actual output, compare against the claim, and only then report. Use whenever an agent is about to say "done", "fixed", "tests pass", "deployed", "loop complete", or close an issue.
cmd-check
pbulsink
GitHub Copilot Chat Assistant
gsd-validate-phase
lza6
Retroactively audit and fill Nyquist validation gaps for a completed phase
manage-skills
junnv93
Analyzes session changes to detect missing verification skills. Dynamically discovers existing skills, creates new skills or updates existing ones, and manages CLAUDE.md skill references. Use when adding new patterns/modules that may need verification coverage, or when maintaining skill consistency.
speckit-review
pradeepmouli
Review completed implementation work and update task status.