law-to-markdown

law-to-markdown is a skill for Codex from anbeime/skill. It costs 86 tokens per session (1,250 once invoked), scanned A, original, no licence file.

A legal-document conversion skill for turning PDF, Word, or plain-text regulations into structured Markdown. Markdown is a text format that uses simple symbols for headings and lists.

In plain words
What is it for?
Extracting text with OCR, identifying legal hierarchy, checking conversion accuracy in three stages, and producing Markdown statutes with a review report.
Why use it?
It helps preserve the structure of long legal documents and provides checks for the converted text.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Extracting text with OCR, identifying legal hierarchy, checking conversion accuracy in three stages, and producing Markdown statutes with a review report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anbeime/skill/law-to-markdown
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 anbeime/skill --skill law-to-markdown
Clone the repo
git clone --depth 1 https://github.com/anbeime/skill

Made for: 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-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/anbeime/skill/law-to-markdown.svg)](https://agentmods.dev/skills/anbeime/skill/law-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/anbeime/skill/law-to-markdown"><img src="https://agentmods.dev/badge/skills/anbeime/skill/law-to-markdown.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,250 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown 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.00086 $0.01250
Opus 5 $0.00043 $0.00625
Sonnet 5 $0.00017 $0.00250
Haiku 4.5 $0.00009 $0.00125

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

Security

Grade A, and why

law-to-markdown 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 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cn_law_normalizer.py, scripts/law_to_markdown.py, scripts/stage3_checker.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/legal-assistant-skills-main/law-to-markdown/SKILL.md · 88 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

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

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. 8d ago First seen · 88 lines · 86 tokens per session scan A d857ce89bf34

Subscribe to this mod's changes

law-to-markdown is a skill published in the GitHub repository anbeime/skill (6,285 stars, last pushed yesterday), with no licence file. It adds 86 tokens to every session and 1,250 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

okhp3-sharepoint-library-contract-extractor

Extract specified obligation, renewal, notice, owner, counterparty, and risk fields from selected SharePoint contract files into a review queue. Use when contracts need operational visibility. Do not use to interpret legal obligations, update records, or send notices automatically.

OKHP3/skillz · 60 tokens

patent-reader

A plain-language reader for Chinese patents that turns a publication number or PDF into notes, diagrams, and an Obsidian entry. Obsidian is a note-taking app that stores linked Markdown files.

handsomestWei/patent-disclosure-skill · 31 tokens

software-certificate-skill

An automated workflow for preparing Chinese software-copyright registration materials from a real software project. It produces application information, an operation manual, and source-code documents with evidence from the project.

IvanCodesDev/software-certificate-skill · 170 tokens

court-sms

A workflow that reads court text messages or delivery links, extracts case details, downloads court documents, and files them in the matching case folder.

ThomasMoreAI/legal-skills-open · 54 tokens

tutor-setup

Transforms knowledge sources into an Obsidian StudyVault. Two modes: (1) Document Mode — PDF/text/web sources → study notes with practice questions. (2) Codebase Mode — source code project → onboarding vault for new developers. Mode is auto-detected based on project markers in CWD.

bevibing/tutor-skills · 66 tokens

pdf-editor

Use when the user needs to modify a PDF template — replacing variables like names, dates, amounts, or branding elements while preserving the original layout, fonts, colors, underlines, and spacing. Covers the full pipeline: analyze PDF structure (text layer vs image layer), OCR text blocks, classify each block (static…

yugef3h/leo-skills · 0 tokens