cost-allocation-analysis

cost-allocation-analysis is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 33 tokens per session (2,484 once invoked), scanned A, original, MIT.

A guide for spreading product, shipping, marketing, and overhead costs across products, sales channels, and orders to calculate actual profitability.

In plain words
What is it for?
Calculating fully loaded costs, comparing product and channel profitability, supporting pricing decisions, and preparing management accounts.
Why use it?
Revenue minus the cost of making a product can hide fulfillment, marketing, marketplace, and shared business costs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex; mentions Gemini CLI.

Good fit Calculating fully loaded costs, comparing product and channel profitability, supporting pricing decisions, and preparing management accounts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis
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 finsilabs/awesome-ecommerce-skills --skill cost-allocation-analysis
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

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 cost-allocation-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cost-allocation-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cost-allocation-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,484 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.00033 $0.02484
Opus 5.5 $0.00013 $0.00994
Sonnet 5.5 $0.00007 $0.00497
Haiku 4.5 $0.00003 $0.00248

Measured 3mo ago against content hash 6d6e786493c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost-allocation-analysis 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 3mo 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.

skills/data-analytics/cost-allocation-analysis/SKILL.md · 189 lines

How it starts

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

Cost Allocation Analysis

Overview

Cost allocation analysis goes beyond simple revenue minus COGS to compute the fully-loaded cost of serving each order, product, and channel. Without proper cost allocation, high-revenue products may appear profitable while actually generating negative margin once fulfillment, marketing, and allocated overhead are factored in.

This skill guides you through allocating four cost buckets — COGS, variable fulfillment costs, direct marketing spend, and shared overhead — down to the product and order level using your existing platform tools, apps, and accounting integrations.

When to Use This Skill

  • When the business needs to identify which products, SKUs, or channels are genuinely profitable after all costs
  • When building a P&L view that goes below gross margin to contribution margin and net margin
  • When evaluating channel economics — understanding that marketplace orders carry marketplace fees on top of COGS
  • When product managers need to make pricing decisions backed by fully-loaded cost data
  • When finance is building monthly management accounts and needs automated cost allocation
  • When the business is scaling and shared overhead is growing faster than revenue

Core Instructions

Step 1: Determine your platform and get your cost data

The first step is getting accurate COGS into your platform or analytics tool. Without cost data at the product level, every margin calculation will be wrong.


Shopify

Enter product costs in Shopify:

  1. Go to Products → [Product Name] → Variants
  2. Scroll to the Cost per item field in each variant
  3. Enter your landed cost (purchase price + inbound freight + duties, divided by units)
  4. Shopify uses this cost in Analytics → Profit by product (available on all plans) and in Inventory → Inventory valuation reports

View cost allocation reports in Shopify:

  • Go to Analytics → Reports → Profit by product — shows gross profit per product (revenue minus COGS)
  • Go to Analytics → Reports → Profit by channel — shows gross margin by sales channel

Read the full file on GitHub · 189 lines

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. 3mo ago First seen · 189 lines · 33 tokens per session scan A 6d6e786493c4

Subscribe to this mod's changes

cost-allocation-analysis is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (69 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 2,484 once invoked, about $0.0001 per session on Opus 5.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

cost-allocation-analysis compared with skills from other repositories

cost-allocation-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cost-allocation-analysisfinsilabs/awesome-ecommerce-skillsSkill691mo agoMITA33Claude Code, Codex
amazon-search-results-product-extractorrondoflow/rondoflowSkill35yesterdayMITA55Claude Code, Codex
amazon-product-reviews-extractorrondoflow/rondoflowSkill35yesterdayMITA57Claude Code, Codex
dbt-analytics-engineercuriositech/windags-skillsSkill214d agononeA75Claude Code
unit-economics-analysisgokulb20/crewm8-cfo-skillsSkill27mo agoMITA82Claude Code, Codex
amazon-reviews-api-skillbrowser-act/skillsSkill6.5k27d agoMITA124Claude Code, Codex
cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-ToolkitSkill1.2kyesterdayMITA94Claude Code