lumen-citations
ما الذي تفعله
تشرح هذه المهارة كيف يستشهد الذكاء الاصطناعي بمقطع من مستند في Lumen، وهي أداة لمراجعة المستندات القانونية. وهي موجهة للمحامين وفرق الشؤون القانونية الذين يحتاجون إلى ربط كل ادعاء بمصدره.
متى تستخدمها
- ✓عندما يكتب الذكاء الاصطناعي ادعاءً عن عقد أو مستند آخر ويجب أن يذكر مصدره.
- ✓عندما يظهر استشهاد على أنه غير موجود في مراجعة Lumen.
- ✓عندما تحتاج إلى أن يطابق كل اقتباس المستند كلمة بكلمة.
رابط المهارة
https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أجب عن سؤالي حول سقف المسؤولية، واستشهد بالبند الدقيق الذي جاء منه.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يجد الذكاء الاصطناعي الفقرة بالبحث، ويقرأها في سياقها، وينسخ الكلمات الدقيقة التي يعتمد عليها، ثم يشغّل فحص الاستشهاد قبل الانتهاء. ويُصحَّح أي اختلاف أولاً.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Citations
Lumen shows every citation to a lawyer next to the source passage, and checks it against the source before the lawyer sees it. A citation that fails the check is shown as "Citation not found". Get it right the first time.
The object
{ "doc_id": "<id from lumen docs>", "a": "p3.12", "quote": "verbatim text from that paragraph" }
ais the paragraph anchor:p<page>.<n>. Take it fromlumen readorlumen search. Never compute it.quoteis copied character for character from ONE paragraph: at most 300 characters, no "..." inside, no paraphrase, case kept.- Quote the words that prove the claim, not the whole paragraph. 8 to 40 words is right.
Get anchors
lumen search --matter <matter_dir> --query "limitation of liability capped" # hits: doc_id, a, snippet
lumen read --doc <doc_id> --anchor p3.12 --context 1 # the paragraph and its neighbours
lumen read --doc <doc_id> # the whole document
Check before you finish
echo '{"citations": [{"doc_id": "...", "a": "p3.12", "quote": "..."}]}' | lumen cite check
| Code | Meaning | Fix |
|---|---|---|
not_found |
The quote is not in the document | Copy the exact words from lumen read output |
wrong_anchor |
The quote is in another paragraph (fixed_anchor) |
Use fixed_anchor |
too_long |
Over 300 characters | Quote fewer words |
unknown_doc |
No such document | Use a doc_id from lumen docs |
lumen result write runs the same check on every citation in a result and refuses the file until each passes.
In chat answers
Write each citation as a Markdown link after the claim:
[1](/cite?d=<doc_id>&a=p3.12&q=<url-encoded quote>). lumen cite check prints this link as link for every citation that passes: paste it, do not encode a quote by hand. A bare [1] with no link is not a citation, and Lumen marks the answer as unchecked. Number them in order. Lumen shows each link as a numbered chip that opens the quoted paragraph. Outside the links, name a document by its filename, never by its doc_id.
Examples
Good:
{"doc_id": "k17", "a": "p2.9", "quote": "Neither party's liability under or in connection with this Agreement"}- exact words, one paragraph.{"doc_id": "k17", "a": "p1.4", "quote": "renews automatically for successive periods of one (1) year"}.{"doc_id": "k22", "a": "p1.6", "quote": "the Customer is entitled to service credits"}.
Bad:
"quote": "liability is unlimited"- a paraphrase. The document says "shall be limited or capped in amount"."quote": "shall not exceed ... twelve (12) months"- an ellipsis inside a quote."a": "3.12"- not an anchor. Anchors look likep3.12.
الأسئلة الشائعة
ما الذي يجعل الاستشهاد يفشل؟
اقتباس غير موجود في المستند، أو موجود في فقرة تختلف عن مرساته، يفشل في الفحص.
كم يجب أن يكون طول الاقتباس؟
اقتبس فقط الكلمات التي تثبت الادعاء، عادة بين 8 و40 كلمة، ولا يتجاوز 300 حرف أبداً.
هل يخترع الذكاء الاصطناعي أرقام الفقرات؟
لا. تقول المهارة إن المراسي تُؤخذ من مخرجات القراءة أو البحث، ولا تُحسب أبداً.
التفاصيل
الوصف الأصلي من المؤلف
How Lumen cites a document - the citation object, how to get anchors, quote rules and `lumen cite check`. Load before writing any claim about a document.
repo: kortix-ai/suna
الشعبية
- نجوم GitHub
- 20k
- الترتيب
- #10381
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
claude-code
20kيتيح لوكيلك تسليم مهمة برمجة أو مراجعة أو تخطيط إلى Claude Code CLI من Anthropic، ثم حفظ النتيجة لفحصها.
codex-cli
20kيتيح لوكيلك تسليم مهمة برمجة أو مراجعة إلى Codex CLI من OpenAI وحفظ النتيجة، حتى يتحقق نموذج ثانٍ من العمل.
commit-dis
20kيتيح لوكيلك حفظ التغييرات التي أجريت في هذه المحادثة فقط كعملية commit واحدة على فرع Git الحالي، دون دفع التعديلات أو إنشاء فرع جديد.
composio
20kيساعد وكيلك على استخدام Composio لربط تطبيقات مثل Gmail وSlack وGitHub وNotion، سواء لوكيلك الخاص أو لمنتج تبنيه.
مهارات مشابهة
graincrawl
394kيتيح لوكيلك البحث في ملاحظات اجتماعات Granola المحفوظة ونصوصها، والتحقق من حداثتها، وعدّها خلال فترة محددة.
notcrawl
394kيتيح لوكيلك البحث في نسخة محفوظة من مساحة عمل Notion، والاطلاع على الصفحات وقواعد البيانات، وتصدير الصفحات إلى ملفات Markdown.
knowledge-entities
394kيساعد وكيلك على تحديد الأشخاص والشركات والمشاريع، ثم كتابة صفحات تعريفية موثقة لها في خزنة Knowledge.