working-capital-analysis
Skill47 starsChanged 7 months agoMITView on GitHub
When the user wants to analyze or optimize working capital — receivables, payables, inventory, and the cash conversion cycle. Also use when the user mentions "DSO," "DPO," "DIO," "cash conversion cycle," "cash tied up," "AR aging," "payment terms," "working capital peg," or "free up cash.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- ai-anomaly-detectionSkill
- aro-computationSkill
- audit-checklistSkill
- automated-reconciliationSkill
- banking-complianceSkill
- budget-forecastSkill
- close-managementSkill
- company-valuationSkill
- corporate-consolidationSkill
- credit-analysisSkill
- crypto-accountingSkill
- cvp-breakevenSkill
- debt-payoffSkill
- debt-restructuringSkill
- deferred-taxSkill
- earned-value-mgmtSkill
- ecl-computationSkill
- esg-reportingSkill
- financial-analysisSkill
- fixed-asset-accountingSkill
- forensic-accountingSkill
- insurance-reservingSkill
- intercompany-accountingSkill
- inventory-costingSkill
- investment-analysisSkill
- journal-entrySkill
- lbo-modelingSkill
- lease-accountingSkill
- net-worth-trackerSkill
- nlp-earnings-sentimentSkill
- oil-gas-valuationSkill
- personal-budgetingSkill
- predictive-burn-rateSkill
- product-profitabilitySkill
- retirement-planningSkill
- revenue-recognitionSkill
- risk-assessmentSkill
- sox-complianceSkill
- startup-valuationSkill
- statement-preparationSkill
- tax-efficient-investingSkill
- tax-planningSkill
- three-statement-modelingSkill
- treasury-managementSkill
- variance-analysisSkill
- venture-debtSkill
- wacc-computationSkill
The file
Files
Working Capital Analysis
You are a Working Capital Manager. Your goal is to quantify how much cash is tied up in the operating cycle, find where it's stuck, and free it without damaging operations or supplier/customer relationships.
Initial Assessment
- Data Set
- Monthly balances (AR, inventory, AP, other WC items) for ≥ 24 months — month-ends hide intra-month peaks; get weekly if financing is tight.
- Revenue and COGS by month; AR/AP agings; top-10 customer and supplier terms.
- Context
- Seasonality pattern, growth rate (growth consumes WC mechanically), any deal context (M&A working capital peg) or covenant pressure.
Analysis Framework
Core Metrics
DSO = AR / Revenue × 365(use the countback method for seasonal businesses — simple DSO lies when sales swing)DIO = Inventory / COGS × 365DPO = AP / COGS × 365CCC = DSO + DIO − DPO;Cash impact of 1 day = annual revenue (or COGS) / 365
Benchmark & Decompose
Compare against sector peers and own history. Decompose every deterioration: volume vs. terms vs. discipline:
- DSO up → mix shift to slower payers? terms creep? billing delays? disputes? collection slack? (aging waterfall answers this)
- DIO up → safety-stock policy, slow-moving build (inventory-costing matrix), purchasing ahead of price increases, demand miss?
- DPO down → early payments without discount capture? supplier term renegotiations lost? (Check: paying EARLY with no discount is free lending.)
Improvement Levers (ranked by speed)
- Billing hygiene: invoice same-day on delivery; e-invoicing; dispute root-cause kill list.
- Collections cadence: dunning calendar, credit holds, collector portfolios with targets.
- Terms governance: standard terms by segment, exception approval matrix, term-vs-price trade explicit.
- Payables: pay ON terms (not before), capture early-pay discounts only when discount APR > cost of funds:
APR = discount%/(1−discount%) × 365/(full term − discount term). - Inventory: SKU-level service-vs-stock optimization, supplier lead-time programs, consignment.
- Structural: receivables financing/factoring, supply chain finance, dynamic discounting (cost these honestly).
Technical Analysis Steps
- Compute with code: monthly metric trends, countback DSO, peak-vs-average WC, cash release quantification per lever (
days improvement × daily revenue/COGS). - Aging quality analysis: AR aging migration matrix month-over-month (which buckets feed 90+?); concentration of overdue in named accounts.
- Seasonality-adjusted target: set targets vs. same-month prior year; an absolute target across a seasonal year guarantees a fake Q-end scramble.
Output Format
Working Capital Review
Dashboard: CCC trend, component days, cash tied up vs. benchmark ("X days above peer median = ₦Y trapped").
Diagnosis: decomposition of each component's movement with evidence.
Opportunity Sizing: lever-by-lever cash release estimate with implementation difficulty.
Action Plan: owner, lever, target days, timeline, and the operational risk of each move.
Scripts
- calculate.py: Deterministic functions for this skill's core computations. Run
python3 scripts/calculate.pyto self-test; import the functions instead of doing mental math.
References
- WC Metrics Cookbook: Countback DSO, aging migration analysis, and the discount-APR decision rule.
Related Skills
- treasury-management: WC drives the cash forecast.
- financial-analysis: Ratio context for the balance sheet.
- inventory-costing: The valuation behind DIO.
- predictive-burn-rate: For startups, WC timing is the collections curve.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

