revenue-gap-trackerlisted
Install: claude install-skill IgorGanapolsky/mac-yolo-safeguards
# Revenue Gap Tracker Skill
Use this skill whenever revenue monitoring is blocked, stalled, or needs
verification against live production data.
## Quick Commands
| Action | Command |
|--------|---------|
| Audit revenue goals | `node tools/revenue-goal-audit.js --no-auto-send` |
| Autonomous revenue loop | `node tools/revenue-autonomous-loop.js --no-auto-send --fast --json` |
| Check public health endpoint | `curl -s -H "User-Agent: Mozilla/5.0" https://app.thumbgate.app/api/health \| jq .telemetry` |
| Check admin auth | `source .env.local && curl -H "Authorization: Bearer $TOKEN" ...` |
## Known Data Sources & Access Patterns
### Public (no auth required)
- `https://app.thumbgate.app/api/health` → `telemetry.paidOrganizationsTotal`,
`telemetry.realBillingEventLatestAt`, `billingEventsLast24h`
- Revenue anomaly watchdog reads this same public endpoint:
`.github/workflows/revenue-anomaly-watch.yml`
### Private (requires access)
- `business_os/` (gitignored) → local ops data ledgers, revenue calculations
- Stripe API (`STRIPE_SECRET_KEY`) → live billing events, MRR, churn
- Admin dashboard cookies → authenticated API endpoints
- D1 database direct access → `billing_events`, `organizations` tables
## Gap Audit
| Component | Current State | Gap |
|-----------|--------------|-----|
| Live telemetry | Available via public `/api/health` | Shows 0 paid orgs → likely a test/staging DB, not production billing data |
| Revenue goal audit | `tools/revenue-goal-audit.js` → "L