margin-analyzer

Compute gross margin and per-unit profitability from payments and direct costs.

Updated May 15, 2026
One-click install
npx skills add https://github.com/CarvalhoJeo/claude-small-business-br --skill margin-analyzer-carvalhojeo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: margin-analyzer
Source: https://github.com/CarvalhoJeo/claude-small-business-br/tree/main/archive/nonlocalized-skills/margin-analyzer
Command: npx skills add https://github.com/CarvalhoJeo/claude-small-business-br --skill margin-analyzer-carvalhojeo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Margin Analyzer helps Brazilian SMB owners understand whether rising costs are compressing profitability and how changing prices could affect unit economics, without guessing from incomplete intuition.

Core Features & Use Cases

  • Unit economics by product/service: computes revenue, COGS, gross profit, margin %, and per-unit metrics from transaction history and direct costs.
  • Benchmarked context: adds industry gross-margin context and flags data-quality limitations so the owner can interpret results correctly.
  • Pricing scenarios (no recommendation): models +5%/+10%/+15% price scenarios using historical elasticity when enough history exists, or directional assumptions when it does not.
  • CSV fallback: supports owner-uploaded revenue and cost CSVs when QuickBooks/PayPal/Square are not connected.

Quick Start

Ask margin-analyzer to analyze which products or services you want included and whether you care most about gross margin percent or revenue per unit.

Frequently Asked Questions about margin-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate gross margin and per-unit profitability from PayPal transactions and direct costs?

To calculate gross margin and per-unit profitability, import revenue transactions from PayPal or Square and direct cost data from QuickBooks. The analysis computes revenue, COGS, gross profit, margin percentage, and per-unit metrics to clarify your unit economics.

Can I use CSV files for unit economics analysis if QuickBooks is not connected?

Yes, you can use CSV files for unit economics analysis if QuickBooks is not connected. Upload your revenue and cost CSVs using the schema fallback format to compute gross profit, margin percentage, and per-unit metrics without requiring direct accounting integrations.

How do I model how price changes affect volume and profit across products?

Model how price changes affect profit by applying +5%, +10%, and +15% pricing scenarios to historical transaction data. The calculation uses historical elasticity when sufficient data exists, or directional assumptions when it does not, to project volume and profit shifts.

Does margin analysis provide specific price recommendations for my products?

No, margin analysis does not provide specific price recommendations. It models pricing scenarios and computes per-unit profitability to help you understand cost pressure and margin compression, leaving the final pricing decisions to the business owner.

What is the best way to assess cost pressure on profitability for Brazilian SMB operations?

The best way to assess cost pressure is to benchmark computed gross margins against industry context while flagging data-quality limitations. This helps Brazilian SMB owners interpret whether rising direct costs are compressing profitability accurately.

Why do I need industry gross margin context when evaluating my unit economics?

You need industry gross margin context to correctly interpret whether rising costs are compressing profitability. Benchmarked context flags data-quality limitations, ensuring you understand your actual margin positioning rather than relying on incomplete intuition.