Chuyển đến nội dung
Skillpedia
Agent280k · #408

skill-comply

Skill này làm gì

Công cụ này kiểm tra xem agent AI có làm theo các hướng dẫn được giao hay không. Nó tạo bài kiểm tra để xem agent có hành xử đúng như mong đợi, ngay cả khi hướng dẫn không được nêu rõ.

Khi nào nên dùng

  • ✓Khi bạn muốn chắc chắn một agent AI đang tuân theo rule.
  • ✓Khi bạn vừa tạo rule hoặc hướng dẫn mới cho agent.
  • ✓Khi bạn muốn kiểm tra xem một agent AI có hoạt động đúng không.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra xem agent AI có tuân theo rule bảo mật không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ tạo các ví dụ về cách agent nên hành xử, rồi kiểm tra xem agent có thực sự làm như vậy không. Nó đo mức độ agent tuân theo hướng dẫn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

“Các kịch bản với mức độ chặt chẽ của prompt giảm dần” là gì?

Đây là các bài kiểm tra do công cụ tạo ra. Chúng bắt đầu với hướng dẫn rất rõ ràng và dần trở nên mơ hồ hơn, để xem agent có còn hiểu và làm theo điều được mong đợi không.

“Prompt Independence” (độc lập với prompt) là gì?

Nghĩa là kiểm tra xem agent có tuân theo rule ngay cả khi prompt đưa cho nó không nhắc trực tiếp đến rule đó hay không.

Báo cáo cuối cùng hiển thị những gì?

Báo cáo cho biết điều gì được mong đợi, các bài kiểm tra đã chạy, kết quả (agent có tuân thủ hay không) và dòng thời gian các hành động của agent.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#408
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự