شعار Legal Citation Comprehensive

Legal Citation Comprehensive

المجتمع
NEU-ZHA
legal-citation-comprehensive

全面法学引注诊断、补全与格式化工具。用于检查混乱脚注、识别缺失要素、说明应去哪里查找缺失信息,并在用户提供来源文件、法条、案例或网页信息时生成符合《法学引注手册(第二版)》的中文/外文法律脚注。适用于法学引注、脚注检查、引注修正、引用格式转换、法律文献引用、法条脚注、案例脚注、论文引注。

Add to TypingMind

نظرة عامة

الناشرNEU-ZHA
المستودعlegal-ai-skills
اسم المهارةlegal-citation-comprehensive
النجوم
70
التفريعات
7
الملفات المرفقة
12
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Legal Citation Comprehensive

Role

This skill is the citation brain. It diagnoses and generates citation text. It does not edit Word files directly; use legal-citation-automator for DOCX insertion.

Primary rule: never invent missing bibliographic facts. If a required element is absent and cannot be extracted from a provided source, mark it as [待补: 要素名] and tell the user where to find it.

Completeness rule: the simplified templates are not the whole handbook. Before giving a final answer for any non-trivial citation, consult a legally obtained copy of the citation handbook or a user-provided rule index. This public repository does not redistribute third-party handbook PDFs or OCR dumps. Use references/citation_rules.json only as a fast execution layer when the user or local installation provides it.

Weak-agent guardrail: if you are unsure, do not improvise. Follow references/operator_guardrails.md exactly. A citation answer is not complete unless it states the source type, missing elements, lookup path, suggested format, and relevant handbook rule numbers.

Quick Workflow

  1. Classify the citation type.
    • Search the user-provided handbook/rule index for the source category and rule numbers.
    • Use references/citation_rules.json for required elements, templates, and handbook anchors when that optional local reference file is available.
    • If the repository lacks full reference data, stop at diagnosis/placeholders and tell the user what source material is needed.
  2. Extract existing elements from the messy footnote or supplied source.
  3. Diagnose missing required and optional elements.
  4. Give source lookup guidance from references/source_lookup_guide.md.
  5. Generate a standard citation.
    • If complete: output the final footnote.
    • If incomplete: output a placeholder version and a precise checklist.
  6. For Chinese Civil Law homework, apply the course-specific statute rule:
    • If正文 only names a statute article, the footnote should include the article text.
    • If正文 already quotes the full article and the footnote adds nothing, omit the footnote.
  7. Run python scripts/self_test.py after changing this skill or before distributing it. Full handbook coverage tests require locally supplied reference data.

Deterministic Helper

For a first-pass report, run:

bash
python scripts/citation_diagnose.py --text "王名扬《美国行政法》第18页"

Or:

bash
python scripts/citation_diagnose.py footnotes.txt --json

The script provides classification, present/missing elements, source lookup hints, and a template-based corrected citation when local rule data is available. Treat script output as a first pass; verify edge cases against the handbook.

Standard Answer Shape

When responding to a user, use this shape unless they ask for something else:

text
识别结果:
- 类型:
- 置信度:

已有要素:
- ...

缺失/需确认要素:
- ...

去哪里找:
- ...

建议格式:
...

注意:
- ...

Source Extraction Rules

  • PDF book: inspect cover, copyright page, title page, table of contents area. Use copyright page for publisher, year, edition.
  • PDF article: inspect first page and page headers/footers. Use article first page for author, title, journal, year, issue, start page.
  • Statute or judicial interpretation: prefer official databases or PKULaw MCP when available. Capture full official name, article number, paragraph/item, current validity, and article text if needed.
  • Case: capture case name, court, docket number, document type, source series/database. Public bulletin, guiding case, and People’s Court Case Library entries use their own formats.
  • Web source: capture author if available, article title, platform/site, publication date, URL, and access date.

Important Rules

  • Chinese books: 作者:《书名》,出版社年份年版,第X页。
  • Chinese journal articles: 作者:《论文名》,载《期刊名》年份年第X期,第X页。
  • Edited collections: 作者:《文章名》,载编者主编:《书名》,出版社年份年版,第X页。
  • Statutes: 《法律名称》第X条第Y款第Z项。 Use Arabic numerals.
  • Normative documents: include document number when available, e.g. 《文件名称》(发文字号)。
  • Cases: include case name, court, docket number, and document type unless citing a special source such as a bulletin or guiding case.
  • Chinese repeat citations use 同前注〔X〕,第Y页。 or a clear short form. Do not use 前引, 同上, supra, or Ibid. for Chinese sources.
  • Direct quotation: no 参见; indirect or conceptual borrowing: use 参见; secondary citation: use 转引自.
  • Statute quotation vs paraphrase: if a footnote says 第X条规定,..., first decide whether the following words are the statute's original text. If yes, use 第X条规定:“……”; if no, rewrite as a paraphrase such as 依第X条,可以说明…… or 参见第X条 and do not make the paraphrase look like quoted law text.
  • Multiple sources supporting the same sentence or proposition belong in one footnote, separated by semicolons. Do not create two adjacent footnotes at the same sentence-final position merely because there are two sources.
  • Use separate footnotes only when the sentence has distinct citation anchors, such as one statute supporting the first clause and another statute supporting a later clause. In that case, place each footnote immediately after the specific article, claim, or clause it supports.
  • Explanatory notes are allowed when they explain the cited source's relevance, but do not hide major legal reasoning in a citation footnote. If the explanation is doing argumentative work, move it into the body and leave the footnote mostly as source support.

Statute Original Text vs Paraphrase

