small-business/skills/margin-analyzer/SKILL.md
Analyzes unit economics by product or service using PayPal merchant insights and QuickBooks cost data, benchmarks against inflation and cost changes, and shows pricing-scenario data (e.g. "a 5% increase historically correlates with ~3% volume drop"). Surfaces analysis only — does not recommend a price. Use when the user asks about raising prices, pricing, margin analysis, what to charge, whether costs are eating into profit, or how a price change might affect their business. Trigger even if the user doesn't say "margin" explicitly — phrases like "am I making enough?", "should I charge more?", or "my costs are going up" all call for this skill.
npx skillsauth add anthropics/knowledge-work-plugins margin-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Status: MVP draft · Owner: JJ · Version: 1.1.0 Category: Finance & Ops · Phase: V2
When an SMB owner asks "should I raise my prices?" or "are my margins okay?", this skill:
The output equips the owner to make their own pricing call with real data behind it.
QuickBooks: Call company-info to verify the industry field is populated. If it's missing or "Unknown", ask: "I need your business category to pull relevant benchmarks. What industry are you in?" Then call quickbooks-profile-info-update.
PayPal: No pre-flight needed, but PayPal rate-limits on rapid calls — see reference/gotchas.md.
No connectors: Offer CSV upload as a fallback. The skill can work from exported transaction and expense data. The expected CSV schema is in reference/csv-schema.md.
Ask the owner two questions:
"Which products or services do you want to analyze?"
"What metric matters most to you?"
Fetch from QuickBooks using profit-loss-quickbooks-account:
If QuickBooks isn't connected, ask the owner for:
If QuickBooks is connected but COGS = $0 across all periods, do not use $0 as the cost input. Surface this to the owner:
"QuickBooks shows no cost of goods sold recorded for this period. To compute meaningful margins, I need a cost breakdown by product or service line — not a single average for the whole business. For each item you want analyzed, what does it cost you to deliver it? Materials, direct labor, any direct expenses per item. Even rough figures work."
Flag this limitation in the Data Quality Notes section of the final output.
Fetch from list_transactions (PayPal) or make_api_request (Square):
If you hit PayPal rate limits, pause 30 seconds and retry once. If still blocked, offer: "PayPal is temporarily rate-limited. Want to switch to Square or upload a CSV instead?"
If only one data source is available, note the limitation in the output.
For each product/service in scope, calculate:
| Metric | Formula | |---|---| | Revenue | Sum of transaction amounts for the item | | COGS | Cost data from QB or owner-provided | | Gross Profit | Revenue − COGS | | Gross Margin % | (Gross Profit ÷ Revenue) × 100 | | Units Sold | Count of transactions (if available) | | Revenue per Unit | Revenue ÷ Units Sold | | Cost per Unit | COGS ÷ Units Sold |
Flag any item where margin is below 20% — not as a recommendation, but as a data point worth the owner's attention.
Layer in context to make the numbers meaningful:
reference/industry-benchmarks.md.Handle low-data gracefully: if fewer than 6 months of transactions exist, omit the elasticity section and note: "You need at least 6 months of pricing history to estimate how volume responds to price changes. I'll show scenario math instead."
Build a table for each product/service showing three price-change scenarios:
| Scenario | New Price | Projected Revenue* | Gross Margin % | |---|---|---|---| | +5% | $X | $Y | Z% | | +10% | $X | $Y | Z% | | +15% | $X | $Y | Z% |
How to compute projected revenue:
Elasticity = % change in volume ÷ % change in price. Apply that to project volume at the new price.Add a note: "These are projections based on available data, not guarantees. Actual volume response depends on competition, customer sensitivity, and timing."
Structure the output as:
Structure the output with an H2 header showing the business name and date range, followed by four sections: a Unit Economics Summary table (product/service, revenue, COGS, gross margin, margin %), a Context and Benchmarking section (2-4 sentences on inflation, cost shifts, industry norms), Pricing Scenarios (scenario table per product, or top 3-5 if many), and Data Quality Notes (flag any limitations such as partial data, missing COGS, or short history).
Keep it factual. Do not say "you should raise prices" or "consider lowering your price." The owner is looking at data to make their own call.
This skill surfaces data. It does not recommend a price.
If the owner asks "so what should I do?" — respond with: "I can show you what the data suggests, but the pricing decision is yours. Would you like me to model any additional scenarios?"
This is intentional. Pricing decisions have real business consequences and depend on context only the owner knows (competitive positioning, customer relationships, cash needs). The skill's job is to make sure they're looking at real numbers when they decide.
Primary: QuickBooks, PayPal Also supported: Square, Brex · Desktop (CSV/export)
reference/gotchas.md — common pitfalls (data gaps, elasticity traps, margin math errors)reference/industry-benchmarks.md — gross margin ranges by SMB categoryreference/csv-schema.md — expected columns when the owner uploads a CSVreference/examples/ — worked scenarios (retail, services, product-based)testing
Reads a forwarded customer email or ticket, pulls order/refund status from PayPal and account history from HubSpot, drafts a tone-matched reply in the owner's writing voice, and can issue a PayPal refund with explicit owner approval. Use when the user says "draft a response," "answer this customer," "where's my order," or "I want a refund."
development
Prepares tax-season materials for small business owners — framed as deliverables for their accountant, not tax advice. Two modes: (1) quarterly estimated tax calculation — pulls YTD net income from QuickBooks and calculates the federal income tax + self-employment tax liability and quarterly payment due; (2) year-end 1099 prep — scans QuickBooks, PayPal, and Stripe for contractors paid over $600, builds a 1099-NEC candidate list with missing W-9 flags, and produces a plain-English summary a CPA can work from directly. Trigger this skill whenever the user mentions: quarterly taxes, estimated tax payment, how much to set aside for taxes, 1099s, 1099-NEC, year-end tax prep, contractor payments, W-9s, or any phrase suggesting they are preparing for a tax deadline or handing materials to an accountant. Also trigger proactively when a user asks about net profit or YTD income in a context that suggests they are worried about their tax bill.
tools
Prepares tax-season materials — quarterly estimated tax calculation or year-end 1099 prep — and produces an accountant handoff packet. Accepts optional mode and year arguments.
tools
The front door to the Small Business plugin. Listens to what the owner needs right now — vague or specific — and routes them to the best skill or slash command for the moment. Also serves as a guide: explains what's available, suggests what to try next, and adapts recommendations based on stored business context. Trigger whenever the owner asks "what can you do," "help me with my business," "what should I focus on," "I don't know where to start," or any open-ended business request that doesn't clearly match a single skill.