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.
git clone --depth 1 https://github.com/llamadrive/bengo-toolkitnpx agentmods add skills/llamadrive/bengo-toolkit/iryubun-calcWrote 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.
[](https://agentmods.dev/skills/llamadrive/bengo-toolkit/iryubun-calc)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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年)の起算点
• 相続人の範囲と個別的遺留分率
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
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.
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.
- 9d ago First seen · 109 lines · 88 tokens per session scan A 6feb4463d5c1
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.
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.
regulatory-research-fallback
Fallback workflow for regulatory research when web extraction tools fail on government PDFs.
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.
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…
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.
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…