Skip to content

crankshift/lawpowers

Repository files navigation

lawpowers

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

Available plugins

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

Installation is a two-step process: add the marketplace once, then install each plugin you want.

Step 1. Add the marketplace

Claude Desktop App (macOS/Windows)

  1. Settings → Extensions → Plugins.
  2. Switch to the Personal tab.
  3. Click the «+» next to Local uploads.
  4. Select Add marketplace.
  5. Enter crankshift/lawpowers (or the full URL https://github.com/crankshift/lawpowers).

Claude Code CLI

claude

Then in the running session:

/plugin marketplace add crankshift/lawpowers

Step 2. Install the plugin(s)

Ukraine only

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

Poland only

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

Both

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

Local development

git clone https://github.com/crankshift/lawpowers.git
cd lawpowers
claude --plugin-dir ./plugins/ua --plugin-dir ./plugins/pl

Or only one plugin:

claude --plugin-dir ./plugins/ua

Verification

  • /pluginInstalled tab — lists the plugins you've added.
  • /agents — subagents show up with the ua: and/or pl: prefix.
  • Skills trigger automatically based on context (for example, mentioning «судовий збір» triggers ua:calculating-sudovyi-zbir; «opłata sądowa» triggers pl:calculating-oplata-sadowa).

Updating

/plugin marketplace update lawpowers
/reload-plugins

Or enable auto-update from /pluginMarketplaceslawpowersEnable auto-update.

Uninstalling a single plugin

/plugin uninstall ua@lawpowers   # remove only UA
/plugin uninstall pl@lawpowers   # remove only PL

The marketplace stays registered; reinstall whenever you need.

Install in Codex

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/lawpowers

For 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 lawpowers

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

Disclaimer

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

Shared principles

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.ua for UA, isap.sejm.gov.pl for 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.

Extending the monorepo

Adding a plugin for a new jurisdiction (e.g. eu, us, de):

  1. Create a ./plugins/xx/ directory with a short ISO-style code.
  2. 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, and xx/AGENTS.md.
  3. Register it in both marketplace catalogs: .claude-plugin/marketplace.json with "source": "./plugins/xx", and .agents/plugins/marketplace.json with the Codex plugin ID.
  4. Add a CHANGELOG entry and bump metadata.version in the marketplace manifest.
  5. Run python3 scripts/convert-agents-to-codex.py and python3 scripts/validate-codex-agents.py to generate and validate Codex agent shims.
  6. 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.

Release history

Full changelog — CHANGELOG.md. Releases are published on the Releases page.

License

MIT — see LICENSE.