cash-flow-snapshot
Reads AR/AP, historical cash timing, and known fixed costs from QuickBooks, PayPal, Stripe, or Square — or a CSV upload — and produces a 30/60/90-day cash flow forecast with percentage-variance confidence bands and named risk flags. Delivers a chat summary and a downloadable XLSX. Use when the user asks "forecast my cash flow," "will I make payroll," mentions "runway," or says "cash crunch." Falls back to CSV upload when no connector is live.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o cash-flow-snapshot.zip https://jpskill.com/download/22753.zip && unzip -o cash-flow-snapshot.zip && rm cash-flow-snapshot.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22753.zip -OutFile "$d\cash-flow-snapshot.zip"; Expand-Archive "$d\cash-flow-snapshot.zip" -DestinationPath $d -Force; ri "$d\cash-flow-snapshot.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
cash-flow-snapshot.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
cash-flow-snapshotフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[スキル名] cash-flow-snapshot
キャッシュフロー・スナップショット
30日、60日、90日間のキャッシュフロー予測を、パーセンテージ差異の信頼帯と、名前付きのリスクフラグ付きで作成します。簡潔なチャット要約とダウンロード可能なXLSXワークブックの2部構成で出力します。
クイックスタート
「来月、給与を支払えるでしょうか?」
Claudeは、接続されたソースから売掛金/買掛金および固定費を抽出し、30日、60日、90日の期間における予想される資金流入と流出を計算し、各顧客の過去の支払い差異に基づいて信頼帯を適用し、特定のリスクに名前を付けてフラグを立てます。
ワークフロー
ステップ1 — 利用可能なデータソースの特定
どのコネクタが稼働しているかを確認します。以下の順序で試してください。
- QuickBooks — 売掛金年齢、買掛金、固定費の主要ソース
- PayPal — 取引履歴と決済タイミング
- Stripe — 請求および支払い履歴
- Square — 売上および支払い履歴
- CSVアップロード — コネクタが接続されていない場合の代替
コネクタが稼働しておらず、ファイルが添付されていない場合は、ユーザーにソースを接続するか、CSV(収入/支出の表形式データ、任意の合理的な形式)をアップロードするよう依頼します。出力に使用されたソースをメモしてください。これは信頼帯の幅に影響します。
ステップ2 — データの取得
QuickBooksから:
- 売掛金年齢レポート: 顧客名、請求額、請求日、期日、未収日数
- 買掛金: 業者名、支払額、期日
- 経常固定費: 家賃、給与、サブスクリプション(経常取引を探す)
PayPal / Stripe / Squareから:
- 決済履歴: 取引日、金額、決済日
- 決済遅延(取引日 → 支払い日)を使用して、各ソースの平均および分散支払い遅延を計算します。
CSVアップロードから:
- 収入/支出の表形式データとして解析します。
- 必須列(柔軟な命名): date, amount, type (incomeまたはexpense), description
- 列が曖昧な場合は、ヘッダー行を表示し、ユーザーにマッピングの確認を求めます。
ステップ3 — 過去の支払いタイミングの計算
各売掛金顧客(またはCSVからの収入源)について、以下を計算します。
- 平均支払い遅延 — 請求書/取引日から入金までの平均日数
- 支払い分散 — 過去6〜12回の支払いにおける支払い遅延の標準偏差
- 分散を使用して信頼帯の幅を設定します(ステップ4を参照)。
顧客の支払いが3回未満の場合、母集団平均を点推定値として使用し、デフォルトとして±30%の分散帯を適用します。十分な履歴(ソースごとに3回以上の支払い)を持つCSVデータで実行する場合、実際の支払い分散から帯を計算します。±30%を仮定しないでください。
ステップ4 — 30/60/90日間の予測の構築
0〜30日、31〜60日、61〜90日の3つの期間を作成します。
各期間について、以下を計算します。
| 項目 | 方法 |
|---|---|
| 予想される資金流入 | 期間内に期日を迎える売掛金、平均支払い遅延を調整済み |
| 予想される資金流出 | 期間内に期日を迎える買掛金 + 期間内に発生する固定費 |
| 純現金ポジション | 資金流入 − 資金流出 |
| 信頼帯 | 予想される資金流入の%としての±加重平均支払い分散 |
信頼帯の計算式:
band_pct = weighted_avg_stddev_days / avg_payment_lag_days
low = net_cash × (1 − band_pct)
high = net_cash × (1 + band_pct)
band_pctは小数点以下1桁に丸めます。±50%で上限を設定します。これより高い分散は、データが薄すぎてモデル化できないことを意味します。代わりにフラグを立てます(ステップ5を参照)。
ステップ5 — 名前付きリスクのフラグ付け
低帯域推定値がマイナスになる、または流動性危機を引き起こす条件をスキャンします。見つかった各リスクについて、1行のフラグを作成します。
- 遅延支払いリスク: 「顧客Xは歴史的に18日遅れて支払います。そのため、8,400ドルの請求書は30日間の期間から48日目にずれ込みます。」
- 給与危機: 「給与(22,000ドル)は4月15日に発生します。4月14日の手元現金(低帯域): 19,200ドル。不足リスク: 2,800ドル。」
- データ不足警告: 「顧客Yの記録は2回の支払いのみです。信頼帯はデフォルトの±30%に設定されています。」
- コネクタなし警告: 「CSVデータのみで実行しています。リアルタイムの買掛金や経常費用データはありません。信頼帯は通常よりも広いです。」
深刻度(最大のドル影響)で上位5つのリスクに限定します。
ステップ6 — 出力の提供
チャット要約(常に):
キャッシュフロー・スナップショット — [日付範囲]
ソース: [使用されたコネクタ]
予想 低 高
30日純額: $X,XXX $X,XXX $X,XXX
60日純額: $X,XXX $X,XXX $X,XXX
90日純額: $X,XXX $X,XXX $X,XXX
⚠ フラグ付きリスク: [件数]
• [リスク1]
• [リスク2]
...
XLSXワークブック(常に):
生成する前にxlsx/SKILL.mdを読んでください。3つのシートを持つワークブックを作成します。
-
Summary — 信頼帯付きの30/60/90日予測テーブル。各期間行の下に、その資金流入(緑)と資金流出(赤)を構成する個々の取引を示すインラインのサブ行を展開します。これにより、Summaryシートを離れることなく推定値を監査できます。
-
Detail — すべての取引を期間ごとにグループ化し、各グループ内で日付順にソートします。実行中の純額列(期間内の累積資金流入から資金流出を引いたもの)と、各期間の最後に総資金流入、総資金流出、純額を示す小計行を含めます。過去の取引は、参照用に下部の別のセクションでグレーアウトします。いずれかの期間が空の場合でも、3つの期間すべてに行があることを確認し、「この期間に取引はありません」というプレースホルダー行を表示します。
-
Risks — ドル影響と影響を受ける期間が示されたフラグ付きリスク。
cash-flow-snapshot-[YYYY-MM-DD].xlsxとして保存します。
承認ゲート
破壊的なアクションはありません。このスキルは読み取り専用です。予測を生成する前に承認ゲートは不要です。
配信後、ユーザーに以下のことを思い出させます。
「この予測は[リストされたソース]に基づいています。会計アドバイスの代わりになるものではありません。資金調達の決定を行う前に、経理担当者にご確認ください。」
参照ファイル
| ファイル | ロードするタイミング |
|---|---|
reference/gotchas.md |
コネクタが予期しないデータを返すか、分散が極端な場合 |
reference/examples/worked-example.md |
新しいデータ形状の出力形式をモデル化する場合 |
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Cash Flow Snapshot
Produces a 30/60/90-day cash flow forecast with percentage-variance confidence bands and named risk flags. Delivers a two-part output: a concise chat summary and a downloadable XLSX workbook.
Quick start
"Will I make payroll next month?"
Claude pulls AR/AP and fixed costs from connected sources, calculates expected inflows and outflows across 30, 60, and 90-day windows, applies confidence bands based on each customer's historical payment variance, and flags specific risks by name.
Workflow
Step 1 — Identify available data sources
Check which connectors are live. Try in this order:
- QuickBooks — primary source for AR aging, AP, and fixed costs
- PayPal — transaction history and settlement timing
- Stripe — charge and payout history
- Square — sales and payout history
- CSV upload — fallback if no connector is connected
If no connector is live and no file is attached, ask the user to either connect a source or upload a CSV (income/expense tabular data, any reasonable format). Note which sources were used in the output — this affects confidence band width.
Step 2 — Pull the data
From QuickBooks:
- AR aging report: customer name, invoice amount, invoice date, due date, days outstanding
- AP: vendor name, amount due, due date
- Recurring fixed costs: rent, payroll, subscriptions (look for recurring transactions)
From PayPal / Stripe / Square:
- Settlement history: transaction date, amount, settlement date
- Use settlement lag (transaction date → payout date) to compute each source's average and variance payment delay
From CSV upload:
- Parse as income/expense tabular data
- Required columns (flexible naming): date, amount, type (income or expense), description
- If columns are ambiguous, show the header row and ask the user to confirm mapping
Step 3 — Compute historical payment timing
For each AR customer (or income source from CSV), calculate:
- Mean payment lag — average days from invoice/transaction date to receipt
- Payment variance — standard deviation of payment lag across last 6–12 payments
- Use variance to set confidence band width (see Step 4)
If fewer than 3 payments exist for a customer, use the population mean as the point estimate and apply a ±30% variance band as the default. When running on CSV data with sufficient history (≥3 payments per source), compute the band from the actual payment variance — do not assume ±30%.
Step 4 — Build the 30/60/90-day forecast
Produce three time windows: 0–30 days, 31–60 days, 61–90 days.
For each window, compute:
| Line | Method |
|---|---|
| Expected inflows | AR due in window, adjusted for mean payment lag |
| Expected outflows | AP due in window + fixed costs falling in window |
| Net cash position | Inflows − Outflows |
| Confidence band | ± weighted average payment variance as a % of expected inflows |
Confidence band formula:
band_pct = weighted_avg_stddev_days / avg_payment_lag_days
low = net_cash × (1 − band_pct)
high = net_cash × (1 + band_pct)
Round band_pct to one decimal place. Cap at ±50% — higher variance means the data is too thin to model; flag it instead (see Step 5).
Step 5 — Flag named risks
Scan for conditions that push the low-band estimate negative or create a liquidity crunch. For each risk found, produce a one-line flag:
- Late-payer risk: "Customer X historically pays 18 days late; that shifts their $8,400 invoice out of the 30-day window into day 48."
- Payroll crunch: "Payroll ($22,000) hits April 15. Low-band cash on hand April 14: $19,200. Shortfall risk: $2,800."
- Thin data warning: "Only 2 payments on record for Customer Y — confidence band set to default ±30%."
- No-connector warning: "Running on CSV data only — no real-time AP or recurring cost data. Confidence bands are wider than normal."
Limit to the top 5 risks by severity (largest dollar impact first).
Step 6 — Deliver outputs
Chat summary (always):
Cash Flow Snapshot — [date range]
Source(s): [connectors used]
Expected Low High
30-day net: $X,XXX $X,XXX $X,XXX
60-day net: $X,XXX $X,XXX $X,XXX
90-day net: $X,XXX $X,XXX $X,XXX
⚠ Risks flagged: [count]
• [risk 1]
• [risk 2]
...
XLSX workbook (always):
Read xlsx/SKILL.md before generating. Produce a workbook with three sheets:
-
Summary — the 30/60/90 forecast table with confidence bands. Beneath each window row, expand inline sub-rows showing the individual transactions that make up its inflows (green) and outflows (red). This makes the estimates auditable without leaving the Summary sheet.
-
Detail — all transactions grouped by window, sorted by date within each group. Include a running net column (cumulative inflows minus outflows within the window) and a subtotal row at the bottom of each window showing total inflows, total outflows, and net. Grey out past transactions in a separate section at the bottom for reference. Ensure all three windows have rows even if one is empty — show a "No transactions in this window" placeholder row.
-
Risks — the flagged risks with dollar impact and affected window.
Save as cash-flow-snapshot-[YYYY-MM-DD].xlsx.
Approval gates
No destructive actions — this skill is read-only. No approval gate required before generating the forecast.
Remind the user after delivery:
"This forecast is based on [sources listed]. It is not a substitute for accounting advice — verify with your bookkeeper before making financing decisions."
Reference files
| File | Load when |
|---|---|
reference/gotchas.md |
When a connector returns unexpected data or variance is extreme |
reference/examples/worked-example.md |
When modeling the output format for a new data shape |