Borrowing it
Nothing to install: this file belongs to lawflow-boop/LawLink. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lawflow-boop/LawLink/main/AGENTS.mdgit clone --depth 1 https://github.com/lawflow-boop/LawLinkWrote 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/instructions/lawflow-boop/lawlink/agents-md)<a href="https://agentmods.dev/instructions/lawflow-boop/lawlink/agents-md"><img src="https://agentmods.dev/badge/instructions/lawflow-boop/lawlink/agents-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.
<a href="https://agentmods.dev/instructions/lawflow-boop/lawlink/agents-md"><img src="https://agentmods.dev/badge/instructions/lawflow-boop/lawlink/agents-md.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.30185 | $0.30185 |
| Opus 5.5 | $0.12074 | $0.12074 |
| Sonnet 5.5 | $0.06037 | $0.06037 |
| Haiku 4.5 | $0.03019 | $0.03019 |
Grade A, and why
LawLink AGENTS.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 1mo 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 — 483 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LawLink 工作区规则
这是项目的"约束先行"文档。任何 AI 助手(含 Claude Code)或人类协作者在本仓库工作前,必须先读完本文件。 规则与实践冲突时,先改本文件、再改代码。
一、项目定位
- LawLink 是面向独立律师、小团队和小型律所的开源、自部署案件/项目管理系统。
- 品牌标语(2026-09-21 用户定稿):事有经纬,案有始终。 README、GitHub 仓库简介及后续品牌展示统一使用此句;产品功能说明另行保留。
- 第一版主线工作流:
收案登记 → 冲突检索 → 转正式案件 → 持续跟进 → 财务记录 → 结案归档 → 数据导出 - 不做共享 SaaS 多租户。一个律所/团队部署一套实例,单体应用 + 单库。
- 协议:MIT。
二、技术栈(已定型)
| 层 | 选型 | 说明 |
|---|---|---|
| 框架 | Next.js 16 App Router + TypeScript | SSR + RSC,单仓单进程 |
| UI 组件 | shadcn/ui + Radix UI | 拷贝式组件,深度可定制 |
| 样式 | Tailwind CSS | 高密度浅色工作台,保留主题扩展能力 |
| 动效 | Framer Motion | 微交互、页面切换 |
| React | React 19 | Next.js 16 配套 |
| 图标 | lucide-react | |
| 图表 | Recharts | 工作台、财务统计 |
| 表单 | React Hook Form + Zod | |
| 表格 | TanStack Table | 表头筛选、排序、分页 |
| 数据库 | PostgreSQL 16 + Prisma 5 | |
| 鉴权 | NextAuth.js(Credentials Provider) | 邮箱密码登录 |
| 部署 | Docker Compose(app + postgres) |
已弃用:Ant Design。不要再引入 antd 或 @ant-design/*。
预留接入(V1.5):元典开放平台 MCP(law/case/company),用于冲突检索增强和企业核查。
三、目录约定
LawLink/
├── docs/ # 设计文档(PRD / DATA-MODEL / UI-DESIGN)
├── prisma/ # schema、迁移、seed
├── public/ # 静态资源
├── storage/ # 本地私有文件(不入 git)
├── src/
│ ├── app/ # 路由与 Route Handler
│ │ ├── (auth)/ # 登录、注册路由分组
│ │ ├── (app)/ # 登录后的主应用路由分组
│ │ ├── (admin)/admin/ # 独立管理后台页面壳;仍复用同一登录、服务层与数据库
│ │ └── api/ # API 路由
│ ├── components/
│ │ ├── ui/ # shadcn/Radix 原子组件与全局无障碍、动效适配
│ │ ├── patterns/ # LawLink 跨页面视觉与交互模式
│ │ ├── layout/ # AppShell、Sidebar、Topbar
│ │ ├── matters/ # 案件相关组合组件
│ │ └── ...
│ ├── lib/ # 业务规则、工具函数、Prisma client
│ │ ├── auth/ # NextAuth 配置、session helpers
│ │ ├── permissions/ # 角色权限、案件可见性
│ │ └── ...
│ ├── server/ # Server Actions、服务层
│ ├── types/ # 共享 TS 类型
│ └── styles/ # globals.css、Tailwind config 扩展
└── tests/ # (V1.5 引入)
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.
- 1mo ago Changed · +6 lines · +986 tokens per session d85bf6e7dc37
- 1mo ago Changed · +215 lines · +22,282 tokens per session e6f1d8d5f698
- 1mo ago Changed · +93 lines · +4,424 tokens per session a1d1e5890be5
- 2mo ago First seen · 169 lines · 2,493 tokens per session scan A 4da566ea4ca0
LawLink AGENTS.md is an instructions file published in the GitHub repository lawflow-boop/LawLink (103 stars, last pushed 6d ago), licensed MIT. It adds 30,185 tokens to every session, about $0.1207 per session on Opus 5.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-30.
LawLink AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| LawLink AGENTS.mdlawflow-boop/LawLink | Instructions file | 103 | 6d ago | MIT | A | 30,185 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |