Skip to main content
skill CX Codex

pricing-optimizer — Claude Code skill: margins and pricing

Works out true margin per product or service and points at the offerings you undercharge for. Useful when you cannot tell which line is dragging profit down.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openaccountant/skills --skill pricing-optimizer -a claude-code
Open on GitHub

What pricing-optimizer does

The skill lines up your current prices against actual costs and prints the economics of each offering: average sale price, unit cost, margin, volume, revenue. Anything under 40% margin gets flagged as a candidate for a price increase, and the target price for a margin you want comes from unit cost divided by one minus that margin. Offerings are ranked by total profit contribution rather than margin percentage, so a 30% margin on a $10,000 deal can outrank a 60% margin on a $500 one.

Two Wilson tools do the heavy lifting: spending_summary builds the cost basis from COGS and direct costs per category, transaction_search pulls revenue by product line along with volumes and average transaction size. The skill asks for the analysis period and your list of offerings, or detects them from transaction categories. Without Wilson it falls back to a spreadsheet: columns for product, price charged, direct cost and units sold, plus formulas for unit margin, total profit and target price.

The revenue impact estimate assumes you lose somewhere between 0 and 10% of volume for every 10% price increase. Treat that as a starting assumption, not a forecast — niche services often hold their clients at higher prices, commodity products usually do not. The skill's own advice is to test increases on new clients before touching existing rates.

What it helps with

  • calculate real margin per service instead of a single revenue figure
  • spot offerings that sell well but barely contribute profit
  • derive a target price for a margin you choose
  • estimate what a price increase does to revenue
  • compare your effective hourly rate against market rates

Example prompts for the agent

  • analyze my pricing and costs for last quarter, show margin per service
  • which offerings am I underpricing? work out target price at 50% margin
  • what happens to revenue if I raise design package prices by 15%?

How to install pricing-optimizer

1Skills CLI (Vercel)

npx skills add openaccountant/skills --skill pricing-optimizer -a claude-code

2Manually: put the files in place

~/.claude/skills/pricing-optimizer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/pricing-optimizer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about pricing-optimizer

How do I install pricing-optimizer in Claude?

Run npx skills add openaccountant/skills --skill pricing-optimizer -a claude-code. The skill lands in ~/.claude/skills/pricing-optimizer/SKILL.md.

What does pricing-optimizer do?

It compares your prices against direct costs, calculates margin per product or service, and suggests a target price for the margin you want. It also ranks offerings by profit contribution.

Do I need Wilson for the skill to work?

No. With the two Wilson tools the analysis runs automatically off your transactions; without them the skill walks you through a spreadsheet with formulas for unit margin, total profit and target price.

Source text

SKILL.md · MIT
---
name: pricing-optimizer
description: >
  Analyze pricing against costs and margins to optimize profitability.
---

# Pricing Optimizer

## Overview
Compare your current pricing against actual costs to calculate true margins per product or service. Identifies underpriced offerings, estimates the revenue impact of price adjustments, and suggests target pricing based on desired margin.

## Wilson Tools Used
- `spending_summary` — calculate COGS and direct costs per category to determine cost basis
- `transaction_search` — pull revenue by product or service line, identify transaction volumes and average transaction size

## Workflow
1. Ask for the analysis period and list of products/services offered (or detect from transaction categories).
2. Use `transaction_search` to find all revenue transactions, grouped by product/service type.
3. Calculate: average sale price, total units sold, total revenue per offering.
4. Use `spending_summary` to identify direct costs associated with each product/service.
5. Calculate per-offering economics:

```
PRICING ANALYSIS — [Period]
════════════════════════════════════════════════════════════
Product/Service    Avg Price   Unit Cost   Margin   Volume   Revenue
────────────────────────────────────────────────────────────────────
Web Design Pkg      $3,000      $1,200      60%       8     $24,000
Monthly Retainer    $1,500        $900      40%      12     $18,000
Logo Design           $500        $350      30%      15      $7,500
Rush Projects       $2,000      $1,600      20%       5     $10,000
────────────────────────────────────────────────────────────────────
```

6. Flag offerings with margins below 40% as candidates for price increases.
7. For each underpriced offering, calculate the target price for a desired margin:
   - Target Price = Unit Cost / (1 - Desired Margin)
   - Example: $350 cost, 50% target margin = $350 / 0.50 = $700
8. Estimate revenue impact of price changes assuming 0-10% volume loss per 10% price increase.
9. Rank offerings by total profit contribution (margin * volume) to prioritize optimization effort.

## Without Wilson
1. Create a spreadsheet with columns: Product/Service, Price Charged, Direct Cost, Units Sold.
2. Direct Cost includes materials, labor hours * hourly rate, software, and any cost that only exists because of this product.
3. Unit Margin: `=Price-DirectCost`. Margin %: `=UnitMargin/Price*100`.
4. Total Profit: `=UnitMargin*UnitsSold`.
5. Target Price at desired margin: `=DirectCost/(1-DesiredMarginPercent)`.
6. Revenue Impact estimate: `=NewPrice*UnitsSold*0.95` (assuming 5% volume drop per 10% price increase — adjust based on your price sensitivity).
7. For services billed hourly, calculate your effective rate: `=TotalClientPayments/TotalHoursWorked`. Compare to market rates on Glassdoor, Upwork, or industry salary surveys.
8. Use the pricing calculator at priceintelligently.com or profitwell.com/tools for SaaS-specific analysis.

## Important Notes
- Cost-plus pricing (cost + desired margin) is a floor, not a ceiling. Value-based pricing often supports higher prices than cost-plus suggests.
- Volume sensitivity varies wildly. Commodity products are price-sensitive; specialized services are not. A 20% price increase on a niche service may lose 0% of clients.
- Do not optimize purely on margin percentage. A 30% margin on $10,000 deals ($3,000 profit) beats a 60% margin on $500 deals ($300 profit) if volume is similar.
- Test price increases on new clients first before changing existing client rates.

© openaccountant · MIT · openaccountant/skills

Similar skills

Everything for Finance and business →

From the same set28

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor