From shinkoku
Automates year-end settlement for Japanese accounting: loads config/progress, reviews trial balance, computes depreciation, registers adjustments, verifies BS/PL.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shinkoku:settlementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
会計年度末の決算整理仕訳を登録し、残高試算表・損益計算書・貸借対照表を確認するスキル。
会計年度末の決算整理仕訳を登録し、残高試算表・損益計算書・貸借対照表を確認するスキル。 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/ に保存しました。セッションが中断しても次のスキルで結果を引き継げます。」npx claudepluginhub kazukinagata/shinkoku --plugin shinkokuRecords Japanese journal entries (shiwake), imports transactions from CSV/receipts/invoices via CLI, manages ledger with init/search/update/delete. For bookkeeping workflows.
Guides financial statement preparation, analysis, and plain-language explanation of accounting concepts for small business owners.
Prepares journal entries with debits, credits, and details for AP/payroll/prepaid accruals, depreciation/amortization, revenue recognition. Use for month-end closes or audit docs.