ma-laws

A reference tool for Massachusetts constitutional law, state laws, and civil-procedure rules, which govern lawsuits in Massachusetts. It downloads and verifies a local copy on first use, then supports offline research.

In plain words
What is it for?
Looking up, searching, quoting, summarizing, citing, and reasoning from Massachusetts legal materials.
Why use it?
It avoids searching separate legal websites and provides a local source for repeated lookups, quotations, and summaries.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/docketdrafter/docketdrafter-plugins/ma-laws
Any agent
npx skills add DocketDrafter/docketdrafter-plugins --skill ma-laws
Clone the repo
git clone --depth 1 https://github.com/DocketDrafter/docketdrafter-plugins

Made for: Claude Code, Codex.

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

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00608
Opus 5 $0.00019 $0.00304
Sonnet 5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

Measured 3d ago against content hash 3da5a308af74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ma-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 3d 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/ma-laws/skills/ma-laws/SKILL.md · 39 lines

How it starts

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

Massachusetts Laws

Use this skill for Massachusetts constitutional, statutory, and civil-procedure research. The Constitution and statutes are generated from the official Massachusetts General Court website. The civil rules are generated from the Massachusetts Trial Court Law Libraries' individual Mass.gov rule pages.

On the first lookup, read_section.py resolves the latest Massachusetts release, downloads its corpus from DocketDrafter's public S3 bucket, verifies its SHA-256 checksum, and installs it under ~/Documents/DocketDrafter Library/corpora/ma-laws/. Subsequent research is local and works offline. Set DOCKETDRAFTER_DATA_DIR to use a different library directory.

Lookup

python scripts/read_section.py "Mass. Gen. Laws ch. 93A, § 2"
python scripts/read_section.py "M.G.L. c. 260, § 2A"
python scripts/read_section.py "Chapter 149, Section 148"
python scripts/read_section.py "Mass. R. Civ. P. 12"
python scripts/read_section.py "Massachusetts Rule of Civil Procedure 56"
python scripts/read_section.py "Mass. Const. pt. 1, art. 10"
python scripts/read_section.py "Mass. Const. pt. 2, ch. 1, § 1, art. 1"
python scripts/read_section.py "Mass. Const. amend. art. 97"
python scripts/read_section.py "Mass. Const. pmbl."
python scripts/read_section.py --search "public records" --limit 20
python scripts/read_section.py --list-chapter 93A
python scripts/read_section.py --list-rules
python scripts/read_section.py --list-constitution

Use --format json or --format markdown for structured output, and --max-bytes N to limit displayed text. Lookup and search results include links to the official section pages.

Always use scripts/read_section.py for research. Search covers the Constitution, statutes, and civil rules, including Reporter's Notes. Constitutional lookups distinguish the Declaration of Rights (pt. 1), the frame of government (pt. 2), and articles of amendment (amend. art.). Treat each source as current only as of its retrieval timestamp in references/index.json, and consult the linked official page when source authority or very recent amendments matter. The Trial Court Law Libraries caution that their online rules are not an official source.

Read the full file on GitHub · 39 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. 3d ago First seen · 39 lines · 38 tokens per session scan A 3da5a308af74

Subscribe to this mod's changes

ma-laws is a skill published in the GitHub repository DocketDrafter/docketdrafter-plugins (9 stars, last pushed 9d ago), licensed BSD-3-Clause. It adds 38 tokens to every session and 608 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

data-court-auction

대법원 법원경매정보(courtauction.go.kr) 부동산 매각공고를 매각기일·법원·기일/기간 입찰 기준으로 조회하고, 각 공고를 사건번호·용도·주소·감정평가액·최저매각가로 펼쳐서 보여줍니다. 법원사무소 코드와 사건번호로 단건 직접 조회도 지원합니다. read-only이며 IP 차단 방지를 위해 호출당 약 2초 지연을 둡니다. 다음과 같은 요청 시 반드시 이 스킬을 사용하세요: "오늘 어디서 부동산 경매 열려?", "내일 매각공고 보여줘" "서울중앙지방법원 2026-04-27 매각공고", "기일입찰만 보여줘" "사건번호 2024타경100001 진행 상황 알려줘"…

modu-ai/moai-cowork · 272 tokens

prawo-eu-eurlex

Odpytuje OFICJALNE repozytorium prawa UE — CELLAR/EUR-Lex Urzędu Publikacji (SPARQL + REST, bez klucza): wyszukiwanie aktów, pełny tekst PO POLSKU i w 23 innych językach, WERSJE SKONSOLIDOWANE, pojedyncze artykuły, metadane, nowelizacje, uchylenia, sprostowania, podstawa prawna — po numerze CELEX lub ELI. Używaj przy…

jamarpl21/prawo-pl-eli · 361 tokens

prawo-pl-eli

Odpytuje OFICJALNE API ELI Sejmu (api.sejm.gov.pl/eli) — źródło pierwotne prawa polskiego (Dziennik Ustaw, Monitor Polski): wyszukiwanie aktów, TEKST JEDNOLITY, pojedyncze artykuły, metadane, nowelizacje, podstawa prawna, sygnatury Dz.U./M.P. Używaj przy KAŻDYM pytaniu z prawa polskiego — TAKŻE gdy przepis nie jest…

jamarpl21/prawo-pl-eli · 348 tokens

prawo-pl-cbosa

Przeszukuje CBOSA — Centralną Bazę Orzeczeń Sądów Administracyjnych (orzeczenia.nsa.gov.pl): wyroki, postanowienia i uchwały NSA oraz 16 WSA (2,4 mln orzeczeń od 2004 r.). Używaj przy KAŻDYM pytaniu o orzecznictwo sądów administracyjnych: skargi na decyzje organów, interpretacje podatkowe, „jak NSA/WSA interpretuje…"…

jamarpl21/prawo-pl-eli · 274 tokens

prawo-pl-edzienniki

Odpytuje API ELI 16 WOJEWÓDZKICH DZIENNIKÓW URZĘDOWYCH — PRAWO MIEJSCOWE: uchwały rad gmin, powiatów i sejmików województw, rozporządzenia i zarządzenia wojewody, akty prawa miejscowego. Używaj przy KAŻDYM pytaniu o prawo konkretnej gminy/powiatu/województwa: „uchwała rady gminy/miasta…", „miejscowy plan…

jamarpl21/prawo-pl-eli · 342 tokens

prawo-pl-rejestr-umow

Odpytuje publiczne API Centralnego Rejestru Umów JSFP (rejestrumow.gov.pl) — jawny rejestr umów zawieranych od 1.07.2026 przez jednostki sektora finansów publicznych: urzędy, gminy, szpitale, uczelnie, sądy. Używaj przy pytaniach „jakie umowy zawarł urząd/gmina/szpital X", „z kim i na ile ma umowę…", „kto dostał…

jamarpl21/prawo-pl-eli · 306 tokens