/cfo:cfo-brieffrom cfo
The 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.
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.
Do the bookkeeping so the user only makes decisions. Be proactive: anything you can't find or confirm becomes a question with your best guess, not a silent gap.
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.Collect everything since the last brief:
unknown and say so.inbox/ folder.Record:
evidence on every row. Then run books.py append BOOKS_DIR scratch.csv. It skips rows whose evidence is already in the ledger and refuses the whole append if any check fails. If it refuses, fix the new rows, or turn the problem into a question. Never edit past rows, and never write the ledger CSV by hand.projects.yaml as proposed, and update renewals.yaml.Check, taking every number from books.py summary BOOKS_DIR --month <current month> --json (and the previous month's when comparing):
envelope); flag over_warning.renewals), yearly ones especially.by_project and monthly_equivalent lines.runs lists the governed runs sealed this month, each with its charter estimate beside its recorded spend. They are API-equivalent and never add to cash. Name a run whose actual is more than its estimate, as summary prints both.over_envelope, or its run-rate (monthly_equivalent.total) is above the envelope, say so in the brief and ask whether to change the envelope. Don't propose a new figure from your own arithmetic.Write briefs/YYYY-MM-DD.md from briefs/TEMPLATE.md in the books. If the template is missing, use these sections in this order:
Every number in the brief comes from summary output, quoted exactly.
Update questions.md. Ids are stable: Q7 is always Q7, and a new question takes the next unused number across Open and Answered. A question is - **Q<n> (YYYY-MM-DD) Title.** question text with a best guess. When the user has answered (an Answer: line under it, or a reply in chat), move it from ## Open to ## Answered in this form: - **Q6 (2026-10-31) Title.** question text **Answered 2026-11-02:** the answer. Never renumber and never delete a question.
Check and commit. Run books.py check BOOKS_DIR --base origin/main and fix every problem it prints. Then commit the books on a branch or directly, as the books' README says, with the brief's headline as the message.
Send the user a short message: the headline, up to five decisions (each a yes or no with the saving or cost), and the open questions with best guesses. Take every number from summary. Link the brief.
If the books aren't reachable in this run, still collect and check, and put the rows you would have added at the end of the message so nothing is lost.
Everything that changes money or services: confirming the envelope or a project budget, retiring or downsizing anything, cancelling or changing a plan, and contacting a vendor. Ask; don't do. Record the user's answers in the books when they reply.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lyddonb/agent-kit --plugin cfoOther 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"./estimate-runEstimate 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./