Token导航 LogoToken导航

Agent Skill · 研究检索

cogs-tracking-allocation(齿轮跟踪分配)

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

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

总安装 552周安装 23GitHub Stars 19下载 184核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

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

cogs-tracking-allocation 追踪商品销售成本(COGS)并支持运费与关税等 landed cost 分配。适用于在 Codex、Claude、Cursor、Gemini CLI 中进行毛利率分析与订单级核算。多数平台支持基础成本录入,复杂分配需借助会计软件或定制系统。

支持 FIFO 与加权平均等库存计价方法的选择与实施。涉及财务数据时应确保合规性与审计可追溯性。

来源仓库内路径:skills/cogs-tracking-allocation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

cogs-tracking-allocation 怎么安装?

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

cogs-tracking-allocation 支持哪些 AI 工具?

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

cogs-tracking-allocation 需要什么权限?

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

cogs-tracking-allocation 是免费的吗?

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

cogs-tracking-allocation 用的人多吗?

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

cogs-tracking-allocation 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
cogs-tracking-allocation

齿轮跟踪分配 · 本页

55219需要联网未明确通过

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

SKILL.md 原文

COGS Tracking and Allocation

Overview

Tracking Cost of Goods Sold (COGS) tells you the actual gross margin on every order — revenue minus what you paid for the products you sold. Most platforms let you enter a cost price per product, and accounting integrations (QuickBooks, Xero) use that to generate COGS entries automatically. Landed cost allocation (freight, customs, duties) requires either a dedicated app or manual allocation in your accounting software. Only build a custom COGS system if your platform cannot meet your costing method requirements (FIFO, weighted average).

When to Use This Skill

  • When your income statement shows revenue but you cannot compute gross margin because unit costs are not tracked
  • When importing goods internationally and needing to allocate freight, customs, and duties into the landed cost of each SKU
  • When switching from periodic (year-end count) to perpetual (real-time) cost tracking
  • When building variance analysis reports to identify SKUs where actual purchase costs are drifting from standard costs
  • When an ERP integration (QuickBooks, NetSuite, Xero) requires COGS journal entries at time of sale

Core Instructions

Step 1: Determine platform and choose the right approach

PlatformRecommended ApproachWhy
ShopifyEnter cost per variant in Admin; use Shopify Analytics or connect QuickBooks/Xero for COGS reportingShopify stores cost price per variant; profit reports use this for margin calculation
WooCommerceEnter purchase price per product; connect WooCommerce Bookings + accounting plugin or Metorik for margin reportsWooCommerce stores cost price natively; Metorik provides profit analytics
BigCommercePurchase cost field per product; connect to QuickBooks via built-in integrationBigCommerce has a cost price field; the QuickBooks integration auto-posts COGS
Custom / HeadlessBuild a cost ledger with FIFO/weighted-avg logic and accounting journal entriesRequired when none of the above integrations meet your costing method or reporting needs

Step 2: Enter cost prices per product

Before any COGS reporting is possible, every product variant needs a cost price.

Shopify
  1. Go to Admin → Products → [Product] → [Variant]
  2. Under Pricing, enter the Cost per item field
  3. Shopify's Analytics → Finances → Product sales by variant report will then show profit per product

For bulk cost updates: use Matrixify (App Store) to import a CSV with cost per SKU — the column is Variant Cost.

WooCommerce
  1. Go to WooCommerce → Products → [Product] → Inventory tab
  2. Enter the value in the Purchase cost field (requires WooCommerce Cost of Goods plugin or the field added by your theme/plugin)
  3. For reporting: install Metorik or connect QuickBooks for WooCommerce — both read the cost field and generate gross margin reports

Popular COGS plugins for WooCommerce:

  • WooCommerce Cost of Goods (SkyVerge) — adds cost field, generates margin reports
  • Metorik — analytics dashboard showing profit per product, order, and channel
BigCommerce
  1. Go to Products → [Product] → Pricing
  2. Enter the value in the Cost Price field
  3. Connect QuickBooks Online via Apps → BigCommerce for QuickBooks — it maps cost price to COGS entries automatically

Step 3: Connect accounting software for COGS journal entries

The cost price field alone only enables reporting inside the platform. For your P&L and balance sheet, connect an accounting integration that posts COGS when orders are fulfilled.

Shopify → QuickBooks / Xero
  • QuickBooks Online: Install QuickBooks Connector by OneSaas from the Shopify App Store. Configure: Sales → Fulfilled orders post to COGS account; map products to QuickBooks items
  • Xero: Install Xero by Amaka or A2X from the Shopify App Store. A2X is the most widely used — it batches daily Shopify sales into summarized Xero journal entries including COGS
A2X is strongly recommended for Shopify + Xero — it handles currency conversion, refunds, fees, and COGS automatically.
WooCommerce → QuickBooks / Xero
  • QuickBooks: Install QuickBooks Commerce or MyWorks Sync (most reliable WooCommerce ↔ QuickBooks sync)
  • Xero: Install Xero for WooCommerce by Zapier or Xero Bridge by Parex for direct sync
BigCommerce → QuickBooks
  • Use the built-in BigCommerce for QuickBooks app from the Apps marketplace
  • Configure COGS mapping under Settings → Accounting → Cost of Goods Sold account

Step 4: Set up landed cost allocation

Landed costs (freight, insurance, customs, duties) must be added to the product cost before the first sale to get accurate COGS.

For most merchants (manual method):

  1. Receive your shipment and get the freight/customs invoice
  2. Calculate the landed cost per unit: Total landed cost ÷ Total units received
  3. Update the cost price in your platform to include the landed cost component
  4. For allocation by value: (Product value / Total shipment value) × Total landed cost ÷ Units received

For Shopify merchants with frequent imports:

  • Install Shopify Shipping Costs or LandedCost.app from the App Store
  • These apps let you enter a shipment's landed costs and allocate them across received SKUs automatically

For accounting software users:

  • In QuickBooks or Xero, use a landed cost allocation journal entry to add freight/duties to inventory asset value before goods are sold

Step 5: Run COGS and margin reports

Once cost prices are entered and accounting is connected:

Shopify
  • Analytics → Finances → Profit by product — shows revenue, cost, and margin per variant
  • Analytics → Reports → Product sales — filter by date range, includes units sold and profit
WooCommerce + Metorik
  • Metorik → Reports → Profitability — gross margin by product, order, and time period
  • Metorik also shows cost per order and margin %
QuickBooks / Xero
  • P&L report — COGS line shows total cost of goods sold for the period
  • Inventory valuation summary — current on-hand value per SKU

Custom / Headless

For headless storefronts needing perpetual inventory costing with FIFO, build a cost ledger:

// Cost layer model — one row per purchase order receipt
interface InventoryCostLayer {
  variantId: string;
  receiptDate: Date;
  quantityReceived: number;
  quantityRemaining: number;  // Decrements as units are sold
  unitCostCents: number;      // Purchase price per unit
  landedCostCents: number;    // Allocated freight/duties per unit
}

// FIFO cost assignment when an order is fulfilled
async function assignCogsFifo(variantId: string, locationId: string, quantity: number, orderId: string) {
  let remaining = quantity;
  let totalCostCents = 0;

  return db.transaction(async tx => {
    // Consume oldest cost layers first (FIFO)
    const layers = await tx.inventoryCostLayers.findAll({
      where: { variantId, locationId, quantityRemaining: { gt: 0 } },
      orderBy: { receiptDate: 'asc' },
    });

    for (const layer of layers) {
      if (remaining <= 0) break;
      const units = Math.min(remaining, layer.quantityRemaining);
      const totalUnitCost = layer.unitCostCents + layer.landedCostCents;

      await tx.inventoryCostLayers.update(layer.id, {
        quantityRemaining: layer.quantityRemaining - units,
      });
      await tx.cogsEntries.create({
        orderId, variantId, quantity: units,
        unitCostCents: totalUnitCost,
        costingMethod: 'fifo',
      });

      totalCostCents += units * totalUnitCost;
      remaining -= units;
    }

    if (remaining > 0) throw new Error(`Insufficient cost layers for ${variantId}`);
    return { totalCostCents };
  });
}

// Allocate landed costs to a received shipment (by value)
async function allocateLandedCostsByValue(shipmentId: string, totalLandedCostCents: number) {
  const layers = await db.inventoryCostLayers.findByShipment(shipmentId);
  const totalValue = layers.reduce((s, l) => s + l.unitCostCents * l.quantityReceived, 0);

  for (const layer of layers) {
    const share = (layer.unitCostCents * layer.quantityReceived) / totalValue;
    const perUnitLanded = Math.round((share * totalLandedCostCents) / layer.quantityReceived);
    await db.inventoryCostLayers.update(layer.id, { landedCostCents: perUnitLanded });
  }
}

Best Practices

  • Enter cost prices before your first import or purchase order receipt — COGS is only accurate for orders after costs are set; retroactive fixes require manual adjustments
  • Include landed costs in unit cost before the first sale — freight and duties paid after goods are received but before sale must be allocated; otherwise COGS understates the true cost
  • Choose one costing method (FIFO vs. weighted average) per product category and stick to it — switching mid-year requires a revaluation journal entry
  • Reconcile platform profit reports with your accounting software monthly — discrepancies usually mean cost prices are missing for some variants
  • Set a standard cost at the start of each fiscal year for variance reporting — compare actual purchase prices to standard to catch cost drift early

Common Pitfalls

ProblemSolution
Gross margin reports show 100% for some productsCost price is missing for those variants; Shopify and WooCommerce silently treat missing cost as $0
COGS in QuickBooks doesn't match the platform's profit reportThe accounting integration may be using a different COGS account or ignoring refunds; check the integration mapping settings
Landed costs not reflected in COGSLanded costs must be entered before the first sale; entering them after requires adjusting the cost layer manually in your accounting software
Cost price includes VAT but shouldn'tEnter the ex-VAT cost price; tax is a separate line in your P&L, not part of COGS
Weighted average cost goes staleRecalculate weighted average dynamically from current inventory layers — never cache it as a static field

Related Skills

  • @inventory-tracking
  • @multi-warehouse
  • @catalog-import-export

平台分布

Codex

36.87%
按下载量换算68

Claude

30.37%
按下载量换算56

Cursor

18%
按下载量换算33

Gemini CLI

8.63%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills