iryubun-calc

iryubun-calc is a skill for Claude Code from llamadrive/bengo-toolkit. It costs 88 tokens per session (1,519 once invoked), scanned A, original, MIT.

A calculator for estimating a Japanese heir’s reserved-share monetary claim when gifts or bequests reduce that share. A reserved share is the portion of an estate that certain heirs are legally protected from losing.

In plain words
What is it for?
Use it to estimate reserved-share infringement claims and combine it with an inheritance calculator when needed.
Why use it?
It applies the relevant Civil Code rules to estate assets, debts, gifts, bequests, and each heir’s actual inheritance.

Skill for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/_lib/first_run.py notice.

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

Good fit Use it to estimate reserved-share infringement claims and combine it with an inheritance calculator when needed.

Compare 6 skills 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 skills/llamadrive/bengo-toolkit/iryubun-calc

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/llamadrive/bengo-toolkit/iryubun-calc/github.svg)](https://agentmods.dev/skills/llamadrive/bengo-toolkit/iryubun-calc)
Your own site
<a href="https://agentmods.dev/skills/llamadrive/bengo-toolkit/iryubun-calc"><img src="https://agentmods.dev/badge/skills/llamadrive/bengo-toolkit/iryubun-calc/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 iryubun-calc

Your own site · 80×15
<a href="https://agentmods.dev/skills/llamadrive/bengo-toolkit/iryubun-calc"><img src="https://agentmods.dev/badge/skills/llamadrive/bengo-toolkit/iryubun-calc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 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.00088 $0.01519
Opus 5 $0.00044 $0.00759
Sonnet 5 $0.00018 $0.00304
Haiku 4.5 $0.00009 $0.00152

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

Security

Grade A, and why

iryubun-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 9d 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/iryubun-calc/SKILL.md · 109 lines

How it starts

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

遺留分侵害額計算(iryubun-calc)

民法 1042 条以下に基づき、遺贈・生前贈与により遺留分が侵害された場合の金銭請求額を決定論的に計算する。/inheritance-calc と組み合わせて使う。

ワークフロー

Step 0: workspace の解決と初回案内

機密スキル実行時、CWD(または親ディレクトリ)の .claude-bengo/ を walk-up で探す。見つからなければ CWD に silently 新規作成する。弁護士が事前に/matter-create のような登録を行う必要はない。

続けて初回のみ案内メッセージを表示する(2 回目以降は silent、処理は決してブロックしない):

python3 skills/_lib/first_run.py notice

出力があれば、そのままユーザーに提示してから Step 1 へ進む。

Step 1: 基礎財産情報の聴取

項目 内容
positive_estate 積極財産(預貯金・不動産・株式等の合計、円)
debts 相続債務(円)
lifetime_gifts_to_heirs 相続人への生前贈与(10 年以内、特別受益)。{heir_id, amount} のリスト
third_party_gifts 第三者への贈与(1 年以内 or 悪意)。{amount} のリスト
specific_bequests 特定遺贈。{recipient_id, amount} のリスト

Step 2: 相続人情報の聴取

inheritance-calc と同じスキーマで heir を列挙。各 heir に legal_share(法定相続分を Fraction 文字列 "1/2" 等)と inherited_net_amount(実際に相続した純額)を付ける。

Step 3: 請求者の特定

requesting_heir_id で遺留分侵害額請求を行う相続人を指定する。兄弟姉妹は遺留分権利者ではない(民法 1042 条但書)ので、請求不可。

Step 4: 監査ログ記録 + 計算実行

python3 skills/_lib/audit.py record --skill iryubun-calc --event calc_run --note "請求者: {requesting_heir_id}"
python3 skills/iryubun-calc/calc.py calc --pretty --json '<payload>'
python3 skills/_lib/audit.py record --skill iryubun-calc --event calc_result --note "侵害額={iryubun_infringement}円"

Step 5: 結果の提示

基礎財産・総体的遺留分(1/2 or 1/3)・個別的遺留分・請求者既受領分・侵害額の内訳を提示する。

Step 5.5: 必須出力フッター(v3.3.0-iter3〜 code-emitted 省略不可)

v3.3.0-iter3〜: footer は calc.py が stderr に JSON として emit する。 SKILL.md は fabricate しない — stderr の calc_footer をそのまま読んで表示する:

python3 skills/iryubun-calc/calc.py --json '<input>' 2>/tmp/calc-footer.json
cat /tmp/calc-footer.json   # 末尾行に {"calc_footer": {...}} が付く

結果の直後に以下をそのまま表示する:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 本計算は民法 §1042 以下(遺留分侵害額請求)に基づく決定論的補助計算である。
  弁護士法第72条に基づき、本ツールは法的助言を提供しない。
  提出前に必ず弁護士自身が以下を検算してほしい:
    • 基礎財産評価(不動産・株式・生前贈与の時価判断)
    • 1年以内贈与・特別受益の算入範囲(民法 §1044)
    • 時効(民法 §1048 — 1年/10年)の起算点
    • 相続人の範囲と個別的遺留分率
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Read the full file on GitHub · 109 lines

Files

What ships with it

2 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. 9d ago First seen · 109 lines · 88 tokens per session scan A 6feb4463d5c1

Subscribe to this mod's changes

iryubun-calc is a skill published in the GitHub repository llamadrive/bengo-toolkit (6 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 1,519 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