writing-evals
ما الذي تفعله
تساعد هذه المهارة المطورين على اختبار ميزات الذكاء الاصطناعي التي تعطي إجابات مختلفة في كل مرة. وهي مناسبة للفرق التي تريد معرفة ما إذا كانت الميزة ما زالت تعمل بعد كل تغيير.
متى تستخدمها
- ✓عندما تبني ميزة ذكاء اصطناعي وتريد اختبارات تتحقق من إجاباتها.
- ✓عندما تحتاج إلى مقارنة نماذج أو إعدادات مختلفة للذكاء الاصطناعي بالفحوص نفسها.
- ✓عندما تريد إعداد ملفات تقييم Axiom لمشروع ذكاء اصطناعي.
رابط المهارة
https://github.com/openclaw/clawhub/blob/main/.agents/skills/writing-evals/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“اكتب لي اختبارات تقييم لميزة ملخصات الذكاء الاصطناعي، تتحقق من أن الإجابات دقيقة وقصيرة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
ينشئ وكيلك ملفات تقييم تحتوي على حالات اختبار، وفحوص تقييم يختبر كل منها خاصية واحدة في المخرجات، وإعدادات تتيح تجربة خيارات مختلفة. ويراجع وثائق الحزمة المثبتة أولاً حتى يتطابق الكود مع إصدارك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Writing Evals
You write evaluations that prove AI capabilities work. Evals are the test suite for non-deterministic systems: they measure whether a capability still behaves correctly after every change.
Prerequisites
- Complete the Axiom AI SDK Quickstart (instrumentation + authentication)
Verify the SDK is installed:
ls node_modules/axiom/dist/
If not installed, install it using the project's package manager (e.g., pnpm add axiom).
Always check node_modules/axiom/dist/docs/ first for the correct API signatures, import paths, and patterns for the installed SDK version. The bundled docs are the source of truth — do not rely on the examples in this skill if they conflict.
Philosophy
- Evals are tests for AI. Every eval answers: "does this capability still work?"
- Scorers are assertions. Each scorer checks one property of the output.
- Flags are variables. Flag schemas let you sweep models, temperatures, strategies without code changes.
- Data drives coverage. Happy path, adversarial, boundary, and negative cases.
- Validate before running. Never guess import paths or types—use reference docs.
Axiom Terminology
| Term | Definition |
|---|---|
| Capability | A generative AI system that uses LLMs to perform a specific task. Ranges from single-turn model interactions → workflows → single-agent → multi-agent systems. |
| Collection | A curated set of reference records used for testing and evaluation of a capability. The data array in an eval file is a collection. |
| Collection Record | An individual input-output pair within a collection: { input, expected, metadata? }. |
| Ground Truth | The validated, expert-approved correct output for a given input. The expected field in a collection record. |
| Scorer | A function that evaluates a capability's output, returning a score. Two types: reference-based (compares output to expected ground truth) and reference-free (evaluates quality without expected values, e.g., toxicity, coherence). |
| Eval | The process of testing a capability against a collection using scorers. Three modes: offline (against curated test cases), online (against live production traffic), backtesting (against historical production traces). |
| Flag | A configuration parameter (model, temperature, strategy) that controls capability behavior without code changes. |
| Experiment | An evaluation run with a specific set of flag values. Compare experiments to find optimal configurations. |
How to Start
When the user asks you to write evals for an AI feature, read the code first. Do not ask questions — inspect the codebase and infer everything you can.
Step 1: Understand the feature
- Find the AI function — search for the function the user mentioned. Read it fully.
- Trace the inputs — what data goes in? A string prompt, structured object, conversation history?
- Trace the outputs — what comes back? A string, category label, structured object, agent result with tool calls?
- Identify the model call — which LLM/model is used? What parameters (temperature, maxTokens)?
- Check for existing evals — search for
*.eval.tsfiles. Don't duplicate what exists. - Check for app-scope — look for
createAppScope,flagSchema,axiom.config.ts.
Step 2: Determine eval type
Based on what you found:
| Output type | Eval type | Scorer pattern |
|---|---|---|
| String category/label | Classification | Exact match |
| Free-form text | Text quality | Contains keywords or LLM-as-judge |
| Array of items | Retrieval | Set match |
| Structured object | Structured output | Field-by-field match |
| Agent result with tool calls | Tool use | Tool name presence |
| Streaming text | Streaming | Exact match or contains (auto-concatenated) |
Step 3: Choose scorers
Every eval needs at least 2 scorers. Use this layering:
- Correctness scorer (required) — Does the output match expected? Pick from the eval type table above (exact match, set match, field match, etc.).
- Quality scorer (recommended) — Is the output well-formed? Check confidence thresholds, output length, format validity, or field completeness.
- Reference-free scorer (add for user-facing text) — Is the output coherent, relevant, non-toxic? Use LLM-as-judge or autoevals.
| Output
الأسئلة الشائعة
ما اختبار التقييم للذكاء الاصطناعي؟
يشغّل ميزة الذكاء الاصطناعي على حالات محددة ويقيّم إجاباتها، حتى تعرف إن كانت الميزة ما زالت تعمل بشكل جيد.
هل تحتاج إلى حزمة Axiom AI SDK؟
نعم. المهارة مكتوبة لحزمة Axiom AI SDK، وتحتاج إلى تثبيتها مع إعداد البداية السريعة.
ما الحالات التي تشملها؟
تغطي المهارة المسار المثالي، والحالات الصعبة، وحالات الحدود، والحالات السلبية.
التفاصيل
الوصف الأصلي من المؤلف
Scaffolds evaluation suites for the Axiom AI SDK. Generates eval files, scorers, flag schemas, and config from natural-language descriptions. Use when creating evals, writing scorers, setting up flag schemas, or configuring axiom.config.ts.
repo: openclaw/clawhub
الشعبية
- نجوم GitHub
- 9.5k
- الترتيب
- #12267
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
axiom-alerting
9.5kيساعد وكيلك على إنشاء مراقبات Axiom ومسارات الإشعارات وإدارتها عبر Axiom API، والتحقق من أن التنبيهات تعمل كما هو متوقع.
axiom-sre
9.5kيساعد وكيلك على التحقيق في الحوادث والأخطاء الإنتاجية خطوة بخطوة، فيختبر كل تخمين مقابل سجلات Axiom قبل استخلاص أي نتيجة.
building-dashboards
9.5kيساعد وكيلك على تصميم لوحات Axiom بالمخططات والاستعلامات والفلاتر المناسبة، بدءًا من القرارات التي يجب أن تدعمها اللوحة.
controlling-costs
9.5kيساعد وكيلك على العثور على بيانات غير مستخدمة في Axiom، وبناء لوحات ومراقبات تتابع تكاليف الاستيعاب وتخفضها.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.