Skillpedia
الوكلاء280k · #408

skill-comply

ما الذي تفعله

تتحقق هذه المهارة من أن وكيل الذكاء الاصطناعي يتبع التعليمات التي أُعطيت له. تنشئ اختبارات لمعرفة إن كان الوكيل يتصرف كما هو متوقع، حتى عندما لا تكون التعليمات صريحة.

متى تستخدمها

  • ✓عندما تريد التأكد من أن وكيل الذكاء الاصطناعي يتبع القواعد.
  • ✓عندما تنشئ قواعد أو تعليمات جديدة للوكيل.
  • ✓عندما تريد التحقق من أن وكيل الذكاء الاصطناعي يعمل بشكل صحيح.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/affaan-m/ECC/blob/main/skills/skill-comply/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“تحقق مما إذا كان وكيل الذكاء الاصطناعي يتبع قاعدة الأمان.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تنشئ المهارة أمثلة لكيف يجب أن يتصرف الوكيل، ثم تختبر إن كان يتصرف فعلًا بهذه الطريقة. وتقيس مدى التزام الوكيل بالتعليمات.

المحتوى التقني (ملف 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
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة