Claude Templates / S-tier · Foundation

Admin & Ops

The Admin Console Playbook

A 12-section operator cockpit: accounts, impersonation, P&L, audit log, settings.

ADMIN-CONSOLE-PLAYBOOK.md · 26 sections · 5,216 words · 42 KB · markdown

The surface you live in once real users show up. Customer list with drill-down, safe impersonation, plan management, credit grants, a financial overview, and a full audit log. The largest playbook in the library because it replaces four SaaS tools you'd otherwise pay for.

What's inside

When to use it

Week 3. Day 1 of having customers, in practice.

Straight from the file

Scope to your app: a per-user tool (no sales motion) can drop Inbox/Mail; a pre-revenue internal app can drop Automations/SEO and stub the P&L. Ship Summary + Accounts + Users + Audit + Impersonation as the irreducible core.

Table of contents

  1. 0. Use this spec
  2. 1. Architecture
  3. 2. Nav structure (the cockpit)
  4. 3. Schema (Supabase)
  5. 4. Edge gating (proxy.ts)
  6. 5. requireAdmin() + the role/permission model
  7. 6. Audit log — recordAdminAction()
  8. 7. Overview dashboard — financial P&L + acquisition funnel
  9. 8. Customer/workspace management endpoints
  10. 9. Signups segmentation (lead vs abandoned checkout)
  11. 10. Cold leads (anonymous lead-magnet opt-ins)
  12. 11. Unified conversation system (one core, three faces)
  13. 15. Email automation console (Automations)
  14. 16. Analytics tab
  15. 17. SEO & GEO tab
  16. 18. Settings
  17. 19. Impersonation flow
  18. 20. Enterprise API key bridge
  19. 21. Refund issuance
  20. 22. Customer health metrics
  21. 23. Realtime notifications (the "cha-ching")
  22. 24. Admin Web Push
  23. 25. Message attachments
  24. 26. Admin → Client sync rule (MANDATORY)
  25. 27. Common pitfalls
  26. 28. Kickoff prompt

How to run it

Drop ADMIN-CONSOLE-PLAYBOOK.md into your repo, then tell Claude Code: “Read ADMIN-CONSOLE-PLAYBOOK.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.

↓ Download the playbook

More admin & ops playbooks

← All 28 Claude templates