/cfo:estimate-runfrom cfo
Estimate what an agent run, a charter or a whole project will cost before it starts, in both cash and API-equivalent terms, with a typical and a high figure based on past runs where the books have them. Fills a run charter's estimate and budget. Use for "what will this cost", "estimate this run", "price this charter", "is this worth running", or when writing a run charter.
Ships in cfo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Price the work before it starts, so the budget in its charter is a number with a basis, not a guess.
The books. The CFO keeps its data in a private git repo, "the books", never in this skill or any public repo. Find it in this order: the CFO_BOOKS environment variable, then a git repo named finances inside the current working directory or next to it (a sibling folder), then ask the user where it is. If there are no books yet, offer to create them with this layout:
| File | Holds |
|---|---|
ledger/charges.csv | One row per charge: charge_date, period_start, period_end, provider, service, charge_type, billed_cost, currency, api_equivalent_cost, project, status, source, evidence (FOCUS-style) |
ledger/runs.csv | One row per sealed agent-ledger run, written by books.py runs: the charter's estimate and budget beside the run's recorded spend. API-equivalent, never cash. Created on the first import |
projects.yaml | Which project each provider resource belongs to; new ones are state: proposed until confirmed |
budgets.yaml | The monthly envelope and alert rules; status: proposed until the user confirms |
renewals.yaml | Upcoming renewals and vendor changes to watch |
questions.md | What the CFO needs from the user, each with a best guess |
briefs/ | One brief per weekly run |
inbox/ | Files the user drops in (invoice PDFs, statement CSVs); git-ignored |
Rules that always apply:
billed_cost empty with status: unknown and add a question with your best guess.charge_type: adjustment.books.py summary BOOKS_DIR --month YYYY-MM --json, and ledger writes only from books.py append BOOKS_DIR ROWS_CSV. Never add, average, total or round amounts by hand or in prose, and never write the ledger CSV by hand. Quote each number exactly as summary prints it. Run the script with uv run --python 3.12 <cfo-books skill dir>/scripts/books.py (or with any Python 3.10 or later if uv is not installed); cfo-books is a sibling skill in this plugin, so look for its directory next to this skill's directory..audit/runs/*/ledger.jsonl spend entries, if the project uses agent-ledger) for past runs of the same tier. Use their actual cost per unit of work. With fewer than five comparable runs, say so and fall back to step 3.A short table (item, assumption, API-equivalent, cash), the typical and high totals, the proposed budget in the charter's front-matter format:
estimate: {usd: <typical cash>, tokens: <typical>, wall_clock: <typical>, calls: {...}}
budget: {usd: <high cash>, tokens: <high>, wall_clock: <high>, max_parallel_agents: <n>}
and one sentence on what would change the estimate most.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/cfo-booksCheck, append to and summarize the CFO's private books (ledger, projects, budgets, renewals, questions). Checks find schema errors, forbidden content such as card numbers, account IDs and API keys, and rewritten ledger history. Use before committing or opening a PR against the books, to add ledger rows, to book sealed agent-ledger runs (estimate beside actual), to get a month's spend numbers, when a books CI check fails, or when asked to "check the books", "validate the ledger" or "summarize the month"./cfo-briefThe CFO's weekly routine. Collects new receipts, invoices, vendor notices and billing data into the private books, checks spend against the budget, finds waste and renewals, writes a brief, and sends it with decisions and questions for the user to approve. Proposes; never acts. Use for "CFO brief", "weekly finance review", "check my spending this week", or from a weekly scheduled task./npx claudepluginhub lyddonb/agent-kit --plugin cfo