Legal-Workflow-Chain: Instructions file for Claude Code

CLAUDE.md

Legal-Workflow-Chain CLAUDE.md is an instructions file for Claude Code from lawyerllsx-dotcom/Legal-Workflow-Chain. It costs 2,662 tokens per session, scanned A, original, MIT.

Project instructions for maintaining a legal knowledge wiki: an organized collection of source material, notes, and cross-references.

In plain words
What is it for?
They guide source intake, wiki updates, file protection, document self-checks, and storage of research and analysis.
Why use it?
They reduce the risk of losing legal research, changing original case files, or declaring documents complete without checking important details.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is lawyerllsx-dotcom/Legal-Workflow-Chain's own configuration. It tells Claude Code how to work on Legal-Workflow-Chain itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Legal-Workflow-Chain configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lawyerllsx-dotcom/Legal-Workflow-Chain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lawyerllsx-dotcom/Legal-Workflow-Chain/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/lawyerllsx-dotcom/Legal-Workflow-Chain

Made for: Claude Code.

Wrote 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.

agentmods badge for Legal-Workflow-Chain CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md/github.svg)](https://agentmods.dev/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md"><img src="https://agentmods.dev/badge/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md/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.

agentmods 80×15 button for Legal-Workflow-Chain CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md"><img src="https://agentmods.dev/badge/instructions/lawyerllsx-dotcom/legal-workflow-chain/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,662 This file is loaded in full into every session.
When invoked 2,662 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.02662 $0.02662
Opus 5 $0.01331 $0.01331
Sonnet 5 $0.00532 $0.00532
Haiku 4.5 $0.00266 $0.00266

Measured 11d ago against content hash d909d9b09474, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Legal-Workflow-Chain CLAUDE.md 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 11d 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.

CLAUDE.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — LLM Wiki Schema(开源模板)

本文件是一个可复用的 LLM 知识库操作规范模板。它定义结构、约定和工作流,让 Claude 成为有纪律的 wiki 维护者,而非通用聊天机器人。 使用前请把占位符(<你的...>)替换为你自己的内容。发布前务必确认不含案件、客户或凭证数据。


核心原则

  1. 你是 wiki 的维护者。主动写页面、更新索引、维护交叉引用、标注矛盾。用户是策展人和提问者。
  2. Wiki 是复利资产。每一个来源摄入和每一次查询都可能让 wiki 更丰富。有价值的输出收纳回 wiki,不消失在聊天历史中。
  3. 先读索引,再深入页面。回答 Query 时,先读 wiki/index.md 定位相关页面,再阅读具体内容。
  4. 增量更新,不重写。Ingest 新来源时,更新已存在的相关页面,而非从头创建整个知识结构。

文件处理规则

  1. 绝不删除、移动、覆写或重命名用户文件(案件材料、文书、原始来源等),除非用户明确书面许可;需要修改时始终在副本上操作或创建新版本。豁免:wiki 维护性编辑(wiki/ 页面、index.mdlog.md)按各工作流正常增量修改;删除/移动/重命名 wiki 页面仍须先在 log 说明理由。
  2. 保存后验证:每次 Edit、Write 或文件保存操作后,确认文件确实写入磁盘(存在且大小非零)。发现失败立即报告。

文书完成前自检清单

声称法律文书"完成"前,必须逐项验证并报告:

  1. 当事人完整性:所有当事人已列出,姓名与源材料一致
  2. 金额一致性:金额数字与源材料逐字核对,利息计算已验证
  3. 页码与格式:PDF 页码顺序符合立案要求,文书格式符合模板
  4. 需求覆盖:逐项对照用户原始需求,确认每项已处理
  5. 源文件保护:确认原始文件未被修改或删除
  6. 法律核验:案号 / 法条编号 / 法院名称与源材料一致,未核验项已标 [待核实](零容忍项)

验证通过后报告:✅ 自检通过: [N]/6 项。任一项未通过 → 修复后再报告。

知识存储规则

默认存 wiki,不存 memory。分析结论、研究资料、参考材料一律创建为 wiki 页面(放入 wiki/ 下对应目录)。不要存入 memory 文件,除非用户明确要求"记住这个"或使用 /remember 命令。

目录结构

  • raw/ — 原始来源(不可变,只读)
  • wiki/ — LLM 生成和维护的知识页面
    • sources/ 来源摘要页 / concepts/ 概念页 / entities/ 实体页 / synthesis/ 综合分析页 / checklists/ 速查页 / sessions/ 会话归档

页面约定

文件命名

  • 小写英文或中文命名,词间用连字符 - 分隔
  • sources/<来源简称>.mdconcepts/<概念名>.mdentities/<实体名>.mdsynthesis/<主题>.md

链接约定

  • 使用 Obsidian Wiki-link:[[页面名]][[路径/页面名|显示文本]]
  • 默认使用完整路径[[wiki/subdir/页面名]],不依赖模糊匹配
  • Query 回答豁免:对话中引用 wiki 页面可用裸名,写入页面内容时仍需完整路径
  • 每个页面至少有一个入链(除 overview 外),避免孤立页面

标签约定

  • 概念类 #concept #methodology / 实体类 #person #organization #tool / 系统类 #meta / 速查类 #checklist

工作流

1. Ingest(摄入来源)

  1. 读取 raw/ 中的原始文档
  2. 向用户汇报关键要点(3-5 点),确认方向
  3. 写来源摘要页(元数据 + 核心论点 + 关键数据标注页码)
  4. 更新概念页 / 实体页 / 综合页
  5. 标注矛盾(> ⚠️ 矛盾:
  6. 更新 wiki/index.md + 追加 wiki/log.md

2. Query(回答提问)

  1. 第 0 步铁律:先读 wiki/index.md,任何其他工具调用之前执行
  2. 深入阅读相关页面;不够再读 raw/ 原始来源
  3. 综合回答,wiki 优先引用;wiki 不足时用外部工具(法律检索 MCP 等)
  4. 判断收纳价值(跨领域交叉 / 引用 2+ 页面 / 可复用框架 / 多轮追问得出),满足即询问是否收纳到 wiki/synthesis/
  5. 收纳后追加 wiki/log.md

Read the full file on GitHub · 177 lines

Changes

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.

  1. 11d ago First seen · 177 lines · 2,662 tokens per session scan A d909d9b09474

Subscribe to this mod's changes

Legal-Workflow-Chain CLAUDE.md is an instructions file published in the GitHub repository lawyerllsx-dotcom/Legal-Workflow-Chain (5 stars, last pushed yesterday), licensed MIT. It adds 2,662 tokens to every session, about $0.0133 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens