All loops
FinanceMedium 12 min· claude-haiku-4-5
Subscription churn forensics
Subscription churn forensics with auditable Claude reasoning.
Read the full Finance build guide →NOT DEPLOYEDNOT DEPLOYED
0191ms
Trigger
cron(0 7 * * *) fired · every day · 07:00
02971ms
Agent
claude-haiku-4-5 · in 1271 tok · out 401 tok
03241ms
Tools
postgres-mcp/anthropic:messages.create → 200 OK · 211ms
0481ms
Verify
schema check · pydantic v2 passed
05111ms
Output
invoice row upserted · $4,120
0631ms
Notify
audit log written · runbook link attached
SUCCESS
0%
0 runs
P50
0ms
median
P95
0ms
tail
AVG COST
—
per run
LAST OK
never
—
LAST FAIL
never
none
Latency · last 30 runs0 samples
no runs yet
Latest output · what your users see
Invoice · VercelTooling
$1,091.61 USD
// press Test to run once · Watch live to keep streaming · Deploy to make it real
The problem
Finance ops are spreadsheets glued together with hope.
The outcome
A scheduled agent does the join, the variance, and the narrative.
Ingredients & skills
Secrets
- ANTHROPIC_API_KEY
- STRIPE_KEY
Providers
- Anthropic
- Stripe
MCP servers
- postgres-mcp
- fetch-mcp
#finance#ops#claude
How it works
Subscription churn forensics with auditable Claude reasoning.
Step 1
1 — Pull
Read from billing + GL via read-only keys.
Step 2
2 — Join + narrate
Claude joins, computes, and writes the narrative with citations.
Step 3
3 — Distribute
PDF + Slack + (optional) board portal.
One-line deploy
The button above runs the same command with your saved config. This is the raw CLI form.
bash
npx claudeloops deploy subscription-churn-forensicsRelated loops
Finance
Weekly investor update generator
Stripe + Postgres metrics → narrative artifact → Resend to your investor list.
Ops
On-call alert → AI runbook
PagerDuty → Claude reads last 5 deploys + logs → draft runbook in the alert thread.
Finance
Stripe revenue anomaly alert
Detect MRR cliffs in real time and ping #revenue with the suspect customer.