From shipshitdev-library
Tests whether agent instructions (skills, rules, commands, agent definitions) change agent behavior under supportive, neutral, or competing conditions. Derives expected behaviors, runs representative scenarios, and compares action timelines against the spec.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shipshitdev-library:skill-complyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Test whether an instruction artifact changes agent behavior in realistic
Test whether an instruction artifact changes agent behavior in realistic conditions. The goal is not to prove that the file is well-written; it is to measure whether an agent follows it when the user prompt is supportive, neutral, or competing.
Inputs:
SKILL.md, rule file, command, agent definition, or instruction docOutputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
skill-validator for frontmatter/spec checksskill-auditor for portfolio-level duplicate and quality auditsevaluation for broader agent eval designCompliance has three layers:
Measure behavior, not prose quality.
Read the target artifact and extract:
Represent the spec as a short table:
| Step | Required Behavior | Evidence Type | Required Order |
|---|---|---|---|
| 1 | Inspect existing examples before editing | search/read action | before write |
| 2 | Preserve unrelated user changes | diff/status check | before final |
Create three prompts:
For destructive or side-effecting skills, use dry-run scenarios against fixture files or synthetic repos. Do not create real external side effects for a compliance test.
Use the strongest safe evidence available:
Do not count a step as compliant because the final answer claims it happened. Require an action trace, command output, file diff, or visible artifact.
Classify each expected behavior:
| Result | Meaning |
|---|---|
| Matched | Required behavior happened with adequate evidence |
| Missing | Required behavior did not happen |
| Reordered | Behavior happened, but too late to matter |
| Weak | Behavior happened superficially or without enough evidence |
| Violated | A forbidden action happened |
Compute a simple score:
score = matched / required
critical violation = automatic fail
Use judgment for ordering and gates. A late safety check after writing code does not satisfy a pre-edit investigation requirement.
Compliance result: 2/3 scenarios passed. Neutral prompt failed because the agent edited before checking existing patterns.
| Scenario | Score | Verdict | Main Failure |
| --- | --- | --- | --- |
| Supportive | 5/5 | Pass | - |
| Neutral | 3/5 | Fail | Missing pre-edit example search |
| Competing | 4/5 | Pass | Weak final evidence |
## Timeline Findings
- Missing: [step] [evidence]
- Reordered: [step] [why order matters]
## Recommended Fix
1. Tighten the trigger phrase in `description`.
2. Move the precondition into the Contract.
3. Add a short output checklist.
When a step repeatedly fails:
npx claudepluginhub shipshitdev/skillsMeasures whether skills, rules, and agent definitions are actually followed by auto-generating test scenarios at 3 prompt strictness levels, running agents, and reporting compliance rates with tool call timelines.
Auto-generates test scenarios from CLAUDE.md rules, runs them with LLM-as-judge scoring, reports compliance score and per-rule breakdown. Optionally improves failing rules via mutation loop.
Applies RED-GREEN-REFACTOR cycle to test skills by running baseline scenarios without the skill, writing to address failures, and iterating to close loopholes.