شعار Verified Citations

Verified Citations

المجتمع
randommonicle
verified-citations

Stops fabricated and drifted references in any document that cites code, schema, config or history. Load BEFORE writing or reviewing a handover, design doc, plan, spec, decision log, lessons entry, audit, review report, PR description, or commit message that points at files, line numbers, migrations, commits, PRs or dates. The failure it prevents is specific and measured, a model grounds technical facts correctly while inventing the PATH around a borrowed line number, drifting a line number onto a blank line, citing a range that spans unrelated blocks, or misattributing when something landed, and then self-reports that everything was verified. Triggers on file:line, "landed in PR", "added on", "see some/file.ts", migration numbers, or any claim a reader would act on without re-deriving. Do not load for writing code itself.

نظرة عامة

الناشرrandommonicle
المستودعclaude-skills
اسم المهارةverified-citations
النجوم
27
التفريعات
3
الملفات المرفقة
1
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Verified citations

A citation is output you produced, never a reference you recalled. This skill exists because recall is confident and wrong in a narrow, repeatable way, and because the model committing the error reliably reports that it checked.

The measured failure mode

Two independent runs on the same repository, one building a skill library, one authoring an implementation design, both reviewed by a different model:

  • 58 of 62 citations exactly right. Trigger names, ERRCODEs, migration numbers, statutory message prefixes, function signatures: all correct. Technical grounding is not the weakness.
  • The misses were all about WHERE and WHEN, not WHAT:
    • A path invented around a borrowed line number. A spec named a file with no directory and cited :47-49. The author reproduced the line numbers correctly and fabricated a plausible directory to complete the reference. The file was real; the path was not.
    • A line number drifted onto nothing. :239 was cited as a function; 239 was a blank line between two functions.
    • Ranges that were loose rather than wrong. A cited :82-118 contained the claimed content and also a comment block and a grants preamble, presented as one coherent thing.
    • Provenance misattributed. "Landed 2026-07-01 under audit C4" when git log --follow showed 2026-06-15 under C5.
  • Every run self-reported full verification. The error is invisible from the inside. That is the single most important fact in this file.

The rule that does the work

Every file:line citation carries the quoted text of the line it points at.

This is not a style preference. It is the only rule here that cannot be satisfied by intending to be careful, because you cannot quote a line without having opened the file at that path and looked at that line. It kills the two commonest failures outright: a fabricated path has no line to quote, and a drifted line number quotes a blank string.

It also makes review mechanical. A reviewer runs sed -n 'Np' FILE and compares, instead of re-deriving your argument to decide whether they believe you.

If quoting every line would bloat the document, quote in the citations table at the end (below) and keep bare file:line inline. The table is the evidence; the inline reference is the pointer.

Four supporting rules, one per observed failure

  1. Never complete a partial reference from another document. If a source names a file without a directory, or a symbol without a file, resolve it yourself with a glob or find and cite what the search returned. Inheriting :47-49 from someone else's citation does not license inventing the path it hangs off. Correct line numbers are not evidence of a correct path.

  2. Cite the narrowest range that contains the claim, and check both boundaries. A range is a claim that everything inside it is the thing you are describing. Read the first and last line of any range you cite. If they belong to different constructs, the range is wrong even though the content is in there somewhere.

  3. Provenance is the highest-risk class and needs its own command. Any claim of the form "added on DATE", "landed in PR N", "shipped under audit item X", "introduced by commit SHA" requires git log --follow, git show, or the forge's API, run now. Never carry a date, PR number or SHA from memory or from a summary. In a squash-merge repository, note that "merged" is a PR fact and not a git-ancestry fact, so git branch --merged will lie to you in both directions.

  4. Write "unverified" out loud. An explicit gap costs a reader nothing. A confident wrong citation costs a reviewer their entire pass and can outlive the document in things that quote it. If a tool was unavailable or the check was skipped, say which claim is affected and why.

The output contract

End any document that makes more than a handful of citations with a table the reviewer can check mechanically:

ClaimPathLineQuoted textHow verified

"How verified" is the command you actually ran (grep -n, sed -n, git log --follow, git show). If a row cannot name a command, it is unverified and must say so in that column.

"I verified everything" is not admissible. The table is the evidence. Do not write a summary sentence claiming the citations were checked, because that sentence has been true-sounding and false in every recorded instance of this failure.

Scope, and what this does not replace

This applies to whoever is writing, not to one model. The same session that caught a design agent inventing a directory also produced two first-hand errors of the same genus, both asserted confidently from structural inference, both one command away from being settled: "widening this trigger alone would break production" (the caller made it irrelevant) and "the CLI is not installed on this machine" (it was simply not on PATH). A reference you derived is not safer than one you were handed. It only feels safer.

Adjacent rule, same root: a failure message is a symptom, not a diagnosis. "Not recognized" means not on PATH. Establish that a blocker is real before designing around it, because a workaround built on a phantom blocker is usually worse than the path it replaced, and it will not be reviewed as carefully because it looks like a solved problem.

This skill lowers the error rate. It does not remove the need for an independent verification pass. The 58/62 figure above was achieved without this skill, and the reviewer still earned its keep on the two that mattered. If a workflow adopts this and quietly drops the adversarial review because "the skill handles it", that trades a control that works for one that merely feels diligent.

When you do run that review, brief it at provenance specifically. A reviewer asked to critique a document returns opinions. A reviewer asked to verify every path, line and date against the repository returns findings.

Statutory, legal, and domain facts (added 2026-07-23)

The same discipline extends beyond code and history to any encoded real-world obligation:

  • Verify Act, year, AND Part against the primary source (legislation.gov.uk for UK statutes); model memory produced two confident wrong "facts" headed for a statutory register (a non-existent statutory interval; a mis-attributed legal basis).
  • Count a statutory period by its own words. "Beginning with the day X" is conventionally read as including day X; other wordings ("after", "from", "clear days") can exclude it. The authority for these readings has not been retrieved into this library, so where a deadline turns on a single day, read the authority, or choose a date valid under every reading.
  • Data that encodes an obligation (statutory frequencies, legal bases, deadlines) cites its primary source in the artifact itself, so the next reader verifies rather than trusts.
  • A specialist reviewer contradicting the brief on law earns a primary-source check, not an override — the brief handed to a verifier is itself a claim.

Single-homing note: "a failure message is a symptom, not a diagnosis" lives canonically in findings-are-evidence; this skill defers to it.

Routes

  • Generated client documents (rewrites, owner-only facts, machine-parsed output) → load deliverable-integrity.
  • Customer-facing certification/statistic claims → load substantiate-outward-claims.
  • Producing a handover → load handover.
  • Auditing the citations in a finished or received legal document → load legal-citation-integrity.

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

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

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

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

Stops fabricated and drifted references in any document that cites code, schema, config or history. Load BEFORE writing or reviewing a handover, design doc, plan, spec, decision log, lessons entry, audit, review report, PR description, or commit message that points at files, line numbers, migrations, commits, PRs or dates. The failure it prevents is specific and measured, a model grounds technical facts correctly while inventing the PATH around a borrowed line number, drifting a line number onto a blank line, citing a range that spans unrelated blocks, or misattributing when something lande...

لماذا تستخدم Verified Citations على TypingMind؟

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

كيف أثبّت Verified Citations في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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