Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Automated compliance measurement for skills, rules, and agent definitions
version
0.1.0
level
3
triggers
["measure compliance","does claude follow this skill","test skill effectiveness","compliance check"]
context_files
["context/learnings.md"]
steps
[{"name":"Spec Generation","description":"Extract behavioral spec from target .md file"},{"name":"Scenario Creation","description":"Generate 3 scenarios with varying prompt strictness"},{"name":"Execution","description":"Run claude -p capturing tool call traces"},{"name":"Classification","description":"Classify tool calls against spec steps using LLM"},{"name":"Compliance Scoring","description":"Calculate compliance percentage and identify violations"},{"name":"Report Generation","description":"Output findings with specific violation examples"}]
Skill Comply Skill
Automated compliance measurement for skills, rules, and agents. Verifies Claude actually follows defined behaviors.
What Claude Gets Wrong Without This Skill
Without compliance testing, you:
Don't know if skills are actually followed or just acknowledged
Miss prompt competition scenarios (when user request conflicts with skill)
Have no regression detection (skill worked last month, broken now)
Lack evidence for skill refinement (which parts are ignored?)
Skill comply measures what actually happens, not what should happen.
Compliance Testing Process
Step 1: Spec Generation
Extract behavioral specification from any .md file (skill, rule, agent definition).
For Skills:
Mandatory checklist items → required behaviors
Steps → expected sequence
Anti-patterns → prohibited behaviors
For Rules:
Path-specific rules → file operation constraints
Example: no-secrets.md → "never write to *.env files"
For Agents:
disallowedTools → tool usage constraints
Example: code-reviewer → "never use Write or Edit tools"
Spec Format:
{"target":"tdd","type":"skill","required_behaviors":["write test before implementation","run test and verify it fails","implement minimal code to pass test"],"prohibited_behaviors":["implement without test"
,
"write implementation before test fails"
]
}
Step 2: Scenario Creation
Generate 3 test scenarios with decreasing prompt strictness:
Supportive Scenario:
Prompt explicitly invokes skill: "Use TDD skill to add a calculateTotal function"
Expected: High compliance (Claude knows to follow skill)
Neutral Scenario:
Prompt mentions task without skill: "Add a calculateTotal function"
Expected: Medium compliance (skill may or may not activate)
Use LLM to classify each tool call against behavioral spec:
Classifier Prompt:
Behavioral spec:
- REQUIRED: Write test before implementation
- REQUIRED: Run test and verify it fails
- PROHIBITED: Implement without test
Tool call trace:
1. Write(test_total.py)
2. Bash(pytest test_total.py)
3. Write(calculator.py)
Classify each call:
1. COMPLIANT (matches required: write test first)
2. COMPLIANT (matches required: run test, verify fail)
3. COMPLIANT (implementation after test)
Compliance: 3/3 (100%)
Classifier model: Haiku (fast, cheap, good enough for binary classification)