get-egov-laws-data

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

A law-text retrieval tool for e-Gov 法令検索, Japan’s official government law database. It retrieves the full text and chapter-by-chapter structure of a specific law after you have its law ID.

In plain words
What is it for?
Reading articles, paragraphs, chapters, dates, and revision details for a named Japanese law.
Why use it?
It removes the need to manually locate and organize individual articles when researching Japanese regulations. It provides official source information for citations.

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 Reading articles, paragraphs, chapters, dates, and revision details for a named Japanese law.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kokai-data/japan-business-data/get-egov-laws-data
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 get-egov-laws-data
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 get-egov-laws-data

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kokai-data/japan-business-data/get-egov-laws-data"><img src="https://agentmods.dev/badge/skills/kokai-data/japan-business-data/get-egov-laws-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 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.00107 $0.00856
Opus 5 $0.00053 $0.00428
Sonnet 5 $0.00021 $0.00171
Haiku 4.5 $0.00011 $0.00086

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

Security

Grade A, and why

get-egov-laws-data 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 11d 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/get-egov-laws-data/SKILL.md · 72 lines

How it starts

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

When to use

Use this skill when:

  • You have a law_id from a prior search_egov_laws call and need the actual statute text.
  • The user asks "what does Article X of the Y Act say?" (e.g., "個人情報保護法 第15条").
  • DD / legal research requires verbatim citation of statute text.
  • You need to quote specific provisions in a due diligence brief or subsidy-fit analysis.
  • Regulatory mapping requires the full chapter / article structure (法令の章立て).

How to invoke

Call the kokai MCP server's get_egov_laws_data tool:

{
  "name": "get_egov_laws_data",
  "arguments": {
    "law_id": "<law_id from search_egov_laws, e.g., 338AC0000000154>"
  }
}

law_id is required (obtained from search_egov_laws results).

Output structure

  • law_id (input echoed)
  • law_num (法令番号)
  • title (法令名)
  • enforcement_date / promulgation_date
  • chapters (array of 章): each with chapter_num, chapter_title, articles (array of 条)
  • Each article (条): article_num, article_title, paragraphs (array of 項), items (号)
  • revision_info (改正履歴 summary if available)
  • source_authority: "official" (公式 cite_required)
  • attribution_text: "出典: e-Gov 法令検索 (デジタル庁) https://laws.e-gov.go.jp/law/<law_id>"
  • source_url: direct e-Gov URL for the law's HTML view

Workflow pattern (paired with search_egov_laws)

1. User asks about a Japanese law topic
   ↓
2. search_egov_laws (keyword search) → list of candidate laws (10-20)
   ↓
3. User / agent selects one law_id
   ↓
4. get_egov_laws_data (law_id) → full statute text + structure
   ↓
5. Quote specific 条 / 項 / 号 with attribution_text + source_url

Differentiation from third-party sources

e-Gov 法令検索 is the only official statutory database for Japanese law. Third-party services (jurist sites, commentary platforms) provide interpretation but not 公式 text. When AI agent needs cite_required statute text:

  • ✅ e-Gov (this skill) — 公式, current, デジタル庁 maintained
  • ❌ Wikipedia / commentary sites — not cite_required for legal opinion

Read the full file on GitHub · 72 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. 11d ago First seen · 72 lines · 0 tokens per session scan A 2f9d00bfb858

Subscribe to this mod's changes

get-egov-laws-data 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 107 tokens to every session and 856 once invoked, about $0.0005 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