Install
openclaw skills install afrexai-margin-analysisAnalyze and optimize margins by product, segment, and channel; detect erosion patterns; assess pricing power; and model scenarios for profit improvement.
openclaw skills install afrexai-margin-analysisAnalyze gross, operating, and net margins by product line, customer segment, and channel. Identify margin erosion patterns and build pricing power.
Break revenue into layers. For each product/service line:
| Layer | Formula | Healthy Range |
|---|---|---|
| Gross Margin | (Revenue - COGS) / Revenue | 60-80% (SaaS), 30-50% (services), 20-40% (manufacturing) |
| Contribution Margin | (Revenue - Variable Costs) / Revenue | 40-70% |
| Operating Margin | EBIT / Revenue | 15-30% (mature), -20-10% (growth) |
| Net Margin | Net Income / Revenue | 10-25% (healthy), varies by stage |
Split margins across:
Flag these patterns:
Score 1-5 on each:
Total 20+ = strong pricing power. Below 12 = commodity risk.
Revenue side:
Cost side:
Build three scenarios for next 4 quarters:
| Scenario | Revenue Growth | Margin Change | Action |
|---|---|---|---|
| Base | Current trajectory | Flat | Maintain |
| Bull | +20% growth | +3-5% margin | Invest in scaling |
| Bear | -10% decline | -5-8% margin | Cut to protect cash |
For each: model cash runway, breakeven timeline, and hiring capacity.
| Industry | Gross Margin | Operating Margin | Net Margin |
|---|---|---|---|
| SaaS (B2B) | 70-85% | 15-30% | 10-25% |
| Professional Services | 50-70% | 15-25% | 10-20% |
| Fintech | 60-75% | 10-25% | 8-20% |
| Healthcare Tech | 55-70% | 10-20% | 5-15% |
| Manufacturing | 25-45% | 8-15% | 5-12% |
| E-commerce | 30-50% | 5-15% | 3-10% |
| Construction Tech | 35-55% | 10-20% | 5-12% |
| Legal Tech | 65-80% | 20-35% | 15-25% |
| Real Estate Tech | 40-60% | 10-20% | 5-15% |
| Recruitment Tech | 55-70% | 12-22% | 8-18% |
MARGIN ANALYSIS — [Company/Division] — [Period]
Revenue: $X | Gross Margin: X% | Operating Margin: X% | Net Margin: X%
QoQ Trend: [improving/flat/declining]
vs Industry Benchmark: [above/at/below] by X%
TOP 3 FINDINGS:
1. [Finding + $ impact]
2. [Finding + $ impact]
3. [Finding + $ impact]
RECOMMENDATIONS:
1. [Action] → Expected margin impact: +X%
2. [Action] → Expected margin impact: +X%
3. [Action] → Expected margin impact: +X%
90-DAY PRIORITY: [Single highest-leverage action]