- Home
- Skills
- Trading & Investing
- Price & Margin Analyzer: Find Margin Leaks in Sales
Works with the AI Agents you already use
Price & Margin Analyzer: Find Margin Leaks in Sales
Analyze sales and cost data to find loss-making products, products below your target margin, discount leakage and channel price gaps, with the profit uplift each fix is worth.
$9
Price & Margin Analyzer: Find Margin Leaks in Sales
Example session with this skill installed
Here is sales_full.csv and costs.csv. Which products lose money or fall below a 20% margin, and where am I leaking margin through discounts or channel pricing?
- Read your context and instructions
- Compiled the price & margin
Summary
420 sales rows, 8 products, revenue
4,055,758.52. Overall margin is
7.3% against a 20% target. Two products lose money and five more sit below target.
Loss-making
| Product | Margin | Profit |
|---|---|---|
| Cooking Oil 3L | -1.2% | -10,339.35 |
| Sugar 1kg | -0.3% | -228.00 |
Below 20% target, ranked by uplift
| Product | Uplift to reach target |
|---|---|
| Flour 10kg | 94,639.50 |
| Ghee | 77,547.86 |
| Tea | 64,919.01 |
| Basmati | 61,931.87 |
| Lentils | 14,632.77 |
Discount leakage
Total
461,841.52 (11.4% of revenue) given away versus list price. Largest: Cooking Oil 111,229.43 and Tea 98,023.61.
Channel price gaps
7 of 8 products have gaps above 5% between channels. Example: Basmati sells at 1,276.72 in Wholesale versus 1,384.19 in Store (8.4%).
Next steps
- Reprice or renegotiate cost on Cooking Oil and Sugar.
- Cap discounts on Cooking Oil and Tea.
- Review wholesale versus store pricing on Basmati.
Connects securely to your tools. The creator never sees your data.
About this skill
See where your margin is leaking, and what fixing it is worth
Price and Margin Analyzer reads your sales file (and an optional cost file) and shows which products lose money, which sit below your target margin, how much revenue is given away in discounts, and where channel prices drift apart.
What it finds
- Loss-making products with revenue, margin % and total loss
- Below-target products ranked by the profit uplift if brought up to your target margin
- Discount leakage: list price versus actual price, by product
- Channel price gaps: the same product sold at very different prices across channels, flagged above a tolerance
- ABC analysis by revenue so you fix what matters first
What you get
- A readable report with the biggest opportunities first
- CSV tables for products, discounts and channel gaps
- Charts of margin by product
Adjustable
Target margin (default 20%), price gap tolerance (default 5%) and column names are all flags. Column detection uses common names; if yours differ, pass --revenue-col, --price-col, --cost-col and similar overrides.
Honest by design
Margins use the unit costs you supply, not fees or shipping, and the report says so. It flags opportunities; you decide the price changes.
Requirements
Python 3.9+ and pip install pandas openpyxl matplotlib.
Works great with
Retail Data Cleaner (clean the sales file first), Retail KPI Pack and Inventory Reorder Planner.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.
Excludes shipping, returns, and fees unless included in the cost column. Requires product, quantity, and price/revenue data. Margin analysis is skipped if costs are missing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago