A collection of jurisdiction-specific legal plugins for Claude Code and Codex. Each plugin wraps a set of subagents and skills tuned to one country's legal system, official sources, and procedural quirks.
Monorepo structure — install only the jurisdictions you need.
⚠️ Disclaimer.lawpowersis a drafting aid for legal professionals. It is not a substitute for legal advice and does not establish an attorney–client relationship. Outputs are working drafts generated by an AI model against statute text and must be reviewed and verified against the current primary sources by a qualified human before being signed, filed, or acted on. Neither Anthropic (Claude), OpenAI (Codex), nor the authors or contributors of this repository, make any warranty as to the accuracy, completeness, timeliness, or fitness for purpose of the output, and none of them accept any liability for the use of, or reliance on, this software or its results. Use at your own risk.
| Plugin | Jurisdiction | Command prefix | Documentation | Language |
|---|---|---|---|---|
ua |
Ukraine | /ua:… |
ua/README.md |
Ukrainian |
pl |
Poland | /pl:… |
pl/README.md |
Polish |
Each plugin's README covers the agents and skills it provides. The plugins are independent — installing one doesn't pull in the other.
Installation is a two-step process: add the marketplace once, then install each plugin you want.
- Settings → Extensions → Plugins.
- Switch to the Personal tab.
- Click the «+» next to
Local uploads. - Select Add marketplace.
- Enter
crankshift/lawpowers(or the full URLhttps://github.com/crankshift/lawpowers).
claudeThen in the running session:
/plugin marketplace add crankshift/lawpowers
/plugin install ua@lawpowers
/reload-plugins
Agents and skills become available under the ua: namespace — e.g. ua:claim-drafter, ua:raport-drafter, ua:calculating-sudovyi-zbir.
See ua/README.md for the full catalog (includes a dedicated military-law block for service members in ЗСУ and their families).
/plugin install pl@lawpowers
/reload-plugins
Agents and skills under the pl: namespace — e.g. pl:claim-drafter, pl:searching-orzeczenia.
See pl/README.md for the full catalog.
/plugin install ua@lawpowers
/plugin install pl@lawpowers
/reload-plugins
The ua: and pl: namespaces are isolated — you can have both active at once and they won't conflict.
git clone https://github.com/crankshift/lawpowers.git
cd lawpowers
claude --plugin-dir ./plugins/ua --plugin-dir ./plugins/plOr only one plugin:
claude --plugin-dir ./plugins/ua/plugin→ Installed tab — lists the plugins you've added./agents— subagents show up with theua:and/orpl:prefix.- Skills trigger automatically based on context (for example, mentioning «судовий збір» triggers
ua:calculating-sudovyi-zbir; «opłata sądowa» triggerspl:calculating-oplata-sadowa).
/plugin marketplace update lawpowers
/reload-plugins
Or enable auto-update from /plugin → Marketplaces → lawpowers → Enable auto-update.
/plugin uninstall ua@lawpowers # remove only UA
/plugin uninstall pl@lawpowers # remove only PL
The marketplace stays registered; reinstall whenever you need.
Codex uses the .agents/plugins/marketplace.json catalog and the .codex-plugin/plugin.json manifests in each plugin folder. Add the marketplace once, then enable the plugin IDs you need from Codex's plugin UI or marketplace flow.
codex plugin marketplace add crankshift/lawpowersFor local development from a checkout:
git clone https://github.com/crankshift/lawpowers.git
cd lawpowers
codex plugin marketplace add .Codex plugin IDs:
| Codex plugin ID | Folder | Claude Code equivalent |
|---|---|---|
law-ua |
plugins/ua |
ua@lawpowers |
law-pl |
plugins/pl |
pl@lawpowers |
Update the Codex marketplace copy with:
codex plugin marketplace upgrade lawpowersCodex reads repo and plugin guidance from AGENTS.md; Claude Code reads CLAUDE.md. Keep both in sync when changing behavior.
Codex agent compatibility: this repo commits generated custom-agent files under plugins/*/.codex/agents/. They are generated from the Claude agents/*.md source files; after changing agents, run:
python3 scripts/convert-agents-to-codex.py
python3 scripts/validate-codex-agents.pylawpowers is a tooling project whose sole purpose is to assist with the drafting of legal documents. It doesn't replace a lawyer, and running an agent is not a legal consultation.
- Not legal advice. Nothing produced by this software is legal advice, a legal opinion, or a substitute for retaining counsel. No attorney–client relationship is created by installing or using the plugins.
- AI-generated drafts. All agent output is generated by a large-language-model and may be inaccurate, out of date, or incomplete. Laws change often — Ukrainian law especially during martial law, Polish procedural law around frequent KPC/KC reforms. Every citation must be verified against the primary source on the day it's used.
- Human review is mandatory. Every document produced with these plugins must be reviewed, corrected, and adopted by a qualified human professional before it is signed, filed with a court, sent to a counterparty, or relied upon in any other way. The human signing the document bears all professional and legal responsibility for it.
- No warranty. The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, legal accuracy, or non-infringement.
- No liability. To the maximum extent permitted by law, neither Anthropic (the provider of Claude), OpenAI (the provider of Codex), nor the authors, maintainers, or contributors of this repository, will be liable for any direct, indirect, incidental, consequential, special, or exemplary damages arising from the use of, or inability to use, this software — including but not limited to damages resulting from erroneous drafts, missed deadlines, misquoted statutes, adverse rulings, or any other legal or financial consequence. You use these plugins entirely at your own risk.
- Your responsibility. How you use the tool, what you do with its output, and what consequences follow — including toward clients, counterparties, courts, and regulators — is entirely yours. If you are not a qualified legal professional, consult one before acting on any output.
All plugins in this monorepo follow the same working principles:
- Verbatim citations of statutes. Articles are quoted in the exact wording in force on a given date, with a direct link to the primary source (
zakon.rada.gov.uafor UA,isap.sejm.gov.plfor PL). - Mandatory source references. Every legal position carries a link to the article + source + verification date.
- No fabricated case law. Case numbers, dates, and quotes come only from official registries (ЄДРСР for UA, Portal Orzeczeń for PL). Claude should never invent a citation.
- Placeholders for personal data. Templates use placeholders (
[ПІБ]/[imię i nazwisko],[РНОКПП]/[PESEL],[адреса]/[adres]) — never real client data in source files. - Drafts, not final advice. Everything the agents produce is a working draft for a human lawyer to review, adapt, and sign off on. Final editorial responsibility is always human.
Adding a plugin for a new jurisdiction (e.g. eu, us, de):
- Create a
./plugins/xx/directory with a short ISO-style code. - Add
xx/.claude-plugin/plugin.json(Claude Code manifest),xx/.codex-plugin/plugin.json(Codex manifest with collision-safe ID),xx/agents/,xx/skills/,xx/README.md,xx/CLAUDE.md, andxx/AGENTS.md. - Register it in both marketplace catalogs:
.claude-plugin/marketplace.jsonwith"source": "./plugins/xx", and.agents/plugins/marketplace.jsonwith the Codex plugin ID. - Add a CHANGELOG entry and bump
metadata.versionin the marketplace manifest. - Run
python3 scripts/convert-agents-to-codex.pyandpython3 scripts/validate-codex-agents.pyto generate and validate Codex agent shims. - Open a PR, merge, then tag a release as described in the release flow.
See CLAUDE.md for Claude Code contributor guidelines and AGENTS.md for Codex contributor guidelines.
Full changelog — CHANGELOG.md. Releases are published on the Releases page.
MIT — see LICENSE.