Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lawyerllsx-dotcom/Legal-Workflow-Chain --skill legal-citation-comprehensivegit clone --depth 1 https://github.com/lawyerllsx-dotcom/Legal-Workflow-ChainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/legal-citation-comprehensive)<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/legal-citation-comprehensive"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/legal-citation-comprehensive/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/legal-citation-comprehensive"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/legal-citation-comprehensive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.03092 |
| Opus 5 | $0.00060 | $0.01546 |
| Sonnet 5 | $0.00024 | $0.00618 |
| Haiku 4.5 | $0.00012 | $0.00309 |
Grade A, and why
legal-citation-comprehensive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
接力模式检测(所有 skill 通用规则)
加载后静默检查:若上下文存在 [Skill接力: legal-citation-comprehensive] → 接力模式。
- 跳过用户身份询问、新手引导、输出格式选择
- 从上一 skill 的"接力上下文"+"待办"字段直接获取输入
- 聚焦完成待办任务,不主动扩展分析范围
Legal Citation Comprehensive
不触发情况(强制排除 —— 满足任一即不触发)
| 用户意图 | 应交由 |
|---|---|
| 检索法条/案例(找法律依据) | legal-research |
| 撰写/起草法律文书正文 | legal-fact-checker |
| 核查文书事实准确性 | legal-fact-checker |
| 识别/梳理争议焦点 | dispute-issue-identification |
| 三段论推理/涵摄分析 | deductive-reasoning |
| 整理证据材料到模板 | evidence-catalog-generator |
| 编辑 .docx 文件格式 | docx-editing |
| 仅解决法条竞合/规范冲突 | conflict-resolution |
判定口诀:用户只关心"脚注格式/引注规范/引用格式"→ 本 skill;用户要"写正文/查法条/核事实/改格式"→ 不触发。
多 Skill 协作接力协议(2026-07-17 更新)
加载后立即执行:检查用户请求是否同时需要本 skill 不覆盖的能力。
前置接力(先核查/推理再引注)
如果用户请求包含"核查/检查案例是否真实/法规是否过时"等事实核查,但引注来源未经核实 → 必须先由 legal-fact-checker 核查:
[Skill接力: legal-fact-checker]
接力上下文: 需要先核查引注中引用的法规效力和案例真实性
待办: 核查完成后回到 legal-citation-comprehensive 格式化脚注
如果用户请求包含"撰写/写作/起草/写"等创作任务(如"写一份案例分析/法律意见书+脚注"),本 skill 只负责脚注格式,必须先由 legal-fact-checker 完成写作:
[Skill接力: legal-fact-checker]
接力上下文: 用户要求撰写法律文书,本 skill 只负责引注格式化,写作任务需先由 fact-checker 完成
待办: 写作完成后回到 legal-citation-comprehensive 格式化脚注
引注内容中发现的推理问题分流
在格式化引注时,引注中的法条或案例引用出现异常时的分流:
| 引用异常 | 接力到 | 说明 |
|---|---|---|
| 引用的法条已失效或被修改 | legal-research | 检索现行有效版本后回到引注格式化 |
| 同一观点引用了多个冲突法条 | conflict-resolution | 确定优先引用哪个后回到引注格式化 |
判定关键词:写、撰写、起草、帮我写、帮我做一份
接力前自检(输出接力标记前强制执行)
□ 接力目标是否正确?(引注来源未核实 → fact-checker;法条失效 → legal-research;多法条冲突 → conflict-resolution) □ "待办"字段是否包含了需要核验的具体法条编号或案例名称? □ 本 skill 的核心任务(引注格式化)是否确实已完成或已确认需前置处理?
执行自检通过后在接力标记前输出确认行:✅ 接力自检通过: 目标正确([skill-name]) | 待办完整 | 本skill任务已完成
接力标记格式
[Skill接力: next-skill-name]
接力上下文:
- 结论: {一句话核心结论}
- 依据: {关键法条/事实/证据,分条列出}
- 置信度: {高/中/低 + 理由}
- 待核验项: {需下一 skill 或人工核实的点;无则填"无"}
待办: {下一个 skill 需要完成的具体任务}
注意:本 skill 通常是法律工作流的最后一站(格式化工序),后置接力场景较少。如用户的引注要素缺失且无法从已有材料提取,应先接力到 legal-research 补全来源信息。
诊断/格式化完成后,末尾提示用户:如需在原文书中直接修正脚注或引注,可让我用 docx-editing 打开编辑。
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/citation_types.md 15 KB
- references/common_errors.md 13 KB
- references/missing_elements_matrix.md 2.2 KB
- references/operator_guardrails.md 2.6 KB
- references/README_REFERENCE_DATA.md 3.5 KB
- references/source_lookup_guide.md 2.4 KB
- scripts/analyze_citation.py 34 KB runs code
- scripts/audit_reference_data.py 11 KB runs code
- scripts/build_reference_data.py 26 KB runs code
- scripts/citation_diagnose.py 17 KB runs code
- scripts/handbook_lookup.py 2.1 KB runs code
- scripts/self_test.py 7.6 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 239 lines · 119 tokens per session scan A 2ca3442ca666
legal-citation-comprehensive is a skill published in the GitHub repository lawyerllsx-dotcom/Legal-Workflow-Chain (5 stars, last pushed 2d ago), licensed MIT. It adds 119 tokens to every session and 3,092 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
tw-legal-rag
A tool for finding real Taiwan court judgments and legal interpretations with verifiable citations before answering questions about Taiwan law.
legal-research
A legal research skill for finding and analysing laws and court cases, including similar cases. It requires access to a reliable legal research database before producing a formal report.
document-fill
A document-filling assistant that uses a supplied template and case files to fill in forms, contracts, or legal documents. It also reports where each filled value came from and which details are missing.
contract-review
A contract-review workflow for agreements governed by Chinese law, United States law, or both. It examines clauses one by one and produces a list of legal-risk questions, with an optional marked-up Word document.
legal-kb-builder
A tool for turning legal documents and other source material into a searchable local knowledge base. It supports sources such as PDF, DOCX, images, Markdown, and question-and-answer sets.
kr-patent-consistency-check
A Korean patent-document checker for comparing a patent specification, drawings, and claims—the sections that describe an invention and define its legal protection.