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 $0.00016 $0.01242
Sonnet 5 $0.00007 $0.00497
Haiku 4.5 $0.00003 $0.00248

Measured 11d ago against content hash 6d6e786493c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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 (52 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 2,484 once invoked, about $0.0002 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

amazon-search-results-product-extractor

This skill provides a one-stop product data collection service through BrowserAct's Amazon Product Search API template. It directly extracts structured product results from Amazon search lists. Simply input search keywords, brand filters, and quantity limits to get clean, usable…

rondoflow/rondoflow · 55 tokens

amazon-product-reviews-extractor

This skill provides a one-stop Amazon review collection service through BrowserAct's Amazon Reviews API template. It can directly extract structured review results from Amazon product pages. By simply providing an ASIN, you can get clean, usable review data without building craw…

rondoflow/rondoflow · 57 tokens

unit-economics-analysis

Analyzes startup unit economics — CAC, LTV, payback period, contribution margin by segment, cohort profitability, and efficiency metrics. Use when the user mentions "CAC," "LTV / CAC ratio," "payback period," "unit economics," "customer profitability," or asks about "which customer segments are most profitable" or…

gokulb20/crewm8-cfo-skills · 82 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens