本文へスキップ
Skillpedia
エージェント280k · #408

skill-comply

できること

このツールは、AIエージェントが与えられた指示に従っているかをチェックします。指示が明示されていない場合でも、エージェントが期待どおりに動作しているかを確認するためのテストを作成します。

使う場面

  • ✓AIエージェントがルールを守っているか確かめたいとき。
  • ✓エージェントに新しいルールや指示を作成した後。
  • ✓AIエージェントが正しく機能しているかを確認したいとき。

スキルのリンク

https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“AIエージェントがセキュリティルールに従っているか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、エージェントがどのように振る舞うべきかの例を作成し、実際にそのとおり行動するかをテストします。エージェントがどれだけ指示に従っているかを測定します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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)
  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.

よくある質問

「プロンプトの厳密さを段階的に下げたシナリオ」とは何ですか?

ツールが作成するテストのことです。最初は非常に明確な指示から始まり、徐々にあいまいな指示になっていきます。それでもエージェントが期待されていることを理解し、従うかを確認します。

「プロンプトからの独立性(Prompt Independence)」とは何ですか?

エージェントに与えたプロンプトにそのルールが直接書かれていなくても、エージェントがそのルールに従うかどうかをテストすることを意味します。

最終レポートには何が表示されますか?

期待されていたこと、実行されたテスト、結果(エージェントが従ったかどうか)、そしてエージェントの動作の時系列が表示されます。

詳細

作者による元の説明

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.

repo: affaan-m/ECC

人気

GitHubのスター
280k
ランキング
#408
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル