Skip to content
Back to skills

Skill Comply

ASecurity

Measure whether agents actually follow a skill, rule or agent definition instead of assuming they do. Generates a behavioural spec from the .md file, runs it as 3 scenarios of falling prompt support (supportive, neutral, competing) through `claude -p`, classifies the tool calls against the spec and reports compliance per scenario with timelines. Use when asked "is this rule actually followed?", after adding or rewriting a rule or skill, or when auditing rules marked "Doc only". Costs real tok...

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentspythonrustbashgit

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add mxrsv/agents-skills --skill skill-comply --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Comply?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Comply
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mxrsv-skill-comply/badge)](https://www.skillsdirectory.com/skills/mxrsv-skill-comply)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-comply
description: Measure whether agents actually follow a skill, rule or agent definition instead of assuming they do. Generates a behavioural spec from the .md file, runs it as 3 scenarios of falling prompt support (supportive, neutral, competing) through `claude -p`, classifies the tool calls against the spec and reports compliance per scenario with timelines. Use when asked "is this rule actually followed?", after adding or rewriting a rule or skill, or when auditing rules marked "Doc only". Costs real tokens; use `--dry-run` first.
---

# skill-comply

Source: ECC `skill-comply` (affaan-m/ECC), tests and fixtures dropped.

## Run

From the skill directory (the package imports `scripts.*` from the cwd):

```bash
cd ~/.claude/skills/skill-comply
uv run python -m scripts.run --dry-run <path-to-md>   # spec + scenarios only, 2 haiku calls
uv run python -m scripts.run <path-to-md>             # full run: 3 × `claude -p` (default sonnet)
uv run python -m scripts.run --gen-model haiku --model sonnet --output <report.md> <path-to-md>
```

Targets: `skills/*/SKILL.md`, `rules/**/*.md`, `agents/*.md` (for agents it checks the agent is invoked when expected, not its inner workflow).

## What it does

1. `spec_generator` turns the file into ordered expected steps.
2. `scenario_generator` writes 3 prompts: supportive, neutral, competing (pushes against the rule).
3. `runner` executes each in a throwaway git repo under `$TMPDIR/skill-comply-sandbox-<uid>/` with `claude -p --allowedTools Read,Write,Edit,Bash,Glob,Grep`, and captures tool calls from stream-json.
4. `classifier` (LLM) labels each tool call with a spec step; `grader` checks order deterministically.
5. `report` writes `results/<name>.md` (gitignored): spec, prompts, score per scenario, timeline.

A rule that is followed even in the **competing** scenario holds on its own; one followed only when the prompt supports it needs stronger enforcement.

## Limits

- Not a hard sandbox: the run's `Bash` is unrestricted and the agent loads your real `~/.claude` config, which is the point of the measurement. Only setup commands are allowlisted. Run it on files you wrote, not on untrusted ones.
- Spec quality comes from an LLM, so a vague rule gives a vague measurement; read the generated spec before trusting a score.
- Each full run is several agent sessions; check the `--dry-run` spec first.
- Ignore the report's "promote to hook" advice; hooks are not used here.

Files in this skill

  • .gitignore29 B
  • SKILL.md2.5 KB
  • prompts/classifier.md1 KB
  • prompts/scenario_generator.md2.2 KB
  • prompts/spec_generator.md1.6 KB
  • pyproject.toml180 B
  • scripts/classifier.py2.9 KB
  • scripts/grader.py7.6 KB
  • scripts/parser.py2.7 KB
  • scripts/report.py6.3 KB
  • scripts/run.py4.2 KB
  • scripts/runner.py21.9 KB
  • scripts/scenario_generator.py1.8 KB
  • scripts/spec_generator.py2.2 KB
  • scripts/utils.py411 B
  • uv.lock15.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.