# Send Margin Analysis & Profit Optimization to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "afrexai-margin-analysis",
    "name": "Margin Analysis & Profit Optimization",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/1kalin/afrexai-margin-analysis",
    "canonicalUrl": "https://clawhub.ai/1kalin/afrexai-margin-analysis",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/afrexai-margin-analysis",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-margin-analysis",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "afrexai-margin-analysis",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T17:19:12.204Z",
      "expiresAt": "2026-05-06T17:19:12.204Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-margin-analysis",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-margin-analysis",
        "contentDisposition": "attachment; filename=\"afrexai-margin-analysis-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "afrexai-margin-analysis"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/afrexai-margin-analysis"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/afrexai-margin-analysis",
    "downloadUrl": "https://openagent3.xyz/downloads/afrexai-margin-analysis",
    "agentUrl": "https://openagent3.xyz/skills/afrexai-margin-analysis/agent",
    "manifestUrl": "https://openagent3.xyz/skills/afrexai-margin-analysis/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/afrexai-margin-analysis/agent.md"
  }
}
```
## Documentation

### Margin Analysis & Profit Optimization

Analyze gross, operating, and net margins by product line, customer segment, and channel. Identify margin erosion patterns and build pricing power.

### When to Use

Quarterly margin reviews
Pricing decisions (new product, discount approval, bundle strategy)
Cost structure changes (new vendor, headcount, infrastructure)
Board prep or investor reporting
Post-acquisition integration (blended margin modeling)

### Step 1: Margin Stack (Top → Bottom)

Break revenue into layers. For each product/service line:

LayerFormulaHealthy RangeGross Margin(Revenue - COGS) / Revenue60-80% (SaaS), 30-50% (services), 20-40% (manufacturing)Contribution Margin(Revenue - Variable Costs) / Revenue40-70%Operating MarginEBIT / Revenue15-30% (mature), -20-10% (growth)Net MarginNet Income / Revenue10-25% (healthy), varies by stage

### Step 2: Margin by Segment

Split margins across:

Product lines — which products subsidize others?
Customer tiers — enterprise vs mid-market vs SMB
Channels — direct sales vs partner vs self-serve
Geography — domestic vs international (FX, compliance costs)

### Step 3: Erosion Detection

Flag these patterns:

Gross margin declining >2% QoQ without volume increase
Discount frequency increasing (>30% of deals discounted)
Customer acquisition cost (CAC) growing faster than LTV
Support costs per customer rising (hidden COGS)
Infrastructure costs scaling faster than revenue

### Step 4: Pricing Power Assessment

Score 1-5 on each:

Switching costs — how hard is it to leave?
Differentiation — can customers get this elsewhere?
Value quantification — can you prove $ ROI?
Market position — leader, challenger, or commodity?
Contract structure — annual, multi-year, usage-based?

Total 20+ = strong pricing power. Below 12 = commodity risk.

### Step 5: Optimization Levers

Revenue side:

Price increase (1% price increase = 8-12% profit increase for most businesses)
Upsell/cross-sell (expansion revenue at near-zero marginal cost)
Usage-based pricing tiers (capture value from power users)
Annual prepay discounts (improve cash flow, lock retention)

Cost side:

Vendor renegotiation (benchmark against 3+ alternatives)
Infrastructure right-sizing (cloud cost audits save 20-40%)
Automation of manual processes (support, onboarding, billing)
Headcount-to-revenue ratio optimization

### Step 6: Scenario Modeling

Build three scenarios for next 4 quarters:

ScenarioRevenue GrowthMargin ChangeActionBaseCurrent trajectoryFlatMaintainBull+20% growth+3-5% marginInvest in scalingBear-10% decline-5-8% marginCut to protect cash

For each: model cash runway, breakeven timeline, and hiring capacity.

### 2026 Benchmarks by Industry

IndustryGross MarginOperating MarginNet MarginSaaS (B2B)70-85%15-30%10-25%Professional Services50-70%15-25%10-20%Fintech60-75%10-25%8-20%Healthcare Tech55-70%10-20%5-15%Manufacturing25-45%8-15%5-12%E-commerce30-50%5-15%3-10%Construction Tech35-55%10-20%5-12%Legal Tech65-80%20-35%15-25%Real Estate Tech40-60%10-20%5-15%Recruitment Tech55-70%12-22%8-18%

### Red Flags

Gross margin below industry median for 2+ quarters
Negative contribution margin on any product (you're paying customers to use it)
Operating margin declining while revenue grows (scaling inefficiency)
Net margin negative with no clear path to breakeven
Customer concentration >30% of revenue from top 3 accounts

### Output Template

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]

### Resources

AI Revenue Leak Calculator — find where margins are eroding
Industry Context Packs ($47) — vertical-specific margin benchmarks and optimization playbooks
Agent Setup Wizard — automate margin monitoring with AI agents
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: 1kalin
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T17:19:12.204Z
- Expires at: 2026-05-06T17:19:12.204Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/afrexai-margin-analysis)
- [Send to Agent page](https://openagent3.xyz/skills/afrexai-margin-analysis/agent)
- [JSON manifest](https://openagent3.xyz/skills/afrexai-margin-analysis/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/afrexai-margin-analysis/agent.md)
- [Download page](https://openagent3.xyz/downloads/afrexai-margin-analysis)