Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Price & Margin Analyzer: Find Margin Leaks in Sales

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Price & Margin Analyzer: Find Margin Leaks in Sales

    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

    ProductMarginProfit
    Cooking Oil 3L-1.2%-10,339.35
    Sugar 1kg-0.3%-228.00

    Below 20% target, ranked by uplift

    ProductUplift to reach target
    Flour 10kg94,639.50
    Ghee77,547.86
    Tea64,919.01
    Basmati61,931.87
    Lentils14,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

    1. Reprice or renegotiate cost on Cooking Oil and Sugar.
    2. Cap discounts on Cooking Oil and Tea.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    The skill accepts CSV and Excel (.xlsx) files. For the best results, ensure your data includes columns for product names, quantities sold, realized sales price, and unit costs.

    Yes, you can define your own profit thresholds and set 'price gap' tolerances to ensure the reports only flag discrepancies that meet your specific business criteria.

    This skill focuses on gross margin based on unit costs; it does not automatically calculate variable overhead like shipping, platform referral fees, or returns unless you include those figures in your cost-of-goods column.

    The Priority Scoring feature ranks low-margin items by multiplying the margin gap by sales volume, allowing you to focus on the products where price adjustments will have the largest impact on your bottom line.

    You receive the Python-based skill executable, a guide for mapping your data columns, and template structures for reporting your findings to stakeholders.

    The skill is designed for use with any AI agent capable of executing Python scripts and handling file uploads, such as ChatGPT Plus (Advanced Data Analysis), Claude, or custom LangChain agents.

    New in Trading & Investing