skill-comply

skill-comply is a skill for Claude Code from shimo4228/claude-harness. It costs 37 tokens per session (2,184 once invoked), scanned A, original, MIT.

A tool for measuring whether an AI coding assistant follows written skills, rules, or agent definitions. It creates test scenarios, records the assistant's tool calls, and reports whether the expected sequence was followed.

In plain words
What is it for?
Use it to test workflow skills, coding rules, or agent-triggering behavior after adding them or during regular quality checks.
Why use it?
It replaces guesswork about compliance with recorded behavior and timelines. It can show whether instructions still work when prompts are supportive, neutral, or competing.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to test workflow skills, coding rules, or agent-triggering behavior after adding them or during regular quality checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/skill-comply
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shimo4228/claude-harness --skill skill-comply
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-comply

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/skill-comply/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/skill-comply)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/skill-comply"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/skill-comply/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-comply

Your own site · 80×15
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/skill-comply"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/skill-comply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02184
Opus 5.5 $0.00015 $0.00874
Sonnet 5.5 $0.00007 $0.00437
Haiku 4.5 $0.00004 $0.00218

Measured 16d ago against content hash 9b9d410408ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-comply scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

The scan reads SKILL.md. This mod also ships 22 executable files (scripts/__init__.py, scripts/child_settings.py, scripts/classifier.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/skill-comply/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on 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), to show whether the target is followed even when the prompt does not support it
  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

It measures runtime adherence only. A static quality audit is skill skill-stocktake / rules-stocktake, a reference-integrity check is skill skill-health, and a with/without ablation of a skill's effect is skill skill-writer §5.

Supported Targets

  • Skills (skills/*/SKILL.md): Workflow skills like search-first
  • Rules (rules/common/*.md): Mandatory rules like security.md, boundary.md
  • Agent definitions (agents/*.md): accepted as a target, but invocation is not observable today — every child runs with Agent denied (scripts/child_settings.py DENIED_TOOLS), so a step that expects an agent call cannot be seen

Usage

Paths below start at ${CLAUDE_SKILL_DIR}, the directory holding this SKILL.md; an agent that does not substitute the variable reads it as that directory.

# Full run
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run ~/.claude/rules/common/boundary.md

# Dry run (spec + scenarios only: the two generation `claude -p` calls run, no agent runs)
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run --dry-run ~/.claude/skills/search-first/SKILL.md

# Custom models
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run --gen-model <model> --model <model> --classifier-model <model> <path>

# Back to serial (when you hit rate limits)
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run --concurrency 1 <path>

# Only for specs that need Bash (off by default — read "Trust boundary" below first)
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run --allow-bash <path>

# Reuse a saved spec to compare across runs (skips LLM regeneration)
uv run --frozen --project "${CLAUDE_SKILL_DIR}" python -m scripts.run --spec results/<skill-name>.spec.yaml <path>

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · -3 lines 9b9d410408ab
  2. 22d ago Changed af14528ad85c
  3. 29d ago Changed ef254e06936c
  4. 1mo ago Changed · +3 lines b236eb90f9bc
  5. 1mo ago Changed · -48 tokens per session d1630c41d902
  6. 1mo ago Changed · -53 lines · -42 tokens per session scan B → A 00314ad1d47e
  7. 2mo ago Changed · +1 lines · -12 tokens per session 51cafc49bd9b
  8. 2mo ago Changed f20f84bfad79
  9. 2mo ago Changed · -10 lines · +92 tokens per session 58aeb8997544
  10. 2mo ago First seen · 216 lines · 47 tokens per session scan B 0e31e461b6c8

Subscribe to this mod's changes

skill-comply is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 37 tokens to every session and 2,184 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

skill-comply compared with skills from other repositories

skill-comply next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-complyshimo4228/claude-harnessSkill47d agoMITA37Claude Code
agent-adoption-triageshimo4228/agent-adoption-triageSkill21mo agoMITA143Claude Code
git-commitadongwanai/learn-workbuddySkill5631mo agoMITA0Claude Code, Codex
pi-triagesky-valley/piSkill94yesterdayMITA57Claude Code
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
zodanivar/zod-skillSkill24yesterdayMITA217Claude Code, Codex
trailhead-chartToRvaLDz/trailheadSkill37yesterdayMITA138Claude Code