flux-analysis
БесплатноЗапускает вложенные скриптыНе проверенExplain financial variances with driver analysis, period comparisons, waterfall bridges, and commentary.
от okou-ai★ 81 звезда на GitHubОб этом скилле
Decomposition Techniques
Use comparable periods, populations, units, and cost structures. A bridge allocates an arithmetic change; it does not by itself establish a business cause. State the order of substitutions, reconcile the components to the observed change, and keep unexplained amounts visible rather than naming them as a known driver.
Price x Volume Separation
The foundational split for any metric expressible as unit price multiplied by quantity.
Two-factor formulas:
Total Movement = Actual Result - Baseline (budget or prior period)
Quantity Component = (Actual Units - Baseline Units) x Baseline Unit Price
Pricing Component = (Actual Unit Price - Baseline Unit Price) x Actual Units
Check: Quantity Component + Pricing Component = Total Movement
(when the interaction term is absorbed into one of the two factors)
Three-factor revenue bridge (quantity, mix, then price):
Let Q0 and Q1 be total baseline and actual quantities, m0_i and m1_i each product's quantity share, and p0_i and p1_i its unit price. Each period's shares sum to 1.
Quantity = (Q1 - Q0) x Sum(m0_i x p0_i)
Mix = Q1 x Sum((m1_i - m0_i) x p0_i)
Price = Q1 x Sum(m1_i x (p1_i - p0_i))
Check: Quantity + Mix + Price = Actual Revenue - Baseline Revenue
This order allocates interactions to the later components; do not add another interaction term. Other orders can be valid but yield different component values. For one product changing from 100 units at $10 to 110 at $12, the bridge is +$100 quantity, $0 mix, +$220 price = +$320. Using baseline units for the price effect would omit $20.
Only pool quantities with comparable units. For a new product with positive actual quantity, separating mix from price requires a supported baseline price or an explicitly labeled scenario. For a discontinued product with zero actual quantity, its observed baseline price is enough. If a period has zero total quantity or a needed counterpart price cannot be justified, use a direct product-revenue bridge or show the new product's contribution separately.
For repeatable calculations, use the bundled bridge calculator:
# SKILL_DIR is the absolute path to this flux-analysis skill directory.
python3 "$SKILL_DIR/scripts/decompose.py" --help
python3 "$SKILL_DIR/scripts/decompose.py" --mode revenue --input inputs.json
Input JSON has baseline and actual arrays with matching, unique segment IDs and numeric quantity fields. Prefer decimal strings for numbers. Quantities must be nonnegative, in common units, with positive totals in both periods. Supply a baseline price if either period has positive quantity and an actual price if actual quantity is positive. Omit unused prices or leave them null. Duplicate JSON keys are rejected, including within rows. Output values are exact rational strings; round only for presentation. The calculator checks arithmetic, not source quality or whether this model fits the business.
Worked example — top-line revenue:
- Baseline plan: 10,000 units at $50/unit = $500,000
- Actual outcome: 11,000 units at $48/unit = $528,000
- Net movement: +$28,000 favorable
- Quantity uplift: +1,000 units x $50 = +$50,000 (favorable — higher volume)
- Pricing drag: -$2 x 11,000 = -$22,000 (unfavorable — reduced average selling price)
Blended Rate / Composition Separation
Applicable when aggregated results blend multiple segments with distinct unit economics.
Formulas:
Blended Rate = Sum(w_i x r_i) # weights sum to 1 in each period
Mix Effect = Sum((w1_i - w0_i) x r0_i)
Rate Effect = Sum(w1_i x (r1_i - r0_i))
Check: Mix Effect + Rate Effect = Actual Blended Rate - Baseline Blended Rate
Use the denominator of the rate as the weight: revenue shares for gross margin percentages, not unit shares. These effects are rates, not currency amounts; multiply fractional rates by 100 to express percentage points. To explain gross-profit dollars, reconcile revenue and cost dollars separately. The calculator's --mode weighted-rate takes segment, weight, and rate fields; weights are nonnegative with positive period totals and are normalized internally.
A segment with positive actual weight and zero baseline weight needs a baseline counterpart rate for the mix/rate split. Use a supported plan, contract, or explicitly labeled scenario. Different counterpart assumptions can reverse the effects while leaving the same aggregate change. Without a defensible counterpart, report the aggregate change or show the new segment separately. When actual weight is zero, the actual rate is unused and can be omitted or left null. If both weights are zero, both rates can be omitted or left null.
Worked example — gross margin compression:
- Segment X earns 60% margin; Segment Y earns 40% margin
- Plan assumed a 50/50 revenue split -> blended 50% margin
- Actual revenue split was 40/60 -> blended 48% margin
- The 2-point margin decline is attribut
Установить flux-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flux-analysis?
Explain financial variances with driver analysis, period comparisons, waterfall bridges, and commentary.
Как установить скилл flux-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flux-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic