Liquidity management

From JoelLewis/finance_skills · View interactive version

Liquidity management is an AI agent skill from the GitHub repository JoelLewis/finance_skills. Plan and manage cash flow to ensure adequate liquidity while minimizing opportunity cost of excess cash. Use when the user asks about cash flow forecasting, CD or bond laddering, liquidity tiers, income smoothing for variable earners, or sweep strategies. Also trigger when users mention 'T-bill ladd

How to use this skill

Skill file

Liquidity Management

Core Concepts

Cash Flow Forecasting

Project income and expenses monthly for 12+ months:

Income Smoothing (Variable Earners)

For commission, freelance, seasonal, or bonus-heavy income:

Liquidity Tiers

Classify investable assets by time to access:

| Tier | Access Time | Examples | Typical Yield |

|------|------------|---------|---------------|

| Tier 1 — Immediate | Same day | Checking and savings at your primary bank, money market funds | Low |

| Tier 2 — Short-term | 1-3 business days | High-yield savings at an online bank, brokerage sweep cash, T-bills, bond funds and bond ETFs | Moderate |

| Tier 3 — Medium-term | 1-4 weeks (or penalty cost) | CDs (early-withdrawal penalty), I-bonds (after 1-year lockup) | Moderate-High |

| Tier 4 — Long-term | 30+ days | Real estate, PE/VC, locked alternatives, retirement accounts (pre-59½) | Highest |

Tier notes:

CD Laddering

Stagger CD maturities for regular access + higher yields:

Bond Laddering

Similar concept with Treasury or corporate bonds:

T-Bill Ladder

Short-duration, high-liquidity ladder:

Liquidity Metrics

Seasonal and Tax Planning

Margin of Safety

Maintain buffer above minimum liquidity requirements:

Key Formulas

| Formula | Expression | Use Case |

|---------|-----------|----------|

| Liquidity ratio | Liquid assets / monthly expenses | Adequacy check |

| Net cash flow | Σ income - Σ expenses | Monthly surplus/deficit |

| CD ladder yield | Weighted average of rung yields | Blended return on ladder |

| Smoothing reserve | Base monthly expenses × 2-3 | Buffer for variable income |

| Breakeven penalty | CD early withdrawal penalty / (CD rate - savings rate) | Whether to break CD |

Worked Examples

Example 1: CD Ladder Construction

Given: $60,000 to deploy, want liquidity every 2 months, 12-month CDs yielding 4.8%

Calculate: Ladder structure and blended yield

Solution:

Example 2: Variable Income Smoothing

Given: Freelancer with monthly income ranging $3,000-$15,000, average $8,000. Monthly expenses $5,500.

Calculate: Base budget and smoothing reserve target

Solution:

Common Pitfalls

Cross-References

Running the script

Run the reference implementation directly:

uv run scripts/liquidity_management.py     # PEP 723 header resolves dependencies automatically
python3 scripts/liquidity_management.py    # after: pip install numpy scipy

A bare run prints a demo covering liquidity ratios, a 12-month cash flow projection, cash runway, liquidity tier analysis, CD ladder construction, income smoothing, and CD breakeven analysis. Use --verify to recompute the demo figures and assert they match this skill's worked examples (prints PASS/FAIL, exits nonzero on mismatch), and --help to list the available classes and functions. The file is primarily meant to be imported as a module (from liquidity_management import LiquidityManagement) rather than run standalone.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.