Margin Analyzer
Legal and finance skill, available on Zeplik
Margin Analyzer is a ready-to-run legal and finance skill on Zeplik. Analyzes unit economics by product with cost benchmarks and pricing-scenario data; analysis only, no price recommendation. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
The Margin Analyzer skill loads automatically when your request matches it, or you can invoke it directly by typing /margin-analyzer in any chat. It works with attachments, connectors, and any model that supports the task, so you get the same expert method every time without setting anything up.
What the Margin Analyzer skill can do
- Pull cost and revenue data from QuickBooks, PayPal, or Square
- Calculate gross margin and unit economics per product or service
- Flag items with margin below 20 percent as data points for review
- Build pricing scenario tables at plus 5, 10, and 15 percent with no recommendation
Try these prompts on Zeplik
Pick a prompt to open it in the Zeplik app. If you are not signed in yet, your prompt is waiting for you the moment you do.
How the Margin Analyzer skill works
Margin Analyzer
Status: MVP draft · Owner: JJ · Version: 1.1.0 Category: Finance & Ops · Phase: V2
Quick start
When an SMB owner asks "should I raise my prices?" or "are my margins okay?", this skill:
- Identifies what to analyze — which products/services are in scope
- Pulls cost data from QuickBooks (COGS, direct expenses)
- Pulls revenue data from PayPal or Square (transaction history)
- Computes unit economics — revenue, COGS, gross margin, margin % per item
- Benchmarks against context — inflation, cost changes, industry norms if available
- Builds pricing scenarios — shows what happens to revenue and margin at +5%, +10%, +15% price changes, using historical correlation where data allows
- Presents the analysis — no price recommendation; the owner decides
The output equips the owner to make their own pricing call with real data behind it.
Workflow
Step 1: Pre-flight check
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.
Step 2: Clarify scope
Ask the owner two questions:
-
"Which products or services do you want to analyze?"
- All of them, or a specific subset?
- If they say "all," confirm the connector has enough data to be meaningful before pulling everything.
-
"What metric matters most to you?"
- Gross margin (revenue minus direct costs)?
- Net margin (after all expenses)?
- Revenue per unit?
- Their answer shapes how you present the output.
Step 3: Pull cost data (QuickBooks)
Fetch from QuickBooks using profit-loss-quickbooks-account:
- Date range: Last 12 months (or full history if less is available)
- Extract: Cost of goods sold by product/service line, direct expenses
If QuickBooks isn't connected, ask the owner for:
- A cost breakdown by product/service line (materials, labor, direct delivery costs per item)
- Any known cost changes in the last 6–12 months
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.
Step 4: Pull revenue data (PayPal / Square)
Fetch from list_transactions (PayPal) or make_api_request (Square):
- Date range: Match the cost data window (last 12 months)
- Extract: Transaction amount, item/service name, date, quantity if available
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.
Step 5: Compute unit economics
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.
Step 6: Benchmark
Layer in context to make the numbers meaningful:
- Inflation: Note relevant cost trends if discussing input cost increases. Example: "Your input costs rose ~X% over this period while your prices held flat — that compressed margin by Y points."
- Industry benchmarks: Use the QuickBooks industry profile to surface rough gross margin norms for their category. See
reference/industry-benchmarks.md. - Historical comparison: If 24+ months of data is available, compare this year's margins to last year's to surface the trend direction.
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."
Step 7: Pricing scenarios
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:
- If 6+ months of history: Estimate volume response using historical data. If a past price change exists, compute observed elasticity:
Elasticity = % change in volume ÷ % change in price. Apply that to project volume at the new price. - If insufficient history: Show three volume assumptions (−0%, −5%, −10%) and let the owner pick what seems realistic.
Add a note: "These are projections based on available data, not guarantees. Actual volume response depends on competition, customer sensitivity, and timing."
Step 8: Present the analysis
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.
Scope boundary
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.
Connectors
Primary: QuickBooks, PayPal Also supported: Square, Brex · Desktop (CSV/export)
Reference files
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)
Zeplik output presentation
Present the final deliverable as a single polished artifact: clear headings, tables where the content is tabular, fenced code where it is code. Lead with the deliverable itself; keep process commentary to a single short line. If the skill produced multiple files or sections, end with a compact list of them with one-line purposes.
How to use the Margin Analyzer skill
Sign in to Zeplik
Create a free Zeplik account or sign in. New accounts start with free credits, so you can try the Margin Analyzer skill right away.
Describe your legal and finance task
Ask in plain language, or type /margin-analyzer to invoke the skill directly. Zeplik recognizes the Margin Analyzer skill and applies its method.
Review and refine the result
Zeplik returns a clear, structured answer. Ask follow-ups in the same chat to refine it or take the next step.
Source and credit
- Author
- Anthropic
- License
- Apache-2.0
Adapted from the open-source anthropics/knowledge-work-plugins project and tuned to run natively on Zeplik. View source on GitHub.
Frequently asked questions
- What is the Margin Analyzer skill?
- Margin Analyzer is a ready-to-run legal and finance skill on Zeplik. Analyzes unit economics by product with cost benchmarks and pricing-scenario data; analysis only, no price recommendation. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
- How do I use Margin Analyzer on Zeplik?
- Sign in to Zeplik and ask in plain language, or type /margin-analyzer in any chat to invoke it directly. The skill applies its method and returns a result you can refine in the same conversation.
- Which AI model does the Margin Analyzer skill use?
- Any model you choose. Zeplik works across every model in one chat, so the Margin Analyzer skill runs on your preferred model for the task.
- Where does the Margin Analyzer skill come from?
- The Margin Analyzer skill is adapted from the open-source anthropics/knowledge-work-plugins project (Apache-2.0) and tuned to run natively on Zeplik. The original source is linked on this page.
- How much does the Margin Analyzer skill cost?
- Using the skill is free to start. You only spend Zeplik credits when the assistant runs, and new accounts begin with free credits.
Related legal and finance skills
- Account ReconciliationUse when the user asks to reconcile accounts -- "bank rec for June", "GL to subledger reconciliation", "intercompany rec", "find the reconciling items". Compares GL balances to subledgers, bank statements, or third-party data and categorizes differences.
- Audit SupportUse when the user is preparing for an internal or external audit -- "get ready for the auditors", "build testing workpapers", "select audit samples", "classify this control deficiency". SOX 404 control testing methodology and documentation standards. Not for running a SOX testing cycle (use sox-testing).
- Cash Flow SnapshotUse when the user asks about cash flow or runway -- "forecast my cash flow", "will I make payroll", "how long is my runway", "cash crunch coming". Builds a 30/60/90-day cash forecast with confidence bands and named risk flags from books data or CSV, plus a downloadable XLSX.
- Cash-Flow Heads UpA forward-looking 30/60-day cash outlook flagging the tightest week and two things to act on. Not for reconciling and closing the books (use close-month or month-end-prep).
- Compliance CheckUse when the user asks whether a feature, campaign, or initiative is compliant -- "compliance check this launch", "does this touch GDPR or personal data", "what approvals do we need before shipping". Surfaces applicable regulations, required approvals, jurisdictional requirements, and risk areas.
- Contract ReviewUse when the user asks to review a contract -- "review this MSA", "redline this vendor agreement", "what's risky in this contract". Clause-by-clause analysis against a negotiation playbook with redlines, business impact, and fallback positions. Not for quick NDA screening (use triage-nda).
More on Zeplik
Try Margin Analyzer on Zeplik
Every model, one chat. Bring the Margin Analyzer skill into your next conversation and let the assistant do the work.