Biz scan

From softspark/ai-toolkit · View interactive version

Biz scan is an AI agent skill from the GitHub repository softspark/ai-toolkit. Scans codebase for revenue opportunities, KPIs, monetization gaps. Triggers: business metrics, KPI, analytics gaps, monetization, revenue.

How to use this skill

Skill file

Biz Scan Command

$ARGUMENTS

Triggers the Business Intelligence agent to analyze the codebase for business opportunities and KPI gaps.

Usage

/biz-scan [scope]
# /biz-scan schema     : focus on database models and entity relationships
# /biz-scan api        : focus on API endpoints and data exposure
# /biz-scan all        : full codebase scan

Protocol

1. Model Scan: Analyze Data Layer

Scan for business-relevant data structures:

# Find database models, schemas, entities
grep -rl "model\|schema\|entity\|migration" --include="*.py" --include="*.ts" --include="*.rb" .
# Find ORM definitions
grep -rl "prisma\|sequelize\|typeorm\|sqlalchemy\|activerecord" .

Catalog: entity names, relationships, fields that map to business concepts (revenue, subscription, usage, billing).

2. Logic Scan: Analyze Business Logic

Scan controllers, services, and use cases:

# Find API endpoints and handlers
grep -rn "router\.\|app\.\(get\|post\|put\|delete\)\|@Controller\|@app\.route" --include="*.ts" --include="*.py" --include="*.js" .
# Find tracking/analytics events
grep -rn "track\|analytics\|event\|metric\|log_event" --include="*.ts" --include="*.py" --include="*.js" .

Catalog: exposed endpoints, tracked events, feature flags, A/B tests.

3. Synthesis: Match Data vs. Business Goals

Cross-reference findings to identify:

| Category | What to Look For |

|----------|-----------------|

| Missing KPIs | Entities with no associated tracking events |

| Underutilized features | Endpoints with no analytics or feature-flag coverage |

| Monetization gaps | Subscription/billing entities without conversion tracking |

| Data exposure | Rich internal data not surfaced via API |

4. Report: Generate Opportunity Report

Output a structured markdown report:

## Business Opportunity Report: [scope]

### KPI Coverage
| Entity/Feature | Tracked Events | Gap |
|---------------|---------------|-----|
| [name] | [events or "none"] | [what's missing] |

### Opportunities (ranked by estimated impact)
1. **[Opportunity]**: [description, affected entities, suggested action]

### Quick Wins
- [ ] Add tracking to [feature], estimated lift: [low/med/high]

### Data Exposure Gaps
- [Entity] has [N fields] not exposed via any API endpoint

Rules

Gotchas

When NOT to Use

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.