Legal article footnotes often fail when an agent writes a paraphrase as if it were the statute's exact words. Apply this gate before finalizing any statute footnote:

  • Exact or near-exact statutory text: use a colon and Chinese quotation marks.
    • Shape: 《上海市城市管理综合行政执法条例》第11条第2款规定:“……”
  • Paraphrase or synthesis: do not use 规定,... followed by an unquoted sentence. Use 依/根据/参见 and make clear that the writer is summarizing.
    • Shape: 参见《上海市城市管理综合行政执法条例》第11条第2款。依该款,街道办事处具体实施哪些行政执法事项,应以市人民政府确定并公布的事项为准。
  • If the agent cannot verify the wording against an official source, do not add quotation marks around invented text. Mark [待补: 条文原文] or keep the note as a clearly labeled paraphrase.

Footnote Bundling and Placement

When formatting homework or article citations, decide the citation point before writing the footnote:

  • Same proposition, several sources: one footnote, sources separated by ;.
    • Example shape: 参见作者甲:《文章名》,载《期刊名》2023年第2期,第276页;P. G. Biddle, Tree Root Damage to Buildings, ... p.131.
  • Different propositions inside one sentence: split the sentence-level anchors and place each footnote after the clause or legal article it supports.
    • Example shape: 通过《民法典》第580条〔脚注〕处理继续履行排除,通过第583条〔脚注〕处理损害赔偿。
  • Never output two bracketed footnotes or two DOCX footnote references back-to-back after the same punctuation unless the user explicitly asks to preserve an existing defective draft for comparison.

Full Handbook Coverage

The rule index is mandatory for careful work:

  • Rules 1-24: general citation principles, citation placement, repeat citation, punctuation, article metadata.
  • Rules 25-49: printed Chinese publications, authors, editors, translators, titles, editions, publisher/year, pages, chapters.
  • Rules 50-58: online, electronic, broadcast, television, and audiovisual materials.
  • Rules 59-65: unpublished materials, interviews, private correspondence, internal materials, conference papers, theses, archives.
  • Rules 66-86: Chinese legal and official documents, laws, regulations, normative documents, standards, reports, white papers, Hong Kong/Macau/Taiwan legal documents, foreign law, treaties, UN documents.
  • Rules 87-91: judicial cases.
  • Rules 92-94: statistical data and charts.
  • Rules 95-115: foreign-language principles, English sources, English law, English cases.
  • Rules 116-122: French sources.
  • Rules 123-128: German sources.
  • Rules 129-134: Italian and Roman law sources.
  • Rules 135-142: Russian sources.
  • Rules 143-150: Japanese sources.

For any source type not explicitly represented in citation_rules.json, search the user-provided handbook or rule index by rule number or source name. If the OCR text is unclear, verify against the legally obtained original document.

Reference Navigation

  • references/README_REFERENCE_DATA.md: explains which optional reference files are intentionally not redistributed.
  • references/handbook_rule_index.json: optional local full machine-readable index of rules 1-150. Load/search this for exhaustive coverage if the user provides it.
  • references/handbook_rule_index.md: optional readable version of the full index with raw line ranges.
  • references/citation_rules.json: optional machine-readable rule source. Load this first if present.
  • references/missing_elements_matrix.md: quick checklist for missing elements by type.
  • references/source_lookup_guide.md: where to find missing bibliographic facts.
  • references/operator_guardrails.md: strict operating rules for other AI agents.
  • references/common_errors.md: common mistakes and course-specific footnote traps.
  • references/citation_handbook_structured.md: structured digest of the handbook.
  • assets/Law_Journal_Citation_Handbook_2025.pdf: original handbook PDF for final verification when needed.

Reference Data Build

When a user has their own legally obtained copy of the handbook PDF, prefer the deterministic local builder before asking an AI to improvise the reference files:

bash
python3 scripts/build_reference_data.py

The builder checks whether the PDF is searchable, extracts local Markdown, builds the 1-150 rule index, writes citation_rules.json, and then runs validation. If it refuses to overwrite existing files, rerun with --force only after the user confirms they want to rebuild local reference data. If extraction is incomplete, run:

bash
python3 scripts/build_reference_data.py --print-ai-contract

Then use the printed contract to repair the local files.

Reference Data Audit

When a user rebuilds handbook reference data from their own PDF/OCR, do not trust the generated files merely because they exist. If the builder was not used, run:

bash
python3 scripts/audit_reference_data.py
python3 scripts/self_test.py

audit_reference_data.py checks required files, rule count, continuous rule numbers, category ranges, raw line ranges, common rule hints, OCR/mojibake markers, and citation_rules.json shape. If it reports ERRORS, stop and repair the reference data before claiming full handbook coverage.

Relationship to Other Skills

  • legal-citation-automator: use after this skill has produced or approved footnote text; it handles DOCX insertion and compatibility checks.
  • legal-homework-formatter: use for overall Civil Law homework layout, footnote style, and Word/WPS formatting.
  • pkulaw-legal-search: use when missing law or case source facts require legal database retrieval.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Legal Citation Comprehensive؟

全面法学引注诊断、补全与格式化工具。用于检查混乱脚注、识别缺失要素、说明应去哪里查找缺失信息,并在用户提供来源文件、法条、案例或网页信息时生成符合《法学引注手册(第二版)》的中文/外文法律脚注。适用于法学引注、脚注检查、引注修正、引用格式转换、法律文献引用、法条脚注、案例脚注、论文引注。

لماذا تستخدم Legal Citation Comprehensive على TypingMind؟

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

كيف أثبّت Legal Citation Comprehensive في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Legal Citation Comprehensive؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Legal Citation Comprehensive؟

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

هل مهارة الذكاء الاصطناعي Legal Citation Comprehensive مجانية؟

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

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

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

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

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

عرض الكل

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

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