/shinkoku:settlementfrom shinkoku
Performs year-end closing adjustments for Japanese accounting: trial balance, depreciation, financial statements (BS/PL).
Ships in shinkoku. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
会計年度末の決算整理仕訳を登録し、残高試算表・損益計算書・貸借対照表を確認するスキル。 journal スキルで日常仕訳の入力が完了していることを前提とする。
shinkoku.config.yaml を Read ツールで読み込む/setup スキルの実行を案内して終了するdb_path: CLI スクリプトの --db-path 引数に使用output_dir: 進捗ファイル等の出力先ベースディレクトリconfig の db_path が ./shinkoku.db、output_dir が ./output で CWD が /home/user/tax-2025/ の場合:
ledger.py trial-balance --db-path /home/user/tax-2025/shinkoku.db --input query.jsonshinkoku ledger bs --db-path /home/user/tax-2025/shinkoku.db --input query.json設定の読み込み後、引継書ファイルを読み込んで前ステップの結果を把握する。
.shinkoku/progress/progress-summary.md を Read ツールで読み込む(存在する場合).shinkoku/progress/04-journal.md.shinkoku/progress/02-assess.md決算処理を開始する前に以下を確認する:
※ 前年データが未確認の場合は、先に assess スキルで確認するか、 ユーザーに前年の確定申告書を提示してもらう。
ledger.py ob-list --db-path DB --fiscal-year YEAR で期首残高が設定済みか確認ob-set-batch で一括登録ob-list で内容を確認し、ユーザーに承認を得るledger.py trial-balance の呼び出しshinkoku ledger trial-balance --db-path DB_PATH --input query.json
入力 JSON:
{
"fiscal_year": 2025
}
出力:
accounts: 各勘定科目の借方合計・貸方合計・残高total_debit: 借方合計total_credit: 貸方合計確認項目:
以下の決算整理項目を順に確認・処理する。各仕訳は ledger.py add-journal --db-path DB_PATH --input journal.json で登録する。
固定資産(1100〜1160)に残高がある場合、減価償却費を計上する。
計算ツールの呼び出し:
shinkoku tax calc-depreciation --input depreciation_input.json
定額法の場合:
{
"method": "straight_line",
"acquisition_cost": 300000,
"useful_life": 4,
"business_use_ratio": 100,
"months": 12
}
定率法の場合:
{
"method": "declining_balance",
"acquisition_cost": 300000,
"book_value": 200000,
"useful_life": 4,
"declining_rate": 500,
"business_use_ratio": 100,
"months": 12
}
仕訳の登録:
借方: 減価償却費(5200) / 貸方: 該当の固定資産科目
金額: 計算された償却額
期末に在庫がある場合、棚卸高を計上する。
まず ledger.py list-inventory --db-path DB_PATH --input query.json で登録済みの棚卸データを確認する。
未登録の場合は ledger.py set-inventory --db-path DB_PATH --input inventory.json で期首・期末の棚卸高を登録する:
{
"fiscal_year": 2025,
"detail": {
"period": "ending",
"amount": 200000,
"method": "cost",
"details": "品目の明細等"
}
}
期末棚卸仕訳:
借方: 棚卸資産(1030) / 貸方: 仕入(5001) 金額: 期末棚卸高
期首棚卸仕訳(翌期首に自動振替する場合の備忘):
借方: 仕入(5001) / 貸方: 棚卸資産(1030) 金額: 期首棚卸高
ledger.py pl と青色申告決算書 PDF に自動反映される年度末時点で発生しているが未払いの費用を計上する。
借方: 該当の費用科目 / 貸方: 未払費用(2031)
翌期分を当期に支払い済みの場合、前払費用に振り替える。
借方: 前払費用(1041) / 貸方: 該当の費用科目
事業で地代家賃を計上している場合、内訳を登録する(青色申告決算書の添付資料)。
ledger.py add-rent-detail の呼び出しshinkoku ledger add-rent-detail --db-path DB_PATH --input rent.json
入力 JSON:
{
"fiscal_year": 2025,
"detail": {
"property_type": "自宅兼事務所",
"usage": "自宅兼事務所",
"landlord_name": "賃貸先の名称",
"landlord_address": "賃貸先の住所",
"monthly_rent": 100000,
"annual_rent": 1200000,
"deposit": 0,
"business_ratio": 50
}
}
確認項目:
決算整理仕訳がすべて登録された後、決算書を生成する。
ledger.py pl)shinkoku ledger pl --db-path DB_PATH --input query.json
入力 JSON:
{
"fiscal_year": 2025
}
出力:
revenue: 収益の内訳と合計expenses: 費用の内訳と合計net_income: 当期純利益(収益合計 - 費用合計)確認項目:
ledger.py bs)shinkoku ledger bs --db-path DB_PATH --input query.json
入力 JSON:
{
"fiscal_year": 2025
}
出力:
assets: 資産の内訳と合計liabilities: 負債の内訳と合計equity: 純資産の内訳と合計確認項目:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
決算結果サマリー(令和○年分)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
■ 損益計算書
売上高: ○○○,○○○円
売上原価: ○○○,○○○円
経費合計: ○○○,○○○円
青色申告特別控除前の所得: ○○○,○○○円
■ 貸借対照表
資産合計: ○○○,○○○円
負債合計: ○○○,○○○円
純資産合計: ○○○,○○○円
貸借差額: 0円(一致)
■ 決算整理仕訳: N件
- 減価償却費: ○○○,○○○円
- 棚卸調整: ○○○,○○○円
- 未払計上: ○○○,○○○円
■ 次のステップ:
→ /income-tax で所得税の計算を行う
→ /consumption-tax で消費税の計算を行う
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
サマリー提示後、以下のファイルを Write ツールで出力する。 これにより、セッションの中断や Compact が発生しても次のステップで結果を引き継げる。
.shinkoku/progress/06-settlement.md に以下の形式で出力する:
---
step: 6
skill: settlement
status: completed
completed_at: "{当日日付 YYYY-MM-DD}"
fiscal_year: {tax_year}
---
# 決算整理・決算書作成の結果
## 損益計算書(PL)サマリー
- 売上高: {金額}円
- 売上原価: {金額}円
- 経費合計: {金額}円
- 青色申告特別控除前の所得: {金額}円
## 貸借対照表(BS)サマリー
- 資産合計: {金額}円
- 負債合計: {金額}円
- 純資産合計: {金額}円
- 貸借差額: {金額}円(一致/不一致)
## 決算整理仕訳の一覧
| 内容 | 借方科目 | 貸方科目 | 金額 |
|------|---------|---------|------|
| {減価償却費等} | {科目名} | {科目名} | {金額}円 |
(減価償却、地代家賃按分、棚卸調整、未払計上等を記載)
## 次のステップ
/income-tax で所得税の計算を行う
/consumption-tax で消費税の計算を行う
.shinkoku/progress/progress-summary.md を更新する(存在しない場合は新規作成):
ファイルを出力したらユーザーに以下を伝える:
.shinkoku/progress/ に保存しました。セッションが中断しても次のスキルで結果を引き継げます。」What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/assessThis skill should be used when the user asks to determine what tax filings they need, wants to know if they must file a tax return (確定申告), asks about consumption tax obligations (消費税), or needs help understanding their filing requirements. Trigger phrases include: "確定申告が必要か", "申告の種類", "消費税の届出", "課税事業者かどうか", "何を申告すればいい", "申告要否", "税金の申告", "住民税の申告".
/capabilitiesDisplay shinkoku's current capabilities, supported personas, and known limitations. Use when the user asks "what can you do?", "what's supported?", or similar questions.
/consumption-taxThis skill should be used when the user needs to calculate consumption tax (消費税) or determine their tax method (2割特例, 簡易課税, or 本則課税). Trigger phrases include: "消費税を計算", "消費税の申告", "消費税申告書", "2割特例", "簡易課税", "本則課税", "課税売上", "消費税額", "インボイス", "みなし仕入率", "課税仕入".
/e-bookkeeping-compliance優良な電子帳簿の要件チェック・コンプライアンス診断を実行する。 「優良な電子帳簿」「電帳法対応」「電子帳簿の要件確認」 「税務調査の準備」「75万円控除の条件」「帳簿の要件を満たしているか」 「e-bookkeeping compliance」で起動。
/e-taxThis skill should be used when the user wants to file their tax return electronically via the 確定申告書等作成コーナー (NTA Tax Return Preparation Corner) using Claude in Chrome, Antigravity Browser Sub-Agent, or Playwright CLI (fallback). It guides the browser-based input of calculated tax data. Trigger phrases include: "e-Tax提出", "電子申告", "e-Taxで申告", "作成コーナーに入力", "確定申告書等作成コーナー", "作成コーナー", "申告書を提出".
/furusatoThis skill manages furusato nozei (hometown tax) donations. Use when the user wants to register donation data, read donation receipts, check deduction limits, or manage their furusato nozei records. Trigger phrases: "ふるさと納税", "furusato", "寄附金", "寄付金", "ふるさと納税の控除", "寄附金受領証明書", "ワンストップ特例".
npx claudepluginhub kazukinagata/shinkoku --plugin shinkokuOther plugins' skills for the same job