law-search

law-search is a command for Claude Code from llamadrive/bengo-toolkit. It costs 20 tokens per session (180 once invoked), scanned A, original, MIT.

A command for searching and retrieving Japanese laws, government orders, and ministerial ordinances from the e-Gov Law API, Japan’s government legal information service.

In plain words
What is it for?
Use it to look up Japanese legal provisions such as articles of the Civil Code, Companies Act, or Personal Information Protection Act.
Why use it?
It provides the relevant legal text when you know a law name or article number, without searching manually through legal pages.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read, Glob, Grep, Bash(python3 skills/law-search/search.py:*), Bash(python3 skills/_lib/workspace.py:*), WebFetch.

Part of the bengo-toolkit plugin — 15 skills, 25 commands, 3 MCP servers shipped together

Good fit Use it to look up Japanese legal provisions such as articles of the Civil Code, Companies Act, or Personal Information Protection Act.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/llamadrive/bengo-toolkit
agentmods
npx agentmods add commands/llamadrive/bengo-toolkit/law-search

Made for: Claude Code.

Or install bengo-toolkit, the plugin that ships this one along with the rest of its 15 skills, 25 commands, 3 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/llamadrive/bengo-toolkit/law-search.svg)](https://agentmods.dev/commands/llamadrive/bengo-toolkit/law-search)
Your own site
<a href="https://agentmods.dev/commands/llamadrive/bengo-toolkit/law-search"><img src="https://agentmods.dev/badge/commands/llamadrive/bengo-toolkit/law-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 180 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.00020 $0.00180
Opus 5 $0.00010 $0.00090
Sonnet 5 $0.00004 $0.00036
Haiku 4.5 $0.00002 $0.00018

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

Security

Grade A, and why

law-search 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 7d ago.

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.

commands/law-search.md · 12 lines

What it actually says

日本の法令(法律・政令・省令等)を e-Gov 法令 API から検索・取得する。 法令名や条文番号を指定して条文を参照できる。

$ARGUMENTS: 法令名や条文番号(例: "民法 709条", "会社法 第362条", "個人情報保護法")

まず skills/law-search/SKILL.md を Read ツールで読み込み、そこに記載された手順に従って実行する。

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. 7d ago First seen · 12 lines · 20 tokens per session scan A de7a488dea39

Subscribe to this mod's changes

law-search is a command published in the GitHub repository llamadrive/bengo-toolkit (6 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 180 once invoked, about $0.0001 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.