Revenue engine

From oyi77/1ai-skills · View interactive version

Revenue engine is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when manage revenue pipelines, track Stripe/analytics metrics, and automate financial reporting for SaaS businesses. Use when building revenue infrastructure.

How to use this skill

Skill file

Overview

This skill manages revenue pipelines end to end: tracking Stripe and analytics metrics, and automating financial reporting for SaaS businesses. Use it when money metrics must be visible and attributable. It wires the measurement loop from raw events to the reports you act on.

Money-Making Overview

This engine is the financial nervous system of your business. Without it, you leak 5-15% of revenue through forgotten invoices, missed renewals, and untracked metrics. With it, you capture every dollar and know exactly where to focus to grow.

Dependencies

Commands

# Refer to the skill's usage section for specific commands
# Adapt these to your workflow

Revenue Streams

  1. Your Own Revenue Ops — tracking prevents leakage
  2. Revenue Dashboard Service ($2K-5K/setup) — build for clients
  3. CFO-as-a-Service ($1K-3K/mo) — ongoing financial monitoring

First Action in 60 Minutes

#!/usr/bin/env bash
# Revenue engine health check
mkdir -p ~/revenue-engine/{metrics,reports,alerts}

echo "=== Revenue Health Check ==="
echo "MRR: $(curl -s https://api.stripe.com/v1/subscriptions --header "Authorization: Bearer $STRIPE_KEY" 2>/dev/null | python3 -c "import json,sys; d=json.load(sys.stdin); print(sum(int(i['plan']['amount']) for i in d['data'])/100)" 2>/dev/null || echo 'Set \$STRIPE_KEY')"
echo ""
echo "Metrics to track this week:"
echo "  - MRR growth rate"
echo "  - Churn rate (exits / total)"
echo "  - LTV (avg revenue × avg months retained)"
echo "  - CAC (total sales cost / new customers)"
echo "  - Quick Ratio (new MRR + expansion MRR) / churned MRR"

Revenue Pipeline Architecture

Revenue Engine is a foundational core infrastructure skill that provides system foundation capabilities for the agent ecosystem.

Revenue Configuration & Integration

Trigger phrases:

Set up required environment variables and paths, configure logging level and output format, define resource limits (memory, time, API calls), enable/disable features via configuration flags.

Revenue Intelligence & Model Routing

Different revenue tasks need different models. Route intelligently:

# Example: Model routing
ROUTES = {
    "code": ["claude-sonnet-4-20250514", "gpt-4o"],
    "vision": ["gemini-2.5-pro", "gpt-4o"],
    "fast": ["gemini-2.5-flash", "gpt-4o-mini"],
}

def route_request(task: str, prompt: str):
    models = ROUTES.get(task, ROUTES["fast"])
    for model in models:
        try:
            return call_model(model, prompt)
        except Exception:
            continue
    raise RuntimeError("All models failed")

When to Deploy Revenue Engine

When NOT to Deploy

Revenue Verification Protocol

  1. Prepare — Gather requirements, verify prerequisites, set up environment
  2. Execute — Run revenue engine workflow with configured parameters
  3. Verify — Validate output meets requirements, document results

Verification Checklist

Verification

Anti-Rationalization Table

| Excuse | Truth |

|---|---|

| "I'll track revenue manually" | Manual tracking misses 10%+ of revenue |

| "I don't have enough revenue yet" | Start tracking at $0; patterns emerge early |

| "Stripe dashboard is enough" | Dashboards don't alert you to problems |

Output Format

On completion: "MRR: $[N], Churn: [N]%, LTV: $[N], CAC: $[N], Quick Ratio: [N], Revenue Health: [GREEN/YELLOW/RED]"

When to Use

Use this skill when working with revenue engine.

When NOT to Use

Workflow

See the parent skill for authoritative workflow documentation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.