ny-laws

ny-laws is a skill for Claude Code from DocketDrafter/docketdrafter-plugins. It costs 63 tokens per session (2,889 once invoked), scanned A, original, BSD-3-Clause.

A local reference tool for searching New York State laws, the New York State Constitution, New York City Administrative Code, and New York court-system rules. It includes organized legal text and a citation lookup script.

In plain words
What is it for?
Finding sections, checking citations, and supporting summaries or legal analysis based on New York state law, New York City rules, and court rules.
Why use it?
It provides a local source for checking New York legal provisions instead of searching across separate websites. The corpus is installed on first use and is not automatically updated afterward.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the ny-laws plugin — 1 skill shipped together

Good fit Finding sections, checking citations, and supporting summaries or legal analysis based on New York state law, New York City rules, and court rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/docketdrafter/docketdrafter-plugins/ny-laws
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 DocketDrafter/docketdrafter-plugins --skill ny-laws
Clone the repo
git clone --depth 1 https://github.com/DocketDrafter/docketdrafter-plugins

Made for: Claude Code.

Or install ny-laws, the plugin that ships this one along with the rest of its 1 skill.

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 ny-laws

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/docketdrafter/docketdrafter-plugins/ny-laws"><img src="https://agentmods.dev/badge/skills/docketdrafter/docketdrafter-plugins/ny-laws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,889 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.00063 $0.02889
Opus 5.5 $0.00025 $0.01156
Sonnet 5.5 $0.00013 $0.00578
Haiku 4.5 $0.00006 $0.00289

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

Security

Grade A, and why

ny-laws 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/corpus.py, scripts/read_section.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.

plugins/ny-laws/skills/ny-laws/SKILL.md · 178 lines

How it starts

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

New York Laws

The reader scripts automatically install the latest verified corpus on first use. After installation, lookups are local and the corpus is not checked for updates in that environment.

Use this skill when a task requires New York statutory text, the New York State Constitution, New York City Administrative Code text, New York Unified Court System rules, section lookup, citation checking, or legal analysis based on New York law or court-rule sections.

Corpus layout

All data lives under references/:

  • references/index.json — master index. Top-level laws is a {lawId: {name, commonAliases, sectionCount, activeDate, ...}} map covering every NY law in the corpus.
  • references/aliases.json — flat {prefix → lawId} map (e.g. "CPLR" → "CVP", "VTL" → "VAT", "ABC" → "ABC"). 400+ entries including UPPERCASE variants and full law names.
  • references/laws/{lawId}/law.json — per-law metadata: name, lawType, chapter, activeDate, publishedDates, sourceUrl.
  • references/laws/{lawId}/index.json — {lawId, format, sections: {sectionId: entry}}. Each entry has: title, citation, path, anchor, activeDate, repealed, repealedDate, docLevelId, article, articleTitle, textLength.
  • references/laws/{lawId}/sections.html — all section text for that law in one HTML file, each section wrapped in <article id="section-...">.

The New York State Constitution is bundled as law CNS. Common aliases include CNS, Constitution, NY Constitution, New York Constitution, and New York State Constitution.

The New York City Administrative Code is bundled as synthetic law NYCAC:

  • references/laws/NYCAC/index.json — NYC Admin Code section index. Entries include normal lookup fields plus titleNumber, titleTitle, chapter, chapterTitle, sourceRecordId, sourceAnchor, and clickable AmLegal sourceUrl.
  • references/laws/NYCAC/titles/*.html — section text split by title (T01.html, T28.html, etc.) plus appendices.html for local-law appendix material.

Read the full file on GitHub · 178 lines

Files

What ships with it

2 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. 3mo ago First seen · 178 lines · 63 tokens per session scan A 845c662c2dd8

Subscribe to this mod's changes

ny-laws is a skill published in the GitHub repository DocketDrafter/docketdrafter-plugins (11 stars, last pushed 3mo ago), licensed BSD-3-Clause. It adds 63 tokens to every session and 2,889 once invoked, about $0.0003 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-31.

Related

ny-laws compared with skills from other repositories

ny-laws next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ny-lawsDocketDrafter/docketdrafter-pluginsSkill113mo agoBSD-3-ClauseA63Claude Code
contract-drafterrohasnagpal/legal-ai-skillsSkill2217d agoMITA192Claude Code, Codex
negotiation-position-plannerrohasnagpal/legal-ai-skillsSkill2217d agoMITA118Claude Code, Codex
redline-proposerrohasnagpal/legal-ai-skillsSkill2217d agoMITA118Claude Code, Codex
citation-integrity-checkerrohasnagpal/legal-ai-skillsSkill2217d agoMITA180Claude Code, Codex
client-intakerohasnagpal/legal-ai-skillsSkill2217d agoMITA186Claude Code, Codex
contract-summariserrohasnagpal/legal-ai-skillsSkill2217d agoMITA162Claude Code, Codex