本文へ移動
cccskills
無料GitHub で公開日本語紹介

skill-comply

AIエージェントがスキルやルールを実際に守るか、指示の強さが異なる3段階のシナリオで検証し、遵守率とツール呼び出しの時系列をレポートにまとめます。

原文原文の説明を見る

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 timelines. Use when checking whether agents actually follow the skills, rules, and definitions they were given, rather than assuming they do.

インストール方法を見る

こんなときに便利

  • 追加したルールの遵守確認
  • 念押しなしで手順が守られるか確認
  • ツール実行順序と抜けの確認
  • 実行せず検証シナリオを作りたいとき

日本語での紹介

できること

AIエージェントが、与えられたスキルやルールに沿って動くかを検証します。Markdownから期待する行動の手順を作り、ルールを後押しする指示、中立的な指示、競合する指示の3段階でシナリオを生成します。実行中のツール呼び出しをLLMで分類し、手順の順序を確認して、シナリオ別の遵守率と時系列をレポートにまとめます。

こんなときに便利

新しいルールを追加した後や、明示的に念押ししなくても手順が守られるか確かめたいときに向いています。レポートには期待する手順と実際の指示文も含まれ、どの段階が抜けたかを確認できます。遵守率の低い手順には、処理を自動で起動するフックへの移行案も示します。

使い方の例

  • 「このtesting.mdが実際に守られているか検証して」
  • 「SKILL.mdから検証シナリオだけを作って」

注意点

実行例ではuv、Python、claude -pを使います。通常の検証はモデルを呼び出し、費用が発生します。--dry-runはエージェントを実行せず、仕様とシナリオだけを生成します。エージェント定義の検証は呼び出されるかの確認に限られ、内部手順の検証には未対応です。

この紹介文は、公開されている SKILL.md をもとに AI(Claude Haiku)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(22)

  • SKILL.md2.4 KB
  • fixtures/compliant_trace.jsonl1.0 KB
  • fixtures/noncompliant_trace.jsonl629 B
  • fixtures/tdd_spec.yaml1.2 KB
  • prompts/classifier.md1.0 KB
  • prompts/scenario_generator.md1.9 KB
  • prompts/spec_generator.md1.6 KB
  • pyproject.toml360 B
  • scripts/__init__.py0 B
  • scripts/classifier.py2.7 KB
  • scripts/grader.py7.6 KB
  • scripts/parser.py2.7 KB
  • scripts/report.py6.3 KB
  • scripts/run.py4.2 KB
  • scripts/runner.py9.9 KB
  • scripts/scenario_generator.py1.8 KB
  • scripts/spec_generator.py2.2 KB
  • scripts/utils.py411 B
  • tests/test_classifier.py3.1 KB
  • tests/test_grader.py17.7 KB
  • tests/test_parser.py3.1 KB
  • tests/test_runner.py21.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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)
  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

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 sonnet <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:

  1. Expected behavioral sequence (auto-generated spec)
  2. Scenario prompts (what was asked at each strictness level)
  3. Compliance scores per scenario
  4. 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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

accessibility

無料日本語概要

Web・iOS・Androidの画面を、読み上げやキーボード操作に対応させ、ラベル、配色、操作対象の大きさなどをWCAG 2.2に沿って設計・点検するスキル。

  • アイコンボタンの説明を付けたいとき
  • キーボード操作とモーダルの点検
  • コントラストや操作対象の大きさの確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-architecture-audit

無料日本語概要

AIエージェントの不調を、指示・記憶・ツール実行・画面表示など12の層から調べるスキル。コードやログを根拠に原因を整理し、重要度順の指摘と修正案をまとめます。

  • アプリ内だけで起きる不調を調べたいとき
  • 過去の会話が混ざる原因を調査
  • ツールの未実行や実行の誤報を確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-eval

無料日本語概要

実際の開発課題で複数のコーディングエージェントを比較するスキル。成功率、取得可能なAPI費用、所要時間、繰り返し実行の安定性を測り、選定や更新後の評価に使えます。

  • 実際の開発課題でエージェントを比較
  • 新しいツールやモデルの導入前評価
  • エージェント更新後の性能確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-harness-construction

無料日本語概要

AIエージェントが使うツールの種類や入出力、エラーからの復帰手順を設計・見直します。文脈の情報量も整理し、作業完了率や再試行回数で改善を評価します。

  • エージェントのツールや入力形式の設計
  • ツールの結果と次の行動を明確にしたいとき
  • 安全な再試行と停止条件を定めたいとき
affaan-m/ECC27.8万2026年10月12日 更新

agent-introspection-debugging

無料日本語概要

AIエージェントの失敗や同じ操作の繰り返しを記録し、原因の切り分け、小さな復旧操作、結果の報告まで進める手順を示して、根拠のある再試行につなげるスキル。

  • 同じツール操作を繰り返す原因の調査
  • 会話の肥大化による品質低下の調査
  • ファイルパスや環境の食い違いの確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-introspection-debugging

無料日本語概要

AIエージェントが失敗や同じ操作を繰り返す原因を、エラーと実行状況から整理します。小さな復旧操作を試し、結果と根拠を引き継げる報告にまとめるスキルです。

  • エージェントの連続失敗を診断したいとき
  • 同じツール操作のループ調査
  • 情報の蓄積による出力劣化の点検
affaan-m/ECC27.8万2026年10月5日 更新

affaan-m のスキルをすべて見る

このスキルの問題を報告する