law-revise

law-revise is a skill for Claude Code, Codex from li-ch/law-skills. It costs 58 tokens per session (618 once invoked), scanned A, original, MIT.

A revision workflow for implementing changes listed in a paper’s todo.md file, which is a checklist of required edits. It rebuilds the LaTeX paper after each change.

In plain words
What is it for?
Use it to update paper sections, rebuild the document, commit each completed revision item, and report remaining or blocked work.
Why use it?
It turns scattered review feedback into a tracked sequence of edits and stops when a build fails or an item needs experiments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to update paper sections, rebuild the document, commit each completed revision item, and report remaining or blocked work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/li-ch/law-skills/law-revise
Install

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.

Any agent
npx skills add li-ch/law-skills --skill law-revise
Clone the repo
git clone --depth 1 https://github.com/li-ch/law-skills

Made for: Claude Code, Codex.

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 law-revise

README.md
[![agentmods](https://agentmods.dev/badge/skills/li-ch/law-skills/law-revise/github.svg)](https://agentmods.dev/skills/li-ch/law-skills/law-revise)
Your own site
<a href="https://agentmods.dev/skills/li-ch/law-skills/law-revise"><img src="https://agentmods.dev/badge/skills/li-ch/law-skills/law-revise/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 law-revise

Your own site · 80×15
<a href="https://agentmods.dev/skills/li-ch/law-skills/law-revise"><img src="https://agentmods.dev/badge/skills/li-ch/law-skills/law-revise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 618 The whole file, excluding the scripts and references it only reads on demand.
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.00058 $0.00618
Opus 5.5 $0.00023 $0.00247
Sonnet 5.5 $0.00012 $0.00124
Haiku 4.5 $0.00006 $0.00062

Measured 2mo ago against content hash 8f7df441bd44, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

law-revise 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.

law-revise/SKILL.md · 61 lines

How it starts

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

LAW Revise

Implement revision items from the paper's todo.md, rebuilding and committing after each change.

Workflow

Step 1: Read todo.md

Read the paper's todo.md to understand which items to implement and their priority.

If the item is marked ⏳ WAITING ON DATA or requires experiments (code execution, data collection, hardware access), do not attempt to implement it. Tell the user: "This item requires experiments the agent cannot run. Use law-call4expr to create an experiment guide if one doesn't already exist."

Step 2: Implement one item at a time

For each item the user asks to implement:

  1. Read the relevant .tex file(s) from sections/
  2. Make the change described in the todo.md item
  3. Run law-build to rebuild the paper
  4. If build succeeds: commit with message [R{n}] {item-code}: {description}
  5. If build fails: stop immediately and report the error to the user. Do NOT continue to the next item.

Step 3: Cross-section items

If an item affects multiple sections (e.g., "R1-3: Fix convergence proof (§4.2, §7.2)"), edit ALL affected files before rebuilding and committing. Do not commit partial changes.

Step 4: After all items

Produce a summary:

  • Items completed
  • Items deferred (not asked to implement)
  • Any build failures encountered
  • Remind user to run law-verify if it wasn't already run by law-build

Commit message format

[R{n}] {item-code}: {short description}

Example:

[R1] R1-1: add coherence model subsection to §4.3

Agent decides commit granularity. If a change is simple (one paragraph), one commit. If a change touches multiple files and is conceptually one item, also one commit. If the changes are logically separate, separate commits.

Safety rules

  • Never implement items the user did not explicitly ask for
  • Never create new citations — use ~\cite{} with empty braces if a citation is needed
  • Never modify section labels (\label{}) unless the item explicitly requires it
  • Never change the document class or style files
  • If an item says "add a figure" but the figure doesn't exist, use figs/placeholder.png and add \textcolor{red}{TODO: add figure} to the text
  • After build failure: show the user the error from temp/main.log, do not guess at fixes

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file 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.

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. 2mo ago First seen · 61 lines · 58 tokens per session scan A 8f7df441bd44

Subscribe to this mod's changes

law-revise is a skill published in the GitHub repository li-ch/law-skills (11 stars, last pushed 9d ago), licensed MIT. It adds 58 tokens to every session and 618 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.

Related

law-revise compared with skills from other repositories

law-revise next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
law-reviseli-ch/law-skillsSkill119d agoMITA58Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code