Revenue / Agent playbook
Find billing and entitlement leaks
Check whether paid access, usage, and invoices agree with product behavior.
THE RESULTA trace of mismatches between what customers can use and what they are charged for.
You offer plans, seats, metered usage, trials, or grace periods and want to catch revenue leakage.
- Plan transitions
- Seat and usage counting
- Payment failure states
- Entitlement enforcement
COPY AND RUN
The prompt
Trace the revenue contract through this SaaS: plan selection, checkout, payment events, subscription state, entitlements, seat allocation, usage metering, invoices, failed payments, and cancellation. Compare the customer-visible promise with what the application actually permits and records.
Look for free access that should expire, paid access revoked too early, double or missing usage counts, seat reassignment edge cases, race conditions around webhooks, and plan changes that leave stale permissions. Use synthetic examples for sensitive paths. Run read-only reconciliation queries only if separately authorized.
For each material mismatch, show a reproducible scenario, relevant code path, possible financial effect, confidence, and a safe correction with a verification step. Prioritize issues that affect many accounts or recurring charges. Do not change billing records or contact customers.
Working rules:
- Treat this as a read-only review. Do not edit code, change settings, contact customers, or run write operations.
- You may inspect the codebase and commit history. Use read-only database queries only if I have separately authorized that access for this run. Avoid exposing personal or sensitive data in the report.
- Verify claims against current code and data. Treat existing documentation and earlier agent reports as leads, not proof. Cite file paths and relevant lines or query summaries for every material finding.
- Distinguish measured evidence from estimates and assumptions. Say what you could not verify. Do not invent metrics.
- Focus on practical changes the team could make without a major strategy shift. Report only important bugs relevant to this review; this is not a legal or compliance audit.
- Give me a concise, shareable report for human review. Do not implement changes yet.The prompt requests read-only analysis. Give database access separately only if you want the agent to use it.