inheritance-calc

inheritance-calc is a skill for Claude Code from llamadrive/bengo-toolkit. It costs 71 tokens per session (3,809 once invoked), scanned A, original, MIT.

A calculator for statutory inheritance shares: the portions assigned by Japanese civil law when someone dies, based on family relationships.

In plain words
What is it for?
It is for determining which relatives inherit and what share each may receive, using information about spouses, children, parents, siblings, descendants, and inheritance renunciations.
Why use it?
It removes the need to work out complicated family-tree rules by hand, while avoiding a calculation when important facts are missing or special legal issues apply.

Skill for Claude Code

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

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

Good fit It is for determining which relatives inherit and what share each may receive, using information about spouses, children, parents, siblings, descendants, and inheritance renunciations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/llamadrive/bengo-toolkit/inheritance-calc
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 llamadrive/bengo-toolkit --skill inheritance-calc
Clone the repo
git clone --depth 1 https://github.com/llamadrive/bengo-toolkit

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 inheritance-calc

README.md
[![agentmods](https://agentmods.dev/badge/skills/llamadrive/bengo-toolkit/inheritance-calc.svg)](https://agentmods.dev/skills/llamadrive/bengo-toolkit/inheritance-calc)
Your own site
<a href="https://agentmods.dev/skills/llamadrive/bengo-toolkit/inheritance-calc"><img src="https://agentmods.dev/badge/skills/llamadrive/bengo-toolkit/inheritance-calc.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,809 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.00071 $0.03809
Opus 5 $0.00036 $0.01904
Sonnet 5 $0.00014 $0.00762
Haiku 4.5 $0.00007 $0.00381

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

Security

Grade A, and why

inheritance-calc 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.

The scan reads SKILL.md. This mod also ships 2 executable files (calc.py, test_calc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/inheritance-calc/SKILL.md · 224 lines

How it starts

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

法定相続分計算(inheritance-calc)

家族関係データから民法の規定に基づき法定相続分を決定論的に計算する。LLM の推論ではなく、民法の条文ロジックに従った正確な計算を行う。

計算本体は skills/inheritance-calc/calc.py(Python スクリプト)に実装されており、このスクリプトを唯一の計算エンジンとして扱う。SKILL.md 内に実行可能な Python コードは含めない。

ワークフロー

Step 1: 家族関係データの取得

以下のいずれかからデータを取得する:

  • 同一会話内で /family-tree を実行済みの場合: そのデータを使用
  • ユーザーが口頭で家族構成を説明した場合: 聞き取りからデータを構築
  • 戸籍謄本 PDF がある場合: /family-tree を先に実行してデータを抽出

必要なデータ:

  • 被相続人(死亡者)の特定
  • 配偶者の有無・生死・放棄有無
  • 子の有無・人数・生死・放棄有無(養子含む)
  • 子が先に死亡している場合、その直系卑属(孫・ひ孫)の有無と生死
  • 直系尊属(父母・祖父母)の生存状況
  • 兄弟姉妹の有無(半血/全血の区別含む)・生死
  • 兄弟姉妹が死亡している場合、甥姪の有無と生死
  • 相続放棄した者がいるか(放棄 ≠ 死亡 に注意)
  • 特別養子の有無(実親相続時は相続人リストから除外する)

重要: 情報が曖昧または不足している場合は、calc.py を呼び出さず、ユーザーに確認する。誤った入力で計算すると、誤った法的結論を出すおそれがある。

Step 1.5: 対応範囲外チェック(v3.3.0-iter3〜 必須)

以下のいずれかに該当する場合、本 skill は計算出力をせず、弁護士の手計算・ 事件固有検討が必要である旨を案内する(出力ブロック):

以下のいずれかが当事案に該当するか?(1 つでも「はい」なら適用を見送るべき):

  (a) 特別受益(民法 §903)の具体的算入額が争点 — 金額の評価自体が弁護士判断
  (b) 寄与分(民法 §904-2)の主張あり — 家裁調停・審判で決まる
  (c) 遺産分割協議・調停・審判による法定分と異なる分配
  (d) 相続分の譲渡・放棄(民法 §905 相続分取戻権等)
  (e) 胎児相続・外国法準拠(国際私法)の要素あり

該当時は「本 skill は法定相続分の計算器。上記の要因が絡む事案では手計算または 専門ソフト併用を推奨」と案内して終了する。

Step 2: 相続人の確定

skills/inheritance-calc/references/inheritance-rules.md を Read ツールで読み込み、以下の順序で相続人を確定する。

相続人の順位(民法887条・889条・890条):

  1. 常に相続人: 配偶者(民法890条)
  2. 第1順位: 子(民法887条1項)
    • 子が被相続人より先に死亡 → その子(孫)が代襲相続(民法887条2項)
    • 孫も死亡 → ひ孫が再代襲(民法887条3項)
  3. 第2順位(子がいない場合のみ): 直系尊属(民法889条1号)
    • 父母が生存 → 父母
    • 父母が死亡、祖父母が生存 → 祖父母(親等が近い者が優先)
  4. 第3順位(子も直系尊属もいない場合のみ): 兄弟姉妹(民法889条2号)
    • 兄弟姉妹が先に死亡 → 甥姪が代襲相続(1代限り、再代襲不可)

相続放棄の処理(民法939条):

  • 相続放棄者は最初から相続人でなかったものとみなす
  • 相続放棄者の直系卑属は代襲相続しない(放棄 ≠ 死亡)
  • 第1順位の全員が放棄 → 第2順位に移行
  • 第2順位の全員が放棄 → 第3順位に移行

特別養子の処理(民法817条の2):

  • 特別養子は実親との法律上の親族関係が終了する
  • 実親の相続においては、特別養子を相続人リストから完全に除外する
  • 養親の相続においては、実子と同様に扱う(入力では adoption: "none"

Step 3: calc.py 用の入力 JSON を構築

Step 2 で確定した情報から、以下のスキーマの JSON を組み立てる。

{
  "decedent": {"id": "d", "name": "甲野太郎"},
  "heirs": [
    {"id": "h1", "name": "甲野花子", "kind": "spouse", "status": "alive"},
    {"id": "h2", "name": "甲野一郎", "kind": "child", "status": "alive", "adoption": "none"},
    {"id": "h3", "name": "甲野次郎", "kind": "child", "status": "deceased"},
    {"id": "h4", "name": "甲野三郎", "kind": "grandchild", "status": "alive", "parent_id": "h3"},
    {"id": "h5", "name": "甲野四郎", "kind": "child", "status": "renounced"}
  ],
  "compute_iryubun": false
}

Read the full file on GitHub · 224 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 224 lines · 71 tokens per session scan A 14b290a2b1db

Subscribe to this mod's changes

inheritance-calc is a skill published in the GitHub repository llamadrive/bengo-toolkit (6 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 3,809 once invoked, about $0.0004 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

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

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

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens