Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

cost-allocation-analysis成本分配分析

Agent Skill

cost-allocation-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

524

周安装

21

GitHub Stars

19

下载量

170
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cost-allocation-analysis(成本分配分析)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/cost-allocation-analysis
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill cost-allocation-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill cost-allocation-analysis

简介

cost-allocation-analysis 指导将 COGS、履约与营销支出分配至订单层级。

  • 适用于电商利润分析、SKU 级成本归因与渠道效益评估场景。
  • 整合现有财务系统与平台工具完成全链路成本建模。
  • 输出结果依赖原始数据准确性,建议抽样验证后再应用于决策。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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

For more detailed cost allocation, install a profit analytics app:

  • BeProfit (Shopify App Store): Adds fulfillment cost tracking, ad spend integration, and per-order margin calculation
  • Lifetimely (Shopify App Store): Connects to ad platforms and shipping carriers to compute contribution margin per order
  • TrueProfit (Shopify App Store): Real-time profit dashboard with shipping cost tracking, ad spend allocation, and per-product P&L

BeProfit setup for full cost allocation:

  1. Install BeProfit from the Shopify App Store
  2. Go to BeProfit → Cost Settings and verify product costs (imported from Shopify's cost per item field)
  3. Connect shipping carriers under BeProfit → Integrations → Shipping — BeProfit pulls actual label costs from ShipStation, Shippo, EasyPost, or AfterShip
  4. Connect ad accounts under BeProfit → Integrations → Marketing — links Meta, Google, and TikTok spend to attributed orders
  5. Go to BeProfit → Reports → Profit per Order — see contribution margin after COGS, shipping, and marketing for every order

WooCommerce

Enter product costs in WooCommerce:

  • Use the Cost of Goods plugin (WooCommerce extension, $79/yr) to add a cost field to every product and variant
  • Alternatively, use ATUM Inventory Management (free) which includes COGS tracking

View cost allocation with Metorik:

  1. Install Metorik (connects via WooCommerce REST API)
  2. Go to Metorik → Products → Profitability — shows gross margin per product once costs are entered in WooCommerce
  3. Go to Metorik → Orders — filter by any dimension and see per-order gross profit

For fulfillment cost allocation:

  • If using ShipStation or Shippo for label generation, these tools track actual shipping costs per order; export monthly reports and reconcile against WooCommerce order totals

BigCommerce

  1. BigCommerce supports cost price at the product level: Products → [Product] → Pricing → Cost price
  2. Go to Analytics → Merchandising — shows revenue and cost of goods by product; provides gross margin % per product
  3. For advanced cost allocation, connect BigCommerce to QuickBooks Commerce (formerly TradeGecko) or use the Inventory Source app for landed cost tracking
  4. Brightpearl (available in the BigCommerce App Store) is a full retail operations platform that handles multi-channel cost allocation including fulfillment, marketplace fees, and overhead allocation

Step 2: Allocate the four cost categories

Cost Category 1: COGS (product cost)

  • Enter landed cost at the variant level in your platform (includes purchase price + inbound freight + duties)
  • Update costs whenever supplier pricing changes — use "effective date" tracking so historical orders are not affected
  • Most platforms and profit apps will pull this automatically

Cost Category 2: Fulfillment costs (shipping + pick/pack)

  • Direct website orders: Pull actual label costs from your shipping platform (ShipStation, EasyPost, Shippo) and match to orders by order ID
  • FBA orders: Pull fulfillment fees from the Amazon Settlement Report (see @marketplace-fee-reconciliation for details)
  • 3PL orders: Match 3PL invoices to order volume; most 3PLs charge per-order pick/pack fees that can be allocated directly

Cost Category 3: Marketing spend

  • Use your attribution tool (Triple Whale, BeProfit, or GA4 attribution) to allocate marketing spend to the orders each channel drove
  • Simpler approach: calculate Cost Per Order by channel (channel spend / channel orders) and apply that rate to each order attributed to that channel

Cost Category 4: Overhead (warehouse, software, headcount)

  • Calculate a monthly overhead rate: Total overhead / Total net revenue = overhead %
  • Apply this rate to each order's net revenue to allocate overhead
  • Example: If monthly overhead is $20,000 and monthly revenue is $200,000, overhead rate is 10% — allocate $10 overhead to a $100 order

Step 3: Build the cost waterfall

Use this structure for your cost analysis (whether in a spreadsheet or your profit analytics app):

Gross Revenue (selling price × units sold)
  - Discounts & coupons applied
  - Returns & refunds
= Net Revenue

  - Product cost / COGS (landed cost per unit)
  - Inbound freight & duties (if not included in COGS)
= Gross Profit
  Gross Margin % = Gross Profit / Net Revenue × 100

  - Outbound shipping (actual label cost or carrier estimate)
  - Pick & pack fees (3PL per-order fee)
  - Payment processing fees (~2.9% + $0.30 for Stripe/Shopify Payments)
  - Marketplace fees (Amazon referral + FBA fees; eBay final value fees)
  - Packaging materials
= Fulfillment-Adjusted Gross Profit

  - Direct marketing spend (allocated via attribution model)
= Contribution Margin
  Contribution Margin % = Contribution Margin / Net Revenue × 100

  - Allocated overhead (warehouse, software, headcount × overhead rate)
= Net Operating Profit per Order

Step 4: Identify negative-margin orders and products

After building the cost waterfall, run these analyses:

Find negative-margin products:

  • In BeProfit (Shopify): Go to Reports → Products and sort by Net Profit % ascending — products at the bottom are destroying value
  • In Metorik (WooCommerce): Go to Products → Profitability and filter for contribution margin < 0
  • In Shopify Analytics: Go to Profit by product and sort by Gross profit ascending

Common causes of negative margin at the product level:

  1. COGS entered incorrectly (not including freight/duties)
  2. High return rate for that SKU (returns eat into margin)
  3. Heavy discounting on that product (check average discount rate per product)
  4. Shipping cost exceeds margin on low-priced, heavy items (dimensional weight problem)

Find negative-margin channels:

  • Amazon FBA orders often look profitable on gross margin but turn negative once FBA fulfillment fees (typically $3–$8/unit), referral fees (8–15%), and advertising spend are allocated
  • Compare your website contribution margin vs. Amazon contribution margin for the same SKU side by side

Best Practices

  • Use time-effective product costs — COGS changes over time; always record the cost as of when the order was placed, not the current cost; most profit apps handle this automatically
  • Include all components of landed cost in COGS — purchase price alone understates COGS by 15–40% for imported goods; add inbound freight, duties, and prep costs
  • Handle marketplace fees as a cost layer, not a revenue reduction — Amazon and eBay fees should appear as a fulfillment/selling cost in your waterfall, not netted against revenue
  • Reconcile allocated costs against actuals monthly — the sum of all allocated shipping costs should match your actual shipping invoices; any gap indicates orders where costs were not tracked
  • Include a returns reserve in fulfillment costs — if your return rate is 15%, reserve 15% of average return processing cost on every order at the time of sale
  • Separate fixed and variable overhead — shipping and pick/pack are variable (per-order); warehouse rent is fixed; treating fixed costs as variable inflates per-order costs in low-volume periods

Common Pitfalls

ProblemSolution
Gross margin is positive but cash flow is negativeOverhead and fulfillment costs are not in the gross margin calculation; build the full waterfall to contribution margin before concluding a product is profitable
Historical margin changes when COGS is updatedUse point-in-time cost records; BeProfit and most profit analytics apps track historical cost changes automatically
Marketing costs not allocated to ordersUse an attribution-aware profit app (BeProfit, Lifetimely) or calculate Cost Per Order by channel and apply manually
Overhead allocation rate fluctuates wildly month-to-monthUse a rolling 3-month average revenue to compute the overhead rate rather than a single month
Negative-margin orders are hidden by channel averagesView profit at the individual order level, not just channel averages; a high-volume channel can average positive margin while hiding a tail of unprofitable orders
SKU margins differ between variantsEnter cost at the variant level (not just product level); a product with multiple sizes may have different per-unit costs

Related Skills

  • @profit-margin-analysis
  • @unit-economics-tracking
  • @financial-analytics-dashboard
  • @marketing-spend-analysis
  • @attribution-modeling
  • @sales-reporting-dashboard

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.49%
按下载量换算59

Claude

30.05%
按下载量换算51

Cursor

16.57%
按下载量换算28

Gemini CLI

8.94%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills