شعار Create Skill Eval

Create Skill Eval

مؤسسة
try-agora
create-skill-eval

Author a frozen, graded eval harness for ONE inner skill and freeze it inside that skill as a conformant eval/ directory (scenarios + deterministic evaluator + rubric + fixtures + HARNESS.md manifest). The eval content is skill-specific; this skill is the reusable methodology that produces it. Its output is consumed read-only by optimize-skill-loop. Use BEFORE optimizing — when a skill needs a graded before/after harness built. Trigger phrases: "build an eval harness for <skill>", "create a skill eval", "instrument <skill> with a frozen grader", "write scenarios and a rubric for <skill>".

نظرة عامة

الناشرtry-agora
المستودعqvr
اسم المهارةcreate-skill-eval
النجوم
26
التفريعات
0
الملفات المرفقة
7
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 7

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها try-agora على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Create Skill Eval في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/try-agora/qvr/tree/main/skills/create-skill-eval
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/try-agora/qvr.git /tmp/qvr
mkdir -p .claude/skills
cp -r /tmp/qvr/skills/create-skill-eval .claude/skills/create-skill-eval
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Create Skill Eval في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Create Skill Eval تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Create Skill Eval بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

create-skill-eval

Build the graded harness for one inner skill and freeze it into that skill's eval/ directory. This is step "instrument the baseline" factored out of the optimizer: the how to grade THIS skill lives here and ships with the skill; the how to run the loop lives in optimize-skill-loop and is skill-agnostic.

  • You produce a conformant eval/ dir (see references/eval-contract.md).
  • optimize-skill-loop consumes it read-only and never edits it.

The eval/ you freeze is the two halves of the loop's contract made concrete: it rides the skill's qvr version (so the loop can switch to a content version before each cohort), and its eval.py + rubric.yaml are what turn each captured qvr session → metrics ∈[0,1]. qvr is the loop's inner ledger — it owns the sessions, the cost, and the per-version identity; your harness only supplies the grading. You never plumb session ids or cost here; you author what correct means for this skill and hand it off frozen.

The eval is the inner skill's own asset. Grading text2sql (run the SQL, diff the rows), slugify (string match), and a codemod (build + test) have nothing in common — that difference belongs in the skill's eval/, authored here, not baked into the generic optimizer.

The deliverable: a conformant eval/ (the contract)

Everything you write must satisfy references/eval-contract.md — that's the seam the optimizer relies on. The frozen dir:

<skill>/eval/
  HARNESS.md          # manifest: metrics, axes, agents/N/models, exit, fixtures
  scenarios.jsonl     # frozen cases {id, input, expected?}
  eval.py             # deterministic grader CLI (--metric <id>, --explain)
  rubric.yaml         # frozen LLM-judge dimensions/weights/anchors
  <fixtures/builders> # whatever eval.py needs

Once frozen, the whole dir is byte-stable for the loop: git diff <baseline> <candidate> -- '*/eval/*' is empty forever after.

0. Prereq

Requires python3 on PATH — the grader you author (eval.py), its fixture builders, and scripts/validate-harness.py all use it (stdlib only, no pip install). PyYAML is optional: the validator falls back to a minimal manifest parser when it's absent.

1. Pick (or scaffold) the inner skill

The harness instruments one inner skill. Either it already exists (qvr list shows it), or scaffold a deliberately-minimal baseline to optimize up from:

qvr create <name> --type simple        # edit-mode lock entry under .claude/skills/<name>
# …write the minimal v0.1.0 behaviour into SKILL.md — the floor you optimize from…

A weak baseline is a feature: it gives the optimizer a long, legible learning curve. Leave the skill in edit mode; step 5 freezes the harness into it.

2. Interview the user — design the harness for THIS skill

Do not drop the templates in blind. The grader has to fit this skill. Ask, and lock in (these become the five frozen invariants):

  • What "correct" means — the deterministic check. Walk the user through it: exact string? a value matched by regex? JSON satisfying a schema? a file that must build / pass a test? a query whose result set must match? Their answer decides what eval.py's grade becomes. Strongly prefer a behaviour grader (run the output and check what it does) over string-match — it's both more honest and leak-proof; see references/behaviour-graders.md and the leak note in eval-contract.md.
  • Metrics & axes. Beyond correctness, what else does the user want graded? A common second deterministic metric is perf ("time to get results" → grade it deterministically from the query/plan cost, with wall-clock as a companion; the recipe is in behaviour-graders.md). Each metric declares an axis (quality/cost/perf), a direction, and an optimizer_role (gate/frontier/ tiebreak) in HARNESS.md.
  • Scenarios. The N inputs and their expected/ideal outputs, chosen to exercise the branch the user suspects is weak. Make a mix: rows with expected are deterministic; rows without are open-ended, rubric-only. Escalate difficulty so each scenario pins one competency.
  • Rubric dimensions. What a script can't cheaply check but the user cares about (followed the method, handled the edge case for the right reason, stayed economical). Co-write dimensions, weights, 0–1 anchors.
  • Agents + N + models. Which CLIs to fan out over, runs per variant, pinned models (so cost is comparable across rounds).
  • Exit criteria. target_quality, max_rounds, patience — the optimizer's stop predicate; record them in the manifest as the recommended defaults.

3. Build the deterministic grader (eval.py)

Start from templates/eval.py (string-match scaffold) and rewrite the check for this skill's notion of correct. The grader is pure — no LLM, no network, no clock, no randomness — so every cohort is judged identically. CLI contract (enforced by validate-harness.py):

eval.py --runs <runs.jsonl> --scenarios <scenarios.jsonl> --skill <name> --metric <id> --out <scores.jsonl>
eval.py --runs ... --metric <id> --explain      # human table
  • Dispatch on --metric: one branch per deterministic metric you declared (exact, perf, …). Each emits annotate-shaped rows, score ∈ [0,1].
  • A run that errors scores 0.0; never crash the grader.
  • Input-only scenarios emit no deterministic-metric row.

For behaviour graders (execute SQL + diff rows, build + check exit code, validate schema) and the perf recipe, copy the patterns in references/behaviour-graders.md.

4. Build fixtures (if the grader needs them)

If correctness/perf is judged by running the output against data, that data is part of the frozen harness. Build it from a deterministic seed script (fixed RNG seed, no clock) so anyone reproduces byte-identical fixtures, and commit the builder beside the fixture. A perf grader wants a large, indexed fixture so the latency signal is real; correctness wants a small, hand-verifiable one. Compute and verify every golden against the fixture before freezing — a wrong golden poisons the frozen grader.

5. Write scenarios.jsonl, rubric.yaml, and HARNESS.md; validate; freeze

  • scenarios.jsonl — from templates/scenarios.jsonl. input is the only field ever sent to the agent; expected is used out-of-band. Omit expected for rubric-only rows.
  • rubric.yaml — from templates/rubric.yaml. Replace the generic dimensions with the ones co-designed in step 2.
  • HARNESS.md — from templates/HARNESS.md. This is what makes the optimizer skill-agnostic: declare every metric's axis/direction/role, the cost source, agents/N/models, exit thresholds, and required fixtures.

Then validate conformance before freezing:

python3 scripts/validate-harness.py --skill <name> --eval <skill-dir>/eval

It checks the four required files exist, HARNESS.md parses, eval.py answers --metric for each declared metric, and every fixture is present. Fix anything it flags — the optimizer runs the same check and refuses a non-conformant eval/.

Confirm the eval logic and rubric with the user, then freeze by publishing the instrumented baseline:

qvr edit <skill>                       # (skip if already in edit mode)
# place the validated files at <skill-dir>/eval/
qvr publish <skill> --tag <baseline-tag> -m "freeze graded harness" --auto-commit
# path-B first publish needs a remote: add --fork file:///…/<name>.git --migrate

This published version is the instrumented baseline — the input to optimize-skill-loop. Install it for every fan-out agent so the optimizer can attribute every run:

qvr add <name> --target claude,codex

6. Hand off to the optimizer

# the loop reads <skill>/eval/HARNESS.md and never touches eval/ again
optimize-skill-loop   (point it at <skill>; it validates the contract, then runs)

From here the harness is frozen. If you discover the eval itself is wrong, you do not patch it mid-loop — that voids every prior cohort. Come back to this skill, fix the harness, and re-freeze as a new baseline (the loop restarts).

Caveats

  • Never put expected in the prompt. The runner sends only input; grading is out-of-band. The one residual leak is a pure string-match grader whose scenarios sit on disk — prefer a behaviour grader, or hold those expecteds in the outer run dir (see eval-contract.md).
  • The grader must be pure. Wall-clock, RNG, network, or LLM calls inside eval.py break reproducibility. Perf "time" is graded via a deterministic plan/cost proxy; raw ms is only a reported companion.
  • Freeze means freeze. Adapting the harness after the loop starts moves the goalposts and invalidates the before/after. Re-freeze as a new baseline instead.

See references/eval-contract.md for the full interface and references/behaviour-graders.md for ready-to-adapt grader recipes (text2sql execute-and-diff, perf via EXPLAIN, schema-validate, build-exit-code).

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Create Skill Eval؟

Author a frozen, graded eval harness for ONE inner skill and freeze it inside that skill as a conformant eval/ directory (scenarios + deterministic evaluator + rubric + fixtures + HARNESS.md manifest). The eval content is skill-specific; this skill is the reusable methodology that produces it. Its output is consumed read-only by optimize-skill-loop. Use BEFORE optimizing — when a skill needs a graded before/after harness built. Trigger phrases: "build an eval harness for <skill>", "create a skill eval", "instrument <skill> with a frozen grader", "write scenarios and a rubric for <skill>".

لماذا تستخدم Create Skill Eval على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Create Skill Eval عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Create Skill Eval في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/try-agora/qvr/tree/main/skills/create-skill-eval. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Create Skill Eval؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Create Skill Eval؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Create Skill Eval معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Create Skill Eval مجانية؟

نعم. نشرها try-agora على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