supply-chain-optimization-shopify
Supply Chain Bottleneck Analyzer for Shopify/DTC stores. Diagnose cash flow, inventory, shipping costs, and customer acquisition efficiency. Includes CAC/LTV analysis, 3PL cost optimization, and ad spend benchmarks. No API key required for basic analysis.
What this skill does
# Supply Chain Optimization โ Shopify/DTC ๐ฆ
Supply chain bottleneck analyzer for Shopify and Direct-to-Consumer stores. Diagnose cash flow, inventory, shipping, and customer acquisition costs.
## Installation
```bash
npx skills add nexscope-ai/eCommerce-Skills --skill supply-chain-optimization-shopify -g
```
## Platform Characteristics
| Feature | Shopify/DTC | vs Amazon |
|---------|-------------|-----------|
| Fulfillment | Self-select (ShipBob/self) | FBA |
| Platform fee | None | 8-15% |
| Payment fee | 2.9% + $0.30 | Included in fee |
| Payment cycle | 2-3 days | 14 days |
| Traffic cost | High (self-built) | Low (platform) |
| Data ownership | Full | Limited |
## Cost Structure (Shopify/DTC)
```
Selling Price $XX
โโโ Product Cost
โโโ Inbound Shipping (to warehouse)
โโโ 3PL Storage Fee (e.g., ShipBob)
โโโ 3PL Fulfillment Fee
โโโ Payment Processing (2.9% + $0.30)
โโโ Shopify Subscription (allocated)
โโโ Advertising (Meta/Google/TikTok) โ Key Cost
โโโ Net Profit
```
## Benchmark Configuration
```python
BENCHMARKS = {
"shopify": {
"gross_margin": {
"healthy": 0.60, # DTC needs high margin for ads
"warning": 0.50,
"danger": 0.40
},
"shipping_ratio": {
"healthy": 0.08, # 3PL fees
"warning": 0.12,
"danger": 0.18
},
"inventory_days": {
"healthy": 45,
"warning": 60,
"danger": 90
},
"cash_cycle": {
"healthy": 45, # Fast payment
"warning": 70,
"danger": 100
},
"net_margin": {
"healthy": 0.20,
"warning": 0.12,
"danger": 0.05
},
# DTC-specific metrics
"cac": { # Customer Acquisition Cost
"healthy": 0.25, # CAC < 25% of price
"warning": 0.35,
"danger": 0.50
},
"ltv_cac_ratio": { # LTV/CAC
"healthy": 3.0, # LTV > 3x CAC
"warning": 2.0,
"danger": 1.0
},
"ad_spend_ratio": { # Ad spend ratio
"healthy": 0.25,
"warning": 0.35,
"danger": 0.45
}
}
}
```
## DTC-Specific Costs
### Advertising Costs (Critical!)
```
Meta Ads (Facebook/Instagram): CPM $10-30
Google Ads: CPC $1-5
TikTok Ads: CPM $5-15
Influencer Marketing: Variable
DTC ad spend typically 20-40% of revenue
```
### 3PL Logistics Costs
```
Common 3PL Options:
โโโ ShipBob
โโโ Deliverr
โโโ ShipMonk
โโโ Red Stag
Fee Structure:
โโโ Receiving: $2-5/case
โโโ Storage: $0.5-1/cubic ft/month
โโโ Pick & Pack: $2-4/order
โโโ Shipping: By weight/zone
```
### Payment Processing Fees
```
Shopify Payments: 2.9% + $0.30
PayPal: 2.9% + $0.30
Stripe: 2.9% + $0.30
High AOV: Ratio acceptable
Low AOV: Erodes profit
```
## Input Data
```
**Sales (Shopify-specific)**
โข Average Selling Price: $___
โข Average Order Value (AOV): $___
โข Payment Fee: 2.9% + $0.30
**Logistics (3PL)**
โข 3PL Fulfillment Fee: $___/order
โข 3PL Storage Fee: $___/unit/month
โข Receiving Fee: $___/case
**Marketing (Critical!)**
โข Ad Spend Ratio: ___%
โข Customer Acquisition Cost (CAC): $___
โข Customer Lifetime Value (LTV): $___
โข Repeat Purchase Rate: ___%
```
## API Integration
### Shopify Admin API
```bash
export SHOPIFY_STORE_URL="xxx.myshopify.com"
export SHOPIFY_ACCESS_TOKEN="xxx"
```
### Available Data
| Data | API |
|------|-----|
| Orders | Orders API |
| Products | Products API |
| Inventory | Inventory API |
| Customers | Customers API |
### 3PL API (e.g., ShipBob)
```bash
export SHIPBOB_API_TOKEN="xxx"
```
## Bottleneck Diagnosis Focus
DTC-specific bottlenecks:
1. **High CAC** โ Low ad efficiency, acquisition cost eating profit
2. **LTV/CAC < 3** โ Customer value insufficient to support CAC
3. **High 3PL costs** โ Poor logistics choice
4. **Low repeat rate** โ Reliant on new customers, high cost
5. **Low gross margin** โ Cannot support ad spend
## DTC Health Formula
```
Net Profit = Price - Product Cost - Shipping - Payment Fee - Ad Spend - Ops Cost
DTC Golden Ratios:
โโโ Gross Margin > 60%
โโโ Ad Spend < 30%
โโโ Shipping < 15%
โโโ Net Margin > 15%
โโโ LTV/CAC > 3
```
## vs Amazon Comparison
| Item | Amazon | Shopify/DTC |
|------|--------|-------------|
| Platform fee | 8-15% | 0% |
| Payment fee | Included | 2.9% + $0.30 |
| Payment cycle | 14 days | 2-3 days |
| Ad spend | 10-20% | 20-40% |
| Traffic | Platform | Self-built |
| Margin need | 40%+ | 60%+ |
| Data | Limited | Full ownership |
---
**Part of [Nexscope AI](https://www.nexscope.ai/?co-from=skill) โ AI tools for e-commerce sellers.**
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product โ visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".