margin-analyzer

margin-analyzer is a skill for Claude Code from ilyautov/small-business-ru. It costs 174 tokens per session (3,275 once invoked), scanned A, original, Apache-2.0.

A unit-economics analysis skill for products and services. Unit economics means measuring revenue, direct costs, gross profit, and margin for each individual item, with attention to VAT status.

In plain words
What is it for?
Use it to analyse revenue and costs by item, compare margins with inflation or cost changes, and estimate the effect of price increases such as 5%, 10%, or 15%.
Why use it?
It shows which products or services are actually profitable instead of hiding them inside an overall business average. It can use payment and accounting data and compare price scenarios.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the small-business-ru plugin — 34 skills shipped together

Good fit Use it to analyse revenue and costs by item, compare margins with inflation or cost changes, and estimate the effect of price increases such as 5%, 10%, or 15%.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ilyautov/small-business-ru/margin-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ilyautov/small-business-ru --skill margin-analyzer
Clone the repo
git clone --depth 1 https://github.com/ilyautov/small-business-ru

Made for: Claude Code.

Or install small-business-ru, the plugin that ships this one along with the rest of its 34 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for margin-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/ilyautov/small-business-ru/margin-analyzer.svg)](https://agentmods.dev/skills/ilyautov/small-business-ru/margin-analyzer)
Your own site
<a href="https://agentmods.dev/skills/ilyautov/small-business-ru/margin-analyzer"><img src="https://agentmods.dev/badge/skills/ilyautov/small-business-ru/margin-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 174 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00174 $0.03275
Opus 5 $0.00087 $0.01638
Sonnet 5 $0.00035 $0.00655
Haiku 4.5 $0.00017 $0.00328

Measured 8d ago against content hash adbb4d2ffd98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

margin-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

small-business-ru/skills/margin-analyzer/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Анализатор маржи

Выручка растёт, а денег на счету не прибавляется — почти всегда виновата маржа, которую никто не считает по позициям. Усреднённая «наценка по бизнесу» прячет товары и услуги, которые вы продаёте себе в убыток. Этот скилл раскладывает маржу по каждой позиции и показывает голые цифры — решение по цене остаётся за вами.

⚠️ Дисклеймер. Подготовлено для проверки вашим бухгалтером. Не является налоговой или юридической консультацией. Налоговые цифры — на 2026 налоговый период, перепроверьте перед применением.

Быстрый старт

Когда собственник спрашивает «поднять ли цены?» или «нормальная ли у меня маржа?», скилл:

  1. Определяет, что анализировать — какие товары/услуги в фокусе
  2. Подтягивает данные о затратах из бухгалтерии (себестоимость, прямые расходы)
  3. Подтягивает данные о выручке из систем платежей (история операций)
  4. Считает юнит-экономику — выручка, себестоимость, валовая прибыль, маржа % по каждой позиции, с учётом статуса НДС
  5. Сравнивает с контекстом — инфляция, изменение затрат, отраслевые ориентиры, если есть
  6. Строит сценарии цены — что происходит с выручкой и маржой при росте цены на +5%, +10%, +15%, опираясь на историческую корреляцию там, где данные позволяют
  7. Показывает анализ — без рекомендации по цене; решение принимает собственник

На выходе у собственника есть реальные цифры, чтобы самому принять решение по цене.


Рабочий процесс

Шаг 1: Предполётная проверка

Бухгалтерия (~~бухгалтерия): если подключена (например, 1С:Бухгалтерия или МойСклад) — проверьте, заполнено ли поле отрасли/вида деятельности. Если его нет — спросите: «Мне нужна категория вашего бизнеса, чтобы подтянуть релевантные ориентиры. В какой сфере вы работаете?»

Платежи (~~платежи): предполётная проверка не нужна, но некоторые сервисы (например, ЮKassa) ограничивают частоту запросов — см. reference/gotchas.md.

Read the full file on GitHub · 186 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 186 lines · 174 tokens per session scan A adbb4d2ffd98

Subscribe to this mod's changes

margin-analyzer is a skill published in the GitHub repository ilyautov/small-business-ru (15 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 174 tokens to every session and 3,275 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

position-sizer

Use this skill to calculate a risk-based position size (how many shares to buy) from an account size, risk tolerance, entry price, and stop distance. Trigger on "how many shares should I buy", "position size", "risk per trade", "ATR-based stop", "Kelly criterion", "risk 1% of account". If the user hasn't given a…

ntaffzii/Skill-Agents · 103 tokens

thai-invoice

Use this skill for any task involving Thai tax invoices, receipts, quotations, credit/debit notes, or withholding-tax (WHT) certificates. Trigger on "ออกใบกำกับภาษี", "ใบเสร็จ", "ใบเสนอราคา", "ใบลดหนี้", "ใบเพิ่มหนี้", "หนังสือรับรองหักภาษี ณ ที่จ่าย", "ภ.ง.ด.3", "ภ.ง.ด.53", "Thai tax invoice", "VAT 7%", "withholding…

ntaffzii/Skill-Agents · 183 tokens

backtest-expert

Use this skill to simulate how a trading rule would have performed on historical price data — win rate, average return, max drawdown, profit factor — from a CSV or list of prices the user supplies, no market-data API required. Trigger on "backtest this strategy", "ทดสอบกลยุทธ์ย้อนหลัง", "how would this rule have…

ntaffzii/Skill-Agents · 143 tokens

trading

Route and manage trading/investing workflow skills — market breadth and uptrend participation scoring, exposure/posture synthesis, risk-based position sizing, drawdown circuit breaker, periodic portfolio review, dividend/value screening, and trade journaling. Use when the user asks for market-regime checks, position…

ntaffzii/Skill-Agents · 75 tokens

dividend-value-screener

Use this skill for a structured checklist of common value and dividend-quality screening criteria (P/E, dividend yield, payout ratio, debt/equity, dividend growth streak) applied to stocks or ETFs a user is evaluating. Trigger on "dividend screener", "value stock screen", "is this a good dividend stock", "yield trap"…

ntaffzii/Skill-Agents · 97 tokens

drawdown-circuit-breaker

Use this skill to apply a mechanical drawdown-based risk gate — reduce or halt new position-taking after account equity falls a defined percentage from its peak. Trigger on "drawdown limit", "circuit breaker", "stop trading after a losing streak", "reduce size after a drawdown", "risk gate". Pairs with position-sizer…

ntaffzii/Skill-Agents · 97 tokens