cogs-tracking-allocation

cogs-tracking-allocation is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 32 tokens per session (2,451 once invoked), scanned A, original, MIT.

A workflow for recording the real product costs behind each sale, including purchase prices, freight, customs, and duties. COGS means cost of goods sold; landed costs are the extra costs of getting products ready to sell.

In plain words
What is it for?
Use it to track product costs, assign importing costs to products, change from occasional stock costing to ongoing costing, compare expected and actual costs, and create accounting entries when goods are sold.
Why use it?
It helps you calculate gross margin—the money left after product costs—when sales reports alone do not show whether orders are profitable.

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 Use it to track product costs, assign importing costs to products, change from occasional stock costing to ongoing costing, compare expected and actual costs, and create accounting entries when goods are sold.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation
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 cogs-tracking-allocation
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 cogs-tracking-allocation

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation/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 cogs-tracking-allocation

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/cogs-tracking-allocation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,451 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.00032 $0.02451
Opus 5 $0.00016 $0.01226
Sonnet 5 $0.00006 $0.00490
Haiku 4.5 $0.00003 $0.00245

Measured 10d ago against content hash 86fccb16a99b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cogs-tracking-allocation 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 10d 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/catalog-inventory/cogs-tracking-allocation/SKILL.md · 218 lines

How it starts

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

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

Platform Recommended Approach Why
Shopify Enter cost per variant in Admin; use Shopify Analytics or connect QuickBooks/Xero for COGS reporting Shopify stores cost price per variant; profit reports use this for margin calculation
WooCommerce Enter purchase price per product; connect WooCommerce Bookings + accounting plugin or Metorik for margin reports WooCommerce stores cost price natively; Metorik provides profit analytics
BigCommerce Purchase cost field per product; connect to QuickBooks via built-in integration BigCommerce has a cost price field; the QuickBooks integration auto-posts COGS
Custom / Headless Build a cost ledger with FIFO/weighted-avg logic and accounting journal entries Required when none of the above integrations meet your costing method or reporting needs

Read the full file on GitHub · 218 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. 10d ago First seen · 218 lines · 32 tokens per session scan A 86fccb16a99b

Subscribe to this mod's changes

cogs-tracking-allocation is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 2,451 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-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

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 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

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens