Token导航 LogoToken导航

Agent Skill · 研究检索

cost-allocation-analysis(成本分配分析)

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

cost-allocation-analysis 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 53,729。

总安装 524周安装 21GitHub Stars 19下载 170核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

cost-allocation-analysis 指导将 COGS、履约与营销支出分配至订单层级。适用于电商利润分析、SKU 级成本归因与渠道效益评估场景。整合现有财务系统与平台工具完成全链路成本建模。输出结果依赖原始数据准确性,建议抽样验证后再应用于决策。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/cost-allocation-analysis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill cos…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cost-allocation-analysis 怎么安装?

在终端执行 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill cost-allocati…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cost-allocation-analysis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cost-allocation-analysis 需要什么权限?

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

cost-allocation-analysis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cost-allocation-analysis 用的人多吗?

公开数据是累计安装 524 次,近一周安装 21 次,下载 170 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cost-allocation-analysis 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cost-allocation-analysis

成本分配分析 · 本页

52419需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills