legal-e-gov-law

legal-e-gov-law is a skill for Claude Code from kannkyo/e-gov-law-mcp. It costs 111 tokens per session (995 once invoked), scanned A, original, MIT.

A research guide for Japanese laws published through e-Gov, Japan’s government legal information service. It explains how to find laws, read their text, check amendments, search keywords, and download related files.

In plain words
What is it for?
Use it to search Japanese laws by name or keyword, retrieve specific provisions, trace amendment history, inspect past versions, and download law documents.
Why use it?
It helps locate the correct law and version when legal information is spread across names, revisions, and attachments.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the e-gov-law-mcp plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to search Japanese laws by name or keyword, retrieve specific provisions, trace amendment history, inspect past versions, and download law documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kannkyo/e-gov-law-mcp/legal-e-gov-law
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 kannkyo/e-gov-law-mcp --skill legal-e-gov-law
Clone the repo
git clone --depth 1 https://github.com/kannkyo/e-gov-law-mcp

Made for: Claude Code.

Or install e-gov-law-mcp, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

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 legal-e-gov-law

README.md
[![agentmods](https://agentmods.dev/badge/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law/github.svg)](https://agentmods.dev/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law)
Your own site
<a href="https://agentmods.dev/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law"><img src="https://agentmods.dev/badge/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law/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 legal-e-gov-law

Your own site · 80×15
<a href="https://agentmods.dev/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law"><img src="https://agentmods.dev/badge/skills/kannkyo/e-gov-law-mcp/legal-e-gov-law.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 995 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.00111 $0.00995
Opus 5 $0.00056 $0.00498
Sonnet 5 $0.00022 $0.00199
Haiku 4.5 $0.00011 $0.00100

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

Security

Grade A, and why

legal-e-gov-law 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 12d 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.

plugins/e-gov-law-mcp/skills/legal-e-gov-law/SKILL.md · 54 lines

What it actually says

e-Gov 法令調査ガイド

e-gov-law MCPサーバーが提供する6つのツールを使って、日本の法令を調査する手順をまとめる。

前提

このSKILLは e-gov-law-mcp プラグインの MCP サーバーがインストール済みであることを前提とする。以下のツールが利用可能:

  • search_laws — 法令名・種別・時点で法令一覧を検索
  • get_law_revisions — 指定法令の改正履歴を取得
  • get_law_data — 法令本文をJSONで取得
  • get_attachment — 添付ファイルを取得(一時ファイルに保存しパスを返す)
  • search_keyword — 法令本文の全文キーワード検索
  • download_law_file — 法令本文をファイル形式(xml/json/html/rtf/docx)でダウンロード(一時ファイルに保存しパスを返す)

典型的なワークフロー

1. 法令名から本文を調べたい

  1. search_lawslaw_title を指定して呼び出し、対象法令の law_id(または法令番号)を特定する。複数候補が返る場合は、法令名の完全一致や法令種別で絞り込む。
  2. 特定した law_id_or_num_or_revision_id を使って get_law_data を呼び出し、本文を取得する。特定の条文だけが必要な場合は elm パラメータで絞り込む。
  3. 取得した本文から該当箇所を引用する。

2. キーワードで法令を横断検索したい

  1. search_keywordkeyword を指定して呼び出し、該当する法令の一覧を取得する。
  2. 一覧から関連性の高い法令を選び、それぞれについて get_law_data で本文を取得し、内容を確認する。
  3. 結果が多すぎる場合は law_type で法令種別を絞り込むか、limit/offset でページングする。

3. 改正履歴を追いたい

  1. get_law_revisionslaw_id_or_num を指定して呼び出し、改正履歴一覧を取得する。
  2. 特定の期間の改正だけを見たい場合は amendment_date_from/amendment_date_to で絞り込む。
  3. 特定の改正時点の本文が必要な場合は、その改正の revision_id を get_law_datalaw_id_or_num_or_revision_id に渡して本文を取得する。

4. 添付ファイルや本文ファイルが必要なとき

  • 法令本文中に画像やPDFなどの添付ファイルへの参照がある場合は get_attachment を使う。返り値のパスをReadツール等で参照する。
  • 法令本文をXML/HTML/DOCXなどのファイル形式でそのまま保存したい場合は download_law_file を使う。

引用時の作法

法令を引用する際は、必ず以下を明記する:

  • 法令名(略称ではなく正式名称)
  • 条・項・号などの具体的な位置
  • 参照した時点(asof や改正IDに対応する施行日)。時点を指定していない場合は「取得時点で最新の内容」であることを明記する。
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. 12d ago First seen · 54 lines · 111 tokens per session scan A 13a3ad1de638

Subscribe to this mod's changes

legal-e-gov-law is a skill published in the GitHub repository kannkyo/e-gov-law-mcp (2 stars, last pushed 2d ago), licensed MIT. It adds 111 tokens to every session and 995 once invoked, about $0.0006 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.