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 li-ch/law-skills --skill law-buildgit clone --depth 1 https://github.com/li-ch/law-skillsWrote 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/li-ch/law-skills/law-build)<a href="https://agentmods.dev/skills/li-ch/law-skills/law-build"><img src="https://agentmods.dev/badge/skills/li-ch/law-skills/law-build/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/li-ch/law-skills/law-build"><img src="https://agentmods.dev/badge/skills/li-ch/law-skills/law-build.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.00044 | $0.00955 |
| Opus 5.5 | $0.00018 | $0.00382 |
| Sonnet 5.5 | $0.00009 | $0.00191 |
| Haiku 4.5 | $0.00004 | $0.00096 |
Grade A, and why
law-build 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 2mo 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LAW Build
Compile a LaTeX paper using pdflatex, producing a timestamped PDF main-YYYYMMDDHHMM.pdf. The build script opens this file automatically after compilation.
Workflow
Step 1: Detect platform and run build script
- macOS/Linux:
bash scripts/build.sh - Windows:
build.bat
The script detects whether bibtex is needed by checking for \bibliography{ in main.tex.
Step 2: After build succeeds
Tell the user the build succeeded and show the output filename. Then:
- Run
law-pagecount— counts pages per section from the compiled PDF - Run
law-verify— runs post-build checks (emdashes, refs, cites, formatting) - Commit to git with a meaningful message
If either skill is not installed, tell the user the install command.
Step 3: Commit after build
After every successful build, commit all changes to git. This creates a recoverable snapshot of the paper state at each build.
To generate a meaningful commit message, run git diff --staged (or git diff if nothing staged) and git status --short to see what changed. Summarize the changes in one line. Examples:
- "write §1 introduction with SCQA structure"
- "add §3 system overview and architecture diagram"
- "fix: replace bold numbers with normal text per writing rules"
- "build: add real citations for related work"
- "shrink §4 from 2.5 to 1.8 pages to fit page limit"
If nothing changed (rebuild with no edits), do not create an empty commit. Only commit when there are actual changes.
Use git add -A to stage everything, then git commit -m "message".
Step 4: Check nref.bib for unresolved citations
The paper uses two bib files:
refs.bib— verified citations with complete entriesnref.bib— placeholder entries for citations that need the user to fill in
After every build, check nref.bib:
- Count entries with
TODOin thetitlefield (unresolved) - Count entries without
TODOin thetitlefield (user has filled them in) - For newly filled entries: move them from
nref.bibtorefs.bibby:- Appending the complete entry to the end of
refs.bib - Removing it from
nref.bib
- Appending the complete entry to the end of
- Report to the user:
- "nref.bib: N entries moved to refs.bib, M entries still need attention"
- If any unresolved entries remain, list them with their TODO descriptions
What ships with it
3 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.
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.
- 2mo ago First seen · 82 lines · 44 tokens per session scan A 8c12bd18ea61
law-build is a skill published in the GitHub repository li-ch/law-skills (11 stars, last pushed 9d ago), licensed MIT. It adds 44 tokens to every session and 955 once invoked, about $0.0002 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.
law-build compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| law-buildli-ch/law-skills | Skill | 11 | 9d ago | MIT | A | 44 | Claude Code, Codex |
| pydicomK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 52 | Claude Code, Codex |
| nature-paper2wordYuan1z0825/nature-skills | Skill | 52k | 2d ago | Apache-2.0 | A | 233 | Codex |
| pptx-postersK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 59 | Claude Code |
| nature-paper-transYuan1z0825/nature-skills | Skill | 52k | 2d ago | Apache-2.0 | A | 68 | Codex |
| extracting-lab-tablesmaziyarpanahi/openmed | Skill | 5.8k | yesterday | Apache-2.0 | A | 210 | Claude Code |
| paper-compilewanshuiyin/Auto-claude-code-research-in-sleep | Skill | 19k | 3d ago | MIT | B | 53 | Claude Code |