small-business / cash-flow-snapshot: confidence band flips or collapses when net cash is negative or near zero
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- markdown
調査の方向性
plugins/small-business/skills/cash-flow-snapshot/SKILL.mdを読み、特にステップ4と5、および信頼区間を説明している表の行を確認してください。予想流入額に対する割合として不確実性を示すという意図に照らして、数式が負、ゼロに近い、ゼロの純キャッシュをどのように扱うかを確認してください。文書化された計算で下限と上限の順序が保たれ、3つすべての場合に流入額の不確実性が表されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
small-business / cash-flow-snapshot: confidence band flips or collapses when net cash is negative or near zero
Plugin: small-business v1.35.1 Skill: skills/cash-flow-snapshot Checked against: anthropics/knowledge-work-plugins main, commit 02ffa99 (11 Oct 2026). Bug is present.
Summary
Step 4 of SKILL.md scales the confidence band by the net cash figure:
band_pct = weighted_avg_stddev_days / avg_payment_lag_days
low = net_cash × (1 − band_pct)
high = net_cash × (1 + band_pct)
The band measures uncertainty in when customers pay, so it belongs on expected inflows. Multiplying it by net cash breaks in three ways:
- Negative net: low and high swap. "Low" comes out less negative than "high", so the pessimistic case looks better than the expected case.
- Net near zero: the band collapses. A window with large inflows and matching outflows gets a band of almost zero, even though every inflow is uncertain.
- Net of exactly zero: no band at all.
The table one row above the formula already describes the intended behavior ("± weighted average payment variance as a % of expected inflows"). The formula doesn't follow it.
Why it matters
Negative and near-zero windows are the cases the skill exists for ("will I make payroll", "cash crunch"). Step 5 tells the model to flag risks when the low-band estimate goes negative. With the formula as written, a negative window reports a low band that is better than expected, so the shortfall risk is understated at exactly the moment it matters.
Reproduction
Band of 9.7% in each case except the last row.
Case | Inflows | Outflows | Net | Low / High as written | Low / High on inflows -- | -- | -- | -- | -- | -- Negative net | 53,200 | 64,420 | −11,220 | −10,132 / −12,308 (flipped) | −16,380 / −6,060 Zero net | 50,000 | 50,000 | 0 | 0 / 0 (no band) | −4,850 / +4,850 Repo worked example, 0–30d (band 28.3%) | 22,600 | 22,000 | +600 | 430 / 770 | −5,796 / +6,996To reproduce in a session: run cash-flow-snapshot on any CSV where one window's outflows exceed its inflows, and follow Step 4 literally.
The worked example contradicts the formula
reference/examples/worked-example.md doesn't follow the rule either, and its two rows use different methods:
- 0–30d: net +600, band 28.3%, shown as −5,928 / +7,128. That is a wide range, which an inflow-based band produces. The formula as written gives 430 / 770. The figures also don't exactly match the inflow-based result (−5,796 / +6,996), so the example has an arithmetic slip as well.
- 31–60d: net +2,320, shown as 1,670 / 2,970. That is net × (1 ∓ 0.28), the formula as written.
A model following the skill gets two conflicting examples and has to guess.
Suggested fix
Apply the band to expected inflows, as the Step 4 table already says:
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)
+low = net_cash − (band_pct × expected_inflows)
+high = net_cash + (band_pct × expected_inflows)
```
Then regenerate the worked example's forecast table and chat summary with the corrected formula so both rows use one method.
Smaller issues found nearby
- "Round band_pct to one decimal place" is unclear. If
band_pctis a fraction, one decimal place turns 0.283 into 0.3 (30%). The example shows 28.3%, so the intent is probably "one decimal place as a percentage." Worth saying so. - The band is a percentage of the payment lag, used as a percentage of the cash amount. Std dev ÷ mean lag measures how much timing varies, not how much money is at risk. It works as a rough proxy, but a better model would move each receipt by ±1 std dev of lag and re-bucket it into windows (a late payer slipping out of the 30-day window entirely). The skill's own late-payer risk flag already reasons this way.
- Forecast covers booked work only. The 60- and 90-day windows include only open AR, booked jobs, AP and fixed costs. For any business that keeps invoicing new work, those windows trend negative by construction, and the skill doesn't tell the model to say so. A one-line caveat in the output template would prevent owners from reading a cliff that isn't there.
- 主要言語
- Python
- スター
- 36.8k
- フォーク
- 4.1k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 17
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anthropics/knowledge-work-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
anthropics/knowledge-work-plugins#1357 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anthropics/knowledge-work-plugins#1306 ·
メンテナーはふだん 1 日以内に返信
-
package_data_skill.py reports success with an empty ZIP under .claude再び着手できるかも @swati781895-netizen が 48 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anthropics/knowledge-work-plugins#1298 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anthropics/knowledge-work-plugins#1297 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
generate_samplesheet.py emits malformed CSV when FASTQ paths contain commas再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
anthropics/knowledge-work-plugins#1296 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
anthropics/knowledge-work-plugins の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
SQL Lab: pasting text that matches no database into the "Data connection" select throws TypeErrorオープン#bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
bug crash needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Community-Access/quill#2135 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
munendra07-tech/agent-crashtest#20 ·
メンテナーはふだん 1 日以内に返信
-
braveapi: time range filter is sent as time_range, which the Brave API ignores (needs freshness)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信