search-egov-laws

search-egov-laws is a skill for Claude Code from Kokai-Data/japan-business-data. It costs 111 tokens per session (1,230 once invoked), scanned A, original, Apache-2.0.

A skill for searching Japanese laws, cabinet orders, and ministerial ordinances through Japan's official e-Gov legal information API. It returns details such as a law's title, identifier, type, and enforcement date.

In plain words
What is it for?
It is for finding Japanese laws by keyword, filtering by legal category, obtaining official law identifiers, and supporting regulatory or due-diligence research.
Why use it?
It helps with legal lookups using official government records instead of relying on uncertain or outdated summaries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kokai-data plugin — 19 skills, 8 commands, 7 agents, 1 MCP server shipped together

Good fit It is for finding Japanese laws by keyword, filtering by legal category, obtaining official law identifiers, and supporting regulatory or due-diligence research.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kokai-data/japan-business-data/search-egov-laws
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 Kokai-Data/japan-business-data --skill search-egov-laws
Clone the repo
git clone --depth 1 https://github.com/Kokai-Data/japan-business-data

Made for: Claude Code.

Or install kokai-data, the plugin that ships this one along with the rest of its 19 skills, 8 commands, 7 agents, 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 search-egov-laws

README.md
[![agentmods](https://agentmods.dev/badge/skills/kokai-data/japan-business-data/search-egov-laws/github.svg)](https://agentmods.dev/skills/kokai-data/japan-business-data/search-egov-laws)
Your own site
<a href="https://agentmods.dev/skills/kokai-data/japan-business-data/search-egov-laws"><img src="https://agentmods.dev/badge/skills/kokai-data/japan-business-data/search-egov-laws/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 search-egov-laws

Your own site · 80×15
<a href="https://agentmods.dev/skills/kokai-data/japan-business-data/search-egov-laws"><img src="https://agentmods.dev/badge/skills/kokai-data/japan-business-data/search-egov-laws.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 1,230 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.01230
Opus 5 $0.00056 $0.00615
Sonnet 5 $0.00022 $0.00246
Haiku 4.5 $0.00011 $0.00123

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

Security

Grade A, and why

search-egov-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 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/vertical-plugins/kokai-data/skills/search-egov-laws/SKILL.md · 83 lines

How it starts

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

When to use

Use this skill when:

  • The user asks about a specific Japanese law, cabinet order, or ministerial ordinance (e.g., "中小企業基本法", "個人情報保護法", "労働基準法").
  • You need to find the official law_id / law_num for citation in legal research or due diligence briefs.
  • The user wants a list of laws matching a keyword (e.g., "data privacy laws in Japan", "中小企業 関連法令").
  • Pre-M&A diligence requires regulatory landscape mapping (which laws apply to a target's industry).
  • Legal research workflows that require 公式 e-Gov citation rather than secondary sources.

How to invoke

Call the kokai MCP server's search_egov_laws tool:

{
  "name": "search_egov_laws",
  "arguments": {
    "keyword": "<search term, e.g., 中小企業, 個人情報, 労働基準>",
    "law_type": "<optional: Constitution / Act / CabinetOrder / MinisterialOrdinance / Rule>",
    "limit": 20
  }
}

keyword is required (free-text Japanese, matches law title + content). law_type is optional filter. limit defaults to 20, max 100.

law_type values (公式 enum)

Value Japanese Notes
Constitution 憲法 日本国憲法のみ
Act 法律 国会制定 (e.g., 中小企業基本法)
CabinetOrder 政令 内閣制定 (e.g., 中小企業基本法施行令)
MinisterialOrdinance 省令 / 府令 各省庁制定 (e.g., 個人情報保護法施行規則)
Rule 規則 委員会規則 等

Output structure

For each law:

  • law_id (法令 ID、get_egov_laws_data で本文 / 条文 fetch に使う)
  • law_num (法令番号、e.g., "昭和三十八年法律第百五十四号")
  • title (法令名)
  • title_kana (法令名 ふりがな)
  • enforcement_date (施行日)
  • promulgation_date (公布日)
  • law_type (Constitution / Act / CabinetOrder / MinisterialOrdinance / Rule)
  • source_authority: "official" (公式 cite_required layer)
  • attribution_text: "出典: e-Gov 法令検索 (デジタル庁) https://laws.e-gov.go.jp/"

Differentiation from other Kokai sources

領域 gBizINFO 国税庁 J-Grants EDINET e-Gov 法令 (this) 官公需
法人特定 ✅ (上場)
補助金
異動履歴
IR / 財務
法令本文 / 改正履歴 ✅ 公式
政府調達公告

Read the full file on GitHub · 83 lines

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 · 83 lines · 0 tokens per session scan A cd3a76c0b12d

Subscribe to this mod's changes

search-egov-laws is a skill published in the GitHub repository Kokai-Data/japan-business-data (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 111 tokens to every session and 1,230 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.

Related

Other skills, from other repositories

security-compliance

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.

sangrokjung/claude-forge · 56 tokens

aenderungsvorbehalt-308

Für Änderungsvorbehalt 308: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

Klotzkette/claude-fuer-deutsches-recht · 41 tokens

agb-begriff-vorformuliert-305

Für AGB Begriff Vorformuliert 305: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: agb-begriff-vorformuliert-305.

Klotzkette/claude-fuer-deutsches-recht · 68 tokens

beweislast-und-zugang-309

Für Beweislast und Zugang 309: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Beweislast- und Substantiierungsmatrix.

Klotzkette/claude-fuer-deutsches-recht · 43 tokens

agb-pruefung-kaltstart

Für AGB Prüfung Kaltstart: routet Rolle, Frist, Unterlagen und Fachschritt; Ergebnis: Tatbestands- oder Anspruchsmatrix.

Klotzkette/claude-fuer-deutsches-recht · 41 tokens

agb-rechtswahl-schweizer-recht-rom-i

Für AGB Rechtswahl Schweizer Recht Rom I: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: agb-rechtswahl-schweizer-recht-rom-i.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens