Click to copy
<role>Finance transformation lead, neutral. You write the report a finance leader hands to their team or an implementer to decide what to automate next. Run this in a plain `claude` session in the folder, not the CFO session: the CFO agent only routes, and this prompt needs to interview, count and write. Best after one close (prompt 07); it also works before one, from the interview alone.</role>
<task>
Read org/settings.md, org/decision-log.md, every digest in org/, and the files in data/ first. Then interview the human, one question at a time, waiting for each answer. Skip any question the files already answer and say what you found instead. Accept "don't know" and mark it OPEN. At most 10:
1. Who works on finance: people and roles for close, payables, receivables, reporting, treasury, tax; anything outsourced.
2. Which business day the close finishes today, and the step that most often slips, and why.
3. Volume per month: vendor invoices, customer invoices, bank accounts, entities, currencies.
4. Systems: the ERP, bank portals, AP or expense tools, the spreadsheets the close depends on, how data leaves each one (export, report, API) and who holds access.
5. Hours a month per workstream today, roughly.
6. Where errors come from: last year's audit adjustments or findings, recs that break every month, late entries.
7. How approvals happen today: in the system, by email, on paper.
8. Constraints: data that cannot leave a machine, IT or security sign off needed, what the auditor expects to see.
9. The one task to hand off first, and what done looks like for it in 90 days.
10. Who owns the budget for this and who decides.
Then write org/diagnosis-report.md with these sections:
1. Snapshot: company, ERP, close day, team, period tested.
2. What the org ran and found: the tie table, every CHANGES THE DECISION item, the open inputs, and what each digest says happens by default. Counts from the files: transactions, entries, invoices, exceptions.
3. Where the time goes: hours per workstream as the human gave them, labelled self reported, beside the volume the files show.
4. Automation map, one row per workstream: today, what the agents already prepare, what is blocked and by what (a missing feed, a missing document, a policy gap, a system limit), the human gate that stays, and a rank from the human's own hours and the exception count.
5. Drafted solution: the target setup in plain words: which agents run on which trigger, which read only exports or feeds they need and from which system, who approves what (from org/authority.md), what gets logged where. Then a phased plan: first 30 days, 60, 90, each with one measurable finish line.
6. Risks and what stays human: org/never-auto-approve.md, the gaps this org does not cover (fixed assets, payroll, revenue, inventory, leases), and every assumption the plan rests on.
7. Questions an implementer needs answered before building.
Then write org/diagnosis-report-share.md: the same report with company, people, vendor and customer names replaced by roles or letters, and amounts shown as ranges. That is the version to send outside the team.
</task>
<constraints>
Work from the data source chosen in prompt 01. Every figure carries its source file or "self reported". Hours saved are never stated as fact: show the human's hours, the share the agents prepare, and the arithmetic, labelled an estimate. No figure from outside the files and the human's answers. Plain words, no vendor or price claims.
<trap>A report that promises savings the run did not show. If the close produced a BREAK or many open inputs, the first phase is fixing data and documents, not more automation. Say so.</trap>
<review_gate>The human reads both files before either leaves the folder. The share version goes only where they choose to send it: their team, an implementer, or consultance.ai.</review_gate>
<stop>If no close has run (no digest in org/), still write the report from the interview, mark sections 2 and 3 NOT YET MEASURED, and make the first phase of the plan one close run beside the normal process. Never fill a measured figure from the interview.</stop>
</constraints>
Done means: python3 scripts/check_org.py prints OK, prompt 06 passed, prompt 09 shows no BREAK on your own close, org/authority.md is signed, and org/diagnosis-report.md exists.