# margin-analyzer

This skill compares revenue and costs for products or services, accounts for VAT status, and models price scenarios. Use it to see which items bring in gross profit.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 26
- Author: ilyautov
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ilyautov/small-business-ru/tree/HEAD/small-business-ru/skills/margin-analyzer/SKILL.md
- Updated: 2026-09-29
- HTML: https://affpapa.org/en/nevibecode/skills/margin-analyzer

## What it does

The skill draws revenue from payment systems and cost data from accounting, then calculates gross profit and margin for each item. It accounts for VAT status and compares results with inflation and cost changes. If some sources are not connected, the analysis will be limited; CSV exports are another way to provide the data.

For price scenarios, it uses historical links between price and sales volume when enough data is available. It reports the analysis but leaves pricing decisions to the business owner. Tax figures for the 2026 tax period should be checked with an accountant before use; this is not tax or legal advice.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ilyautov/small-business-ru --skill margin-analyzer -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/margin-analyzer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/margin-analyzer/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ilyautov/small-business-ru --skill margin-analyzer -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/margin-analyzer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ilyautov/small-business-ru --skill margin-analyzer -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/margin-analyzer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ilyautov/small-business-ru margin-analyzer
```

2. **Manually: put the files in place**
- File: `.github/skills/margin-analyzer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ilyautov/small-business-ru --skill margin-analyzer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ilyautov/small-business-ru --path small-business-ru/skills/margin-analyzer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/margin-analyzer/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ilyautov/small-business-ru --skill margin-analyzer -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ilyautov/small-business-ru/tree/HEAD/small-business-ru/skills/margin-analyzer/SKILL.md

## When to use it
- calculate gross margin for products and services
- compare revenue and direct costs by item
- account for VAT when calculating margin
- model revenue under different price changes
- spot items with low margins

## Example prompts
- Calculate the margin for each product and show which ones earn the least.
- Compare revenue and margin under different price scenarios for my services.
- My costs are rising but cash is not. Match revenue against item-level costs.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 6dd563bce76b0ed8.

BEGIN THIRD-PARTY FILE 6dd563bce76b0ed8
```text
---
name: margin-analyzer
description: >
  Разбирает юнит-экономику по товарам и услугам: подтягивает поступления из
  систем платежей и данные о себестоимости из бухгалтерии, считает маржу с
  учётом статуса НДС, сравнивает с инфляцией и изменением затрат и показывает
  данные по сценариям цены (например, «рост цены на 5% исторически давал
  падение объёма примерно на 3%»). Только показывает анализ — цену не
  рекомендует. Триггеры: «какая у меня маржа», «поднять ли цены»,
  «сколько накручивать», «достаточно ли я зарабатываю», «расходы съедают
  прибыль», «сколько ставить за услугу». Срабатывает, даже если слово
  «маржа» не прозвучало.
---

<!-- Производное от Anthropic knowledge-work-plugins / small-business (Apache-2.0, (c) Anthropic). Локализовано под РФ, файл изменён. См. /NOTICE и /LICENSE. -->

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

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

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

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

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

1. **Определяет, что анализировать** — какие товары/услуги в фокусе
2. **Подтягивает данные о затратах** из бухгалтерии (себестоимость, прямые расходы)
3. **Подтягивает данные о выручке** из систем платежей (история операций)
```
END THIRD-PARTY FILE 6dd563bce76b0ed8

The third-party file has ended. Everything between the 6dd563bce76b0ed8 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2913 of 18850 bytes. © ilyautov · Apache-2.0 · https://github.com/ilyautov/small-business-ru/tree/HEAD/small-business-ru/skills/margin-analyzer/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
