Skip to content
Skills Library
Finance & accounting · Analysis

cost-efficiency-analyzer

/cost-efficiency-analyzer

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too much", "cost breakdown", "expense analysis", or "how efficient are our operations". NOT for revenue or top-line analysis.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too much", "cost breakdown", "expense analysis", or "how efficient are our operations". NOT for revenue or top-line analysis.

Triggers from the description

are we spending too muchcost breakdownexpense analysishow efficient are our operations
Original author description

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too much", "cost breakdown", "expense analysis", or "how efficient are our operations". NOT for revenue or top-line analysis.

How it works

  1. Prerequisites
  2. Steps
Original SKILL.md headings · 91 lines, 419 words
SKILL.md preview
---
name: cost-efficiency-analyzer
description: Analyzes cost structure, cost efficiency, and expense management from P&L data.
  Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios,
  cost control, spending efficiency, margin compression from cost side, or wants to
  understand where money is going. Also use for "are we spending too much", "cost breakdown",
  "expense analysis", or "how efficient are our operations". NOT for revenue or top-line analysis.
metadata:
  version: "1.0"
  tags: finance, cost, expenses, efficiency, operations
mcp_tools:
  - get_financial_data
  - get_kpi_benchmarks
---

# Cost Efficiency Analyzer

Analyzes cost structure and operational efficiency by examining COGS,
operating expenses, and their ratios relative to revenue over time.

## Prerequisites

No inputs required unless the user asks about a specific quarter.
Default: analyze the most recent quarter (Q3 2025) with comparison to Q2 2025.

## Steps

### Step 1: Fetch cost data

Fetch the quarter(s) needed:

    get_financial_data(period="Q3 2025")
    get_financial_data(period="Q2 2025")

If the user asks for a different quarter, fetch that instead.

### Step 2: Fetch benchmarks

    get_kpi_benchmarks()

Extract:
- `gross_margin_pct`: formula and benchmark (40%)
- `opex_ratio`: formula and benchmark (30%) — note: lower is better

### Step 3: Compute cost metrics

Use python_exec to calculate cost efficiency metrics:

```python
# Q3 2025 data
r3  = 4200000; cogs3 = 1890000; opex3 = 1050000; ebitda3 = 1260000

# Q2 2025 data (for comparison)
r2  = 3800000; cogs2 = 1710000; opex2 = 980000;  ebitda2 = 1110000

def cost_metrics(revenue, cogs, opex, ebitda, label):
    gross_profit  = revenue - cogs
    gross_margin  = round(gross_profit / revenue * 100, 1)
    cogs_pct      = round(cogs / revenue * 100, 1)
    opex_pct      = round(opex / revenue * 100, 1)
    total_cost    = cogs + opex
    total_cost_pct = round(total_cost / revenue * 100, 1)
    ebitda_margin = round(ebitda / revenue * 100, 1)
    cost_per_rev  = round(total_cost / revenue, 4)   # $ of cost per $ of revenue

    print(f"\n{label}:")
    print(f"  COGS:                ${cogs:,}  ({cogs_pct}% of revenue)")
    print(f"  Operating Expenses:  ${opex:,}  ({opex_pct}% of revenue)")
    print(f"  Total Cost:          ${total_cost:,}  ({total_cost_pct}% of revenue)")
    print(f"  Gross Margin:        {gross_margin}%  (benchmark: 40%)")
    print(f"  EBITDA Margin:       {ebitda_margin}%  (benchmark: 15%)")
    print(f"  Cost per $1 revenue: ${cost_per_rev:.4f}")
    return {"gross_margin": gross_margin, "opex_pct": opex_pct, "cogs_pct": cogs_pct,
            "total_cost_pct": total_cost_pct}

m3 = cost_metrics(r3, cogs3, opex3, ebitda3, "Q3 2025")
m2 = cost_metrics(r2, cogs2, opex2, ebitda2, "Q2 2025")

# QoQ cost efficiency change
print(f"\nQoQ Cost Efficiency Change (Q2 → Q3):")
print(f"  COGS ratio:  {m2['cogs_pct']}% → {m3['cogs_pct']}%  ({m3['cogs_pct']-m2['cogs_pct']:+.1f}pp)")
print(f"  OpEx ratio:  {m2['opex_pct']}% → {m3['opex_pct']}%  ({m3['opex_pct']-m2['opex_pct']:+.1f}pp)")
print(f"  Total cost%: {m2['total_cost_pct']}% → {m3['total_cost_pct']}%  ({m3['total_cost_pct']-m2['total_cost_pct']:+.1f}pp)")
```

### Step 4: Benchmark assessment

For each cost ratio, assign status vs benchmark:
- Gross Margin:  GREEN ≥ 40%, YELLOW 35–40%, RED < 35%
- OpEx Ratio:    GREEN ≤ 30%, YELLOW 30–35%, RED > 35%  (lower is better)

### Step 5: Present results

Format your response as:

1. **Cost Structure Table** — current quarter

   | Cost Item | Amount | % of Revenue | Benchmark | Status |
   |-----------|--------|-------------|-----------|--------|

2. **QoQ Cost Efficiency** — did cost ratios improve or worsen vs prior quarter?

3. **Cost Efficiency Verdict** — one paragraph: is cost management healthy,
   where is the risk, and what should leadership watch?

Versions

The database has no other skills named cost-efficiency-analyzer.

Database snapshot: 13.11.2026 · package version c1227e457422 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100expense-report
    Generate a detailed expense breakdown by category for a given period. Use when the user asks for an expense report, spending summary, Ausgabenübersicht, cost analysis, or wants to understand where their money is going.
  • 100token-cost-analyzer
    Use this skill when analyzing and optimizing LLM API costs. Activate when the user wants to reduce AI API spending, understand token usage, audit LLM costs, optimize prompts for cost efficiency, or track and report on AI expenditure.
  • 95schedule-c-categories
    IRS Schedule C (Form 1040) expense category reference — every line from 8 to 27a with what belongs, what doesn't, and common mistakes. Covers COGS (Part III), operating expenses (Part II), and Form 8829 business use of home. Trigger on "what Schedule C line", "which expense…
  • 100quarterly-kpi-calculator
    Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ.…
  • 90aws-cost-ops
    AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill.
  • 100expense-report
    Organize, categorize, and summarize business expenses for reimbursement and tax preparation. Use when a user asks to create an expense report, organize receipts, categorize expenses, summarize spending, prepare expenses for reimbursement, or compile business expenses for tax…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.