شعار Formal Methods Reconciler

Formal Methods Reconciler

المجتمع
mizchi
formal-methods-reconciler

استخدمها لمواءمة مواصفات البرامج والوثائق والاختبارات والإعدادات والشيفرة والسجلات أو الحوادث مع الأساليب الرسمية. تساعد Codex على استخراج الادعاءات، وتحديد ما إذا كانت الوثائق أو التنفيذ هي المصدر المعتمد للحقيقة، واختيار أداة مناسبة مثل Z3 أو Alloy أو TLA+ أو P أو Dafny أو MoonBit prove أو Lean أو Rocq أو Why3 أو Verus أو CBMC أو Tamarin أو ProVerif، وبناء أبسط نموذج مفيد، وتشغيل فحوصات التحقّق أو التخطيط لها، وتحويل نتائج SAT/UNSAT أو المسارات أو إخفاقات الإثبات أو التزامات الإثبات إلى أسئلة بلغة المجال وضوابط لمنع التراجع.

Add to TypingMind

نظرة عامة

الناشرmizchi
المستودعskills
اسم المهارةformal-methods-reconciler
النجوم
333
التفريعات
4
الملفات المرفقة
10
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/mizchi/skills/tree/main/formal-methods-reconciler
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Formal Methods Reconciler

Use this skill to turn a vague correctness concern into a small formal-methods check and a domain-readable decision record.

The core stance: the LLM proposes and repairs candidate models; the solver, model checker, verifier, or proof assistant decides; the final result is translated back into domain language for a human decision.

This is the first-modeling and reconciliation skill. If a useful formal model, CI verifier, expected result, or locked domain decision already exists and the task is to keep it aligned with later spec/code/log changes, switch to formal-methods-drift-guard.

Workflow

  1. Choose the source of truth.

    • If trusted specs/docs/ADRs/API contracts exist, treat them as the expected contract and compare code against them.
    • If specs are missing or unreliable, treat code/tests/config/logs as de-facto behavior, not as automatically correct.
    • If both disagree, do not decide alone. Produce a domain question.
  2. Extract claims before choosing a tool.

    • Separate declared intent from implicit behavior.
    • Extract claims as: allowed, forbidden, eventually happens, never happens, equivalent, reachable, unreachable, preserves invariant.
    • Note empty/missing/error/timeout/retry/crash behavior explicitly.
  3. Classify the shape of the question.

    • Pure predicate: input -> Bool.
    • Relation: user/role/resource/tenant/ownership/graph.
    • State transition: lifecycle, retry, crash, queue, eventual.
    • Message protocol: actors, typed events, request/response schedules.
    • Sequential code contract: pre/postconditions, loop invariants, representation invariants.
    • Universal theorem: unbounded inductive property or durable mathematical law.
    • Security protocol: adversarial message system, secrecy, authentication.
  4. Select the smallest appropriate tool.

    • Read references/tool-selection.md when tool choice is non-trivial.
    • Prefer the smallest model that can produce a useful counterexample.
    • Do not use Lean/Rocq for fast config bug hunting. Do not use Z3 for temporal interleavings. Do not use TLA+ for simple predicate consistency.
  5. Build the minimum model.

    • Strip I/O, frameworks, databases, and UI unless they define the property.
    • Model only observable values, state variables, actions, relations, and invariants needed for the claim.
    • Include positive sanity cases so a too-strong model is caught.
    • Include a broken variant when possible to prove the check is load-bearing.
  6. Run verifier feedback loops.

    • Use compiler/verifier/model-checker output as the repair oracle.
    • Repair syntax and modeling mistakes first.
    • Never make a property weaker just to get green unless the domain decision changed.
    • Preserve counterexamples as witnesses for domain review.
  7. Translate results to domain language.

    • Do not stop at sat, unsat, trace, or proof failure.
    • Say who can do what, which order is accepted, which config is dead, or which crash sequence loses data.
    • Use references/domain-ledger.md for output templates.
  8. Lock decisions.

    • If the counterexample is intended, update docs/specs and add a regression guard for the clarified behavior.
    • If unintended, file/fix a bug and keep the model/check in CI.
    • If unclear, produce the minimal witness and a domain-owner question.

Reporting Discipline

Keep domain uncertainty separate from execution uncertainty:

  • Domain questions are part of the deliverable: undocumented empty values, missing fail-mode definitions, product-policy choices, or spec/code disagreements that need an owner decision.
  • Self-report unclear points are only for things that prevented you from applying this skill correctly, such as missing repository access, an unavailable referenced file, ambiguous user scope, or a verifier you could not run.
  • Do not mark an intentionally preserved domain question as a self-report unclear point. Put it in the ledger/domain-question section instead.
  • If the user asked for a model/check plan and did not provide a runnable repo or verifier runtime, planning the exact check is sufficient. Label traces or SAT/UNSAT expectations as planned/hand-derived, not machine-confirmed, and do not count the absence of an actual run as an unclear point.
  • If the user explicitly asked you to run the verifier and it is unavailable, then record that as a self-report unclear point or task blocker.

LLM Role Boundary

Use the LLM for:

  • claim extraction
  • tool selection
  • first-pass formalization
  • counterexample explanation
  • repair proposals
  • domain-language wording

Do not use the LLM as:

  • the source of truth for correctness
  • the final judge of a proof
  • a replacement for solver/model-checker/prover output
  • a substitute for domain-owner decisions

Research-Informed Patterns

Read references/research-patterns.md when designing or improving an automated workflow. Prefer:

  • structured planning before formal code generation
  • verifier-guided repair loops
  • retrieval over repo context for repository-level work
  • test/log/trace oracles for generated annotations
  • subgoal decomposition for theorem proving
  • explicit epistemic status for every claim

Output Contract

Always aim to leave one of these artifacts:

  • a formal check in the repo and a passing/failing command
  • a counterexample witness translated into domain terms
  • a regression guard candidate
  • a concise ledger entry: source, implementation observation, model question, machine result, domain question, decision, lock

If no formal model is worth building, say why and propose the cheaper check.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Formal Methods Reconciler؟

استخدمها لمواءمة مواصفات البرامج والوثائق والاختبارات والإعدادات والشيفرة والسجلات أو الحوادث مع الأساليب الرسمية. تساعد Codex على استخراج الادعاءات، وتحديد ما إذا كانت الوثائق أو التنفيذ هي المصدر المعتمد للحقيقة، واختيار أداة مناسبة مثل Z3 أو Alloy أو TLA+ أو P أو Dafny أو MoonBit prove أو Lean أو Rocq أو Why3 أو Verus أو CBMC أو Tamarin أو ProVerif، وبناء أبسط نموذج مفيد، وتشغيل فحوصات التحقّق أو التخطيط لها، وتحويل نتائج SAT/UNSAT أو المسارات أو إخفاقات الإثبات أو التزامات الإثبات إلى أسئلة بلغة المجال وضوابط لمنع التراجع.

لماذا تستخدم Formal Methods Reconciler على TypingMind؟

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

كيف أثبّت Formal Methods Reconciler في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/mizchi/skills/tree/main/formal-methods-reconciler. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Formal Methods Reconciler؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Formal Methods Reconciler؟

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

هل مهارة الذكاء الاصطناعي Formal Methods Reconciler مجانية؟

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

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

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

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

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

عرض الكل

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

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