شعار Consistency Audit

Consistency Audit

مؤسسة
bis-med-it
consistency-audit

On-demand framework self-audit. Checks the three layers (skills ↔ lib ↔ dictionary) for drift, internal inconsistency, and doc-vs-practice mismatch. Use when the user asks to "audit the framework", "check for consistency / drift", "is the workflow consistent", "go through the end-to-end process", before a release or promotion, or after a batch of edits to skills, lib, or the dictionary. This is NOT a stage of the 7-stage research loop; it is a maintenance pass run occasionally, on demand, by a framework developer.

نظرة عامة

الناشرbis-med-it
المستودعmarco-BIS
اسم المهارةconsistency-audit
النجوم
28
التفريعات
6
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bis-med-it/marco-BIS.git /tmp/marco-BIS
mkdir -p .claude/skills
cp -r /tmp/marco-BIS/skills/consistency-audit .claude/skills/consistency-audit
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Consistency audit

The framework's three layers (the skills/ workflow + knowledge, the scripts/lib/ implementation, and the skills/model-dictionary/ specs) must not silently drift out of agreement.

There are two layers of defence, and you run both:

LayerWhereCadenceCatches
Mechanicaltests/test_doc_consistency.pyevery test run (automated)YAML parse breaks, index↔entries drift, stale module/entry counts, invalid verified.status, broken skill→file links, dangling lib.* references, replication folders missing core files
Semanticthis skillon demandstage-numbering coherence, propose/confirm choreography, doc-vs-practice, orphaned/overlapping skills, terminology drift (the judgement calls a regex can't make)

The mechanical layer is necessary but not sufficient: a green test suite with an incoherent workflow is still broken. Run the semantic pass too.

When to run

  • The user asks to audit / check the framework, or to "go through the end-to-end process".
  • Before promoting work to canonical, or before a release.
  • After a batch of edits to skills, lib, or the dictionary, especially a paper rebuild. Rebuilds can silently break dependent tests and docs.

Procedure

Step 1: Mechanical checks (fast, deterministic)

python -m pytest tests/test_doc_consistency.py -q

Every failure is a concrete drift with a file:line. Fix or report each. If during the audit you find a new class of drift that is mechanically checkable (a count, a reference, a parse, a path), encode it as a new test here so it can never regress. That is how the mechanical layer grows.

Step 2: Semantic audit (judgement)

A regex can't read meaning. By reading the skills, check:

  1. Stage-numbering coherence. The orchestrator is the source of truth: Stages 0a (knowledge-base initialisation) and 0b (intake & triage) fold into the Stage-1 log entry; Stage 1 = mode-specific entry flow, 2 = specification, 3 = data, 4 = estimation, 5 = sensibility, 6 = results, 7 = disposition. Every sub-skill that names a stage must match.
  2. Propose → confirm choreography. Every decision-point skill must propose a specific choice with rationale and wait for confirmation, never blank-ask (design principle 3). Flag any skill that merely describes.
  3. Doc-vs-practice. Spot-check that what the skills / CLAUDE.md claim matches what the code does: output paths, default hyperparameters, file locations, method availability.
  4. Orphaned / overlapping skills. Is every skill in the orchestrator's invocation table reachable from a stage (or clearly marked optional/on request)? Do two skills run the same check without a stated division of labour?
  5. Terminology / vocabulary. The same concept uses the same name across skills, e.g. the three verified.status levels (draft | checked_against_paper | signed_off), the mode labels (A/B/C).
  6. Source-priority agreement. Every statement of the knowledge-source cascade uses the one canonical order, user > model dictionary > knowledge base > parametric > data-driven, with economic logic checked at every level, defined once in specification/SKILL.md.

Step 3: Live execute smoke (prove the path, not just the prose)

Run one fast verified replication end-to-end and confirm it still passes its paper targets:

python scripts/replications/blanchard_quah_1989/replicate.py

Expect a 6/6 paper-target comparison table and output files under the script's co-located outputs/. A clean mechanical + semantic audit with a broken execute path is still a broken framework.

Step 4: Report & fix (propose, confirm)

Compile a prioritized findings list (P1 misleads the agent or user · P2 real friction or latent contradiction · P3 polish), each item with a file:line and a one-line fix. Per design principle 3, propose the fixes and wait for the user's confirmation before editing; then re-run Steps 1–3 to green. Record the audit (date, findings, dispositions) in your own notes, and update CONVENTIONS.md or docstrings where a finding changes behaviour.

Adding new invariants

When the audit surfaces a new class of drift, decide where it belongs:

  • Mechanically checkable (counts, references, parse-ability, paths, schema) → add a test to tests/test_doc_consistency.py. Prefer this: it runs continuously and can't be forgotten.
  • Judgement-only (semantics, choreography, design coherence) → add a bullet to Step 2 above so the next on-demand audit covers it.

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

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

On-demand framework self-audit. Checks the three layers (skills ↔ lib ↔ dictionary) for drift, internal inconsistency, and doc-vs-practice mismatch. Use when the user asks to "audit the framework", "check for consistency / drift", "is the workflow consistent", "go through the end-to-end process", before a release or promotion, or after a batch of edits to skills, lib, or the dictionary. This is NOT a stage of the 7-stage research loop; it is a maintenance pass run occasionally, on demand, by a framework developer.

لماذا تستخدم Consistency Audit على TypingMind؟

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

كيف أثبّت Consistency Audit في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/bis-med-it/marco-BIS/tree/main/skills/consistency-audit. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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