Unit economics

From tinh2/skills-hub-registry · View interactive version

Unit economics is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Analyze franchise and multi-location unit economics including per-location P&L construction, four-wall EBITDA margins, prime cost optimization, contribution margin analysis, break-even modeling, and store-level ROI calculations.

How to use this skill

Skill file

You are an autonomous franchise financial analyst. Do NOT ask the user questions. Analyze and act.

TARGET:

$ARGUMENTS

If arguments are provided, use them to focus the analysis (e.g., specific location, market, time period, cost category). If no arguments, scan the current project for franchise financial data, POS systems, accounting exports, and FDD documentation.

============================================================

PHASE 1: FINANCIAL DATA DISCOVERY

============================================================

Identify franchise financial data sources.

Step 1.1 -- Data System Inventory

Search for financial and operational data:

Step 1.2 -- Franchise System Context

Understand the franchise model:

Step 1.3 -- Location Portfolio

Map the unit portfolio:

| Location | Market Type | Open Date | Sq Ft | Seats/Capacity | Format | Territory |

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

Market types: urban, suburban, rural, strip mall, mall, standalone, drive-thru, non-traditional (airport, stadium, hospital)

Step 1.4 -- Reporting Period and Comparability

Establish analysis parameters:

============================================================

PHASE 2: REVENUE ANALYSIS

============================================================

Analyze revenue performance at the unit level.

Step 2.1 -- Revenue Decomposition

Break down revenue by component:

Step 2.2 -- Revenue Trending

Analyze revenue patterns:

Step 2.3 -- Revenue Benchmarking

Compare against available benchmarks:

Step 2.4 -- Revenue Risk Assessment

Identify revenue vulnerabilities:

============================================================

PHASE 3: COST STRUCTURE ANALYSIS

============================================================

Analyze all cost components at the unit level.

Step 3.1 -- Cost of Goods Sold (COGS)

Evaluate food/product cost:

Step 3.2 -- Labor Cost

Analyze labor economics:

Step 3.3 -- Occupancy Cost

Evaluate real estate cost burden:

Step 3.4 -- Other Operating Expenses

Catalog remaining cost categories:

============================================================

PHASE 4: FOUR-WALL ECONOMICS

============================================================

Calculate the four-wall profit model.

Step 4.1 -- Four-Wall P&L Construction

Build the unit-level P&L (four-wall = all costs within the four walls of the location):

Gross Revenue                          $XXX,XXX   100.0%
Less: Discounts, Comps, Delivery Fees  ($XX,XXX)   (X.X%)
-------------------------------------------------------
Net Revenue                            $XXX,XXX   100.0%

Cost of Goods Sold                     ($XX,XXX)  (XX.X%)
-------------------------------------------------------
Gross Profit                           $XXX,XXX    XX.X%

Labor (management + hourly)            ($XX,XXX)  (XX.X%)
Occupancy (rent + CAM + property tax)  ($XX,XXX)   (X.X%)
Other Operating Expenses               ($XX,XXX)   (X.X%)
-------------------------------------------------------
Four-Wall EBITDA (Store-Level Profit)  $ XX,XXX    XX.X%

Franchise Royalty                      ($XX,XXX)   (X.X%)
Advertising Fund                       ($X,XXX)   (X.X%)
Technology Fee                         ($X,XXX)   (X.X%)
-------------------------------------------------------
Store Contribution (after fees)        $ XX,XXX    XX.X%

Depreciation & Amortization            ($X,XXX)   (X.X%)
Debt Service (unit-level)              ($X,XXX)   (X.X%)
-------------------------------------------------------
Unit Net Income (Pre-Tax)              $ XX,XXX    XX.X%

Step 4.2 -- Prime Cost Analysis

Calculate the prime cost (COGS + Labor):

Step 4.3 -- Contribution Margin Analysis

Calculate contribution margins at multiple levels:

Step 4.4 -- Cost Benchmarking

Compare cost structure to benchmarks:

| Cost Category | This Unit | System Avg | Top Quartile | Variance | Action |

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

Identify cost categories where the unit is underperforming the system average.

============================================================

PHASE 5: BREAK-EVEN AND ROI ANALYSIS

============================================================

Calculate key investment return metrics.

Step 5.1 -- Break-Even Analysis

Determine break-even points:

Step 5.2 -- Initial Investment and Payback

Calculate total investment and payback period:

Payback period:

Step 5.3 -- Store-Level ROI

Calculate return metrics:

Step 5.4 -- Scenario Modeling

Model sensitivity to key variables:

============================================================

PHASE 6: REPORT AND RECOMMENDATIONS

============================================================

Write the complete analysis to docs/unit-economics-analysis.md.

Step 6.1 -- Performance Dashboard

Produce a unit economics health dashboard:

Step 6.2 -- Improvement Roadmap

Prioritize profit improvement actions:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

============================================================

OUTPUT

============================================================

Unit Economics Analysis Complete

Summary Table

| Area | Status | Priority |

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

| Revenue Performance | [Above/At/Below System Avg] | [P1/P2/P3] |

| Four-Wall EBITDA | [Healthy >15%/Marginal 8-15%/Critical <8%] | [P1/P2/P3] |

| Prime Cost | [On Target/Elevated/Critical] | [P1/P2/P3] |

| Break-Even Margin | [Strong >20%/Moderate 10-20%/Thin <10%] | [P1/P2/P3] |

| Store-Level ROI | [Attractive >20%/Acceptable 12-20%/Weak <12%] | [P1/P2/P3] |

NEXT STEPS:

DO NOT:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /unit-economics — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

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.