شعار Effect Ledger

Effect Ledger

المجتمع
jmagly
effect-ledger

Record an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with scriptable exit codes

نظرة عامة

الناشرjmagly
المستودعaiwg
اسم المهارةeffect-ledger
النجوم
225
التفريعات
34
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagly/aiwg.git /tmp/aiwg
mkdir -p .claude/skills
cp -r /tmp/aiwg/agentic/code/addons/aiwg-utils/skills/effect-ledger .claude/skills/effect-ledger
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Effect Ledger

Record and reconcile side effects (tracker comments, PR merges, issue closes, git commits and tags, files, decision receipts) in the signed AIWG effect ledger with the aiwg effect CLI. The ledger proves what AIWG recorded and what a verifier observed. It never authorizes an effect and never replays one: an operator decision authorizes, the ledger proves.

Triggers

  • "record an effect" → aiwg effect record
  • "sign an effect" → aiwg effect record (signed intent and completed)
  • "reconcile effect" → aiwg effect reconcile
  • "did this PR merge" → aiwg effect reconcile --kind tracker.pr.merged, or aiwg effect probe --kind tracker.pr.merged --target gitea:owner/repo#34 when no merge intent was recorded (read-only, writes nothing)
  • "did we already post this comment" → aiwg effect lookup before posting
  • "verify the effect ledger" → aiwg effect verify (add --with-decisions <audit.jsonl> to check #1567 operator-decision links)
  • "the effect ledger lock is stuck" → aiwg effect recover-lock (operator only)

When to record

Record every externally visible effect that a retry or a crash could repeat: cycle and closing comments, merges, issue closes, tags, release files, and decision receipts. Do not record read-only queries.

Process

  1. Name the effect. Pick the kind and target, and the causal context that makes it unique. For a cycle comment: --kind tracker.comment --target gitea:owner/repo#12 --issue 12 --action cycle-comment --cycle 1. aiwg effect id <identity> prints the effect ID.

  2. Check before acting. Run aiwg effect lookup <identity>. Exit 0 means the effect is already present: do not repeat it. Exit 4 means an earlier attempt has no outcome: run aiwg effect reconcile first.

  3. Carry the ID into the target wherever the target allows it: a hidden <!-- aiwg-effect: <effect-id> --> line in a comment body, or an Effect-Id: <effect-id> git trailer. Verifiers use the marker to prove the effect happened.

  4. Perform the effect, then record and sign it in one call:

    bash
    aiwg effect record --kind tracker.comment --target gitea:owner/repo#12 \
      --issue 12 --action cycle-comment --cycle 1 --payload-file comment.md

    record writes the signed intent, runs the kind's verifier, and appends completed when the verifier reports present. Repeating it with the same payload exits 0 with "idempotent":true. Use --unverified only when no verifier can see the target, and say so in your report.

  5. Reconcile uncertain effects. aiwg effect reconcile <effect-id> (or the same identity flags) asks the verifier again and appends a reconciled record each time. For "did this PR merge", once the merge intent is recorded: aiwg effect reconcile --kind tracker.pr.merged --target gitea:owner/repo#34. Reconciling an effect with no recorded intent is a usage error (exit 2); record the intent first with aiwg effect intent or aiwg effect record, or use aiwg effect probe <identity> for an ad-hoc check that records nothing (same exit codes 0, 3 and 4).

  6. Link the authorizing decision when an operator approved the effect: --link operatorDecisionEventId=sha256:<hex> (and operatorDecisionRecordHash) on intent or record.

Exit codes

CodeMeaningWhat to do
0present or recordedContinue
3absentThe target does not show the effect. Do not assume it is safe to replay; follow the workflow's own policy
4unknownStop and escalate. Never replay on unknown
5conflictThe same effect ID was recorded with a different payload. Stop
6integrity failureThe ledger failed verification. Stop and report
2 / 1 / 7usage / internal / artifact root unavailableFix the command or the artifact root; nothing was written

Rules

  • Output is JSON by default and every document has a schema member; add --format text only for people.
  • Never pass raw bodies, secrets or tokens as flags. Payloads are digested from --payload-file or given as --payload-digest.
  • The ledger key lives in the host secret service. aiwg effect keys list shows key IDs and public keys only; keys init and keys rotate are operator actions.
  • aiwg effect recover-lock --lock <name> --authorize is an operator action. It refuses live, reused or unverifiable lock owners and records the recovery in the ledger. Never run it without the operator's explicit approval.

References

  • @$AIWG_ROOT/docs/contracts/effect-ledger.v1.md — contract, exit codes and verifier rules
  • @$AIWG_ROOT/docs/cli/reference.md — aiwg effect command reference

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

ماذا تفعل مهارة الذكاء الاصطناعي Effect Ledger؟

Record an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with scriptable exit codes

لماذا تستخدم Effect Ledger على TypingMind؟

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

كيف أثبّت Effect Ledger في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Effect Ledger؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Effect Ledger؟

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

هل مهارة الذكاء الاصطناعي Effect Ledger مجانية؟

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

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

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

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

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

عرض الكل

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

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