shopify-admin-shipping-cost-analysis
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shopify-admin-shipping-cost-analysis" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e6e1b086d86118e17f92df382f168c18384364bc12afb75d3b879628cd4b3691. Verify the upstream source and version against https://github.com/40RTY-ai/shopify-admin-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Read-only: aggregate the shipping revenue charged to customers and the corresponding actual carrier costs by carrier and shipping method, for cost comparison and analysis.
Introduction source: third_party · 40RTY-ai · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Read-only: aggregates shipping revenue charged to customers vs. actual shipping line costs by carrier and method.
- Inputs and outputs
- CSV file `shipping_cost_<YYYY-MM-DD>.csv` with columns: `order_name`, `shipping_method`, `carrier`, `charged_amount`, `original_price`, `discount_applied`, `currency`
- Software, accounts and paid services
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_orders` API scopes: `read_orders` Actual shipping costs are only available if recorded via the Shopify Admin API or carrier-calculated shipping; manually entered orders may lack cost data.
- Testing
- Not tested
Browse files
Frontmatter
name: shopify-admin-shipping-cost-analysis
role: finance
description: "Read-only: aggregates shipping revenue charged to customers vs. actual shipping line costs by carrier and method."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- orders:query
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLIPurpose
Compares the shipping amount charged to customers against the actual shipping cost recorded on orders, broken down by carrier and shipping method. Identifies where shipping is being subsidized (charged less than cost) or over-charged. Read-only — no mutations.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_orders - API scopes:
read_orders - Actual shipping costs are only available if recorded via the Shopify Admin API or carrier-calculated shipping; manually entered orders may lack cost data.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| days_back | integer | no | 30 | Lookback window |
| format | string | no | human | Output format: human or json |
Safety
ℹ️ Read-only skill — no mutations are executed. Safe to run at any time.
Workflow Steps
-
OPERATION:
orders— query Inputs:query: "financial_status:paid created_at:>='<NOW - days_back days>'",first: 250, selectshippingLines { title, discountedPriceSet, originalPriceSet, carrierIdentifier }, pagination cursor Expected output: Orders with shipping line details; paginate untilhasNextPage: false -
For each shipping line: record carrier (from
titleorcarrierIdentifier), charged amount (discountedPriceSet), and actual cost if available -
Group by carrier/method; calculate total charged, total cost, net subsidy/overage
GraphQL Operations
# orders:query — validated against api_version 2025-01
query ShippingCostAnalysis($query: String!, $after: String) {
orders(first: 250, after: $after, query: $query) {
edges {
node {
id
name
createdAt
totalShippingPriceSet {
shopMoney {
amount
currencyCode
}
}
shippingLines(first: 5) {
edges {
node {
id
title
carrierIdentifier
originalPriceSet {
shopMoney {
amount
currencyCode
}
}
discountedPriceSet {
shopMoney {
amount
currencyCode
}
}
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Session Tracking
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Shipping Cost Analysis ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝
After each step, emit:
[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>
On completion, emit:
For format: human (default):
══════════════════════════════════════════════
SHIPPING COST ANALYSIS (<days_back> days)
Orders analyzed: <n>
Total charged to customers: $<amount>
Free shipping orders: <n>
By Carrier/Method:
"Standard Shipping" Orders: <n> Charged: $<n> Avg: $<n>
"Express" Orders: <n> Charged: $<n> Avg: $<n>
Output: shipping_cost_<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "shipping-cost-analysis",
"store": "<domain>",
"period_days": 30,
"orders_analyzed": 0,
"total_shipping_charged": 0,
"free_shipping_order_count": 0,
"currency": "USD",
"by_method": [],
"output_file": "shipping_cost_<date>.csv"
}
Output Format
CSV file shipping_cost_<YYYY-MM-DD>.csv with columns:
order_name, shipping_method, carrier, charged_amount, original_price, discount_applied, currency
Error Handling
| Error | Cause | Recovery |
|---|---|---|
THROTTLED |
API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| No shipping lines | Digital products or free shipping store | Report $0 shipping revenue |
| Carrier identifier missing | Custom or manual shipping methods | Use title as carrier name |
Best Practices
- Free shipping orders show $0 charged but the actual carrier cost is your subsidy — knowing this per carrier helps evaluate free shipping threshold decisions.
originalPriceSetvsdiscountedPriceSetdifference represents shipping discounts applied to customers — useful for understanding total shipping subsidy cost.- Pair with
average-order-value-trendsto evaluate whether free shipping thresholds are driving the intended AOV lift. - For actual carrier cost reconciliation, cross-reference with carrier invoices — Shopify's API only stores what was charged to customers, not what was paid to carriers unless your carrier integration writes those costs back.
Version history
-
v1.1.0
GitHub ↗
Original release notes
## 🤖 New category: Agentic Commerce Readiness The fix-it side of the [**agentiq.report**](https://agentiq.report) audit. The audit tells operators *where* AI shopping agents (ChatGPT, Gemini, Perplexity, agentic checkout) can't find, read, or recommend their store. This release adds **10 skills that remediate those findings** via the native Shopify Admin GraphQL toolkit — closing the loop: **audit finds the gap → run the matching skill → re-audit confirms.** Every skill declares the audit **signals** it fixes (`audit_signals` frontmatter), so a finding in the report maps directly to the skill that resolves it. ### Skills - **`agentic-readiness-audit`** — flagship, read-only store-side scorecard that routes each gap to its fix skill - **`agentic-product-jsonld-backfill`** — barcode/GTIN, vendor, product type for complete Product JSON-LD - **`agentic-image-alt-text`** — descriptive alt text on product media - **`agentic-description-enrichment`** — fact-rich descriptions for AI quoting - **`agentic-metafields-setup`** — define + populate agentic metafields for filtering - **`agentic-product-taxonomy`** — Shopify Standard Product Taxonomy categories - **`agentic-crawler-access`** — allow GPTBot/ClaudeBot/PerplexityBot… in `robots.txt.liquid` - **`agentic-llms-txt`** — publish a curated `/llms.txt` for AI assistants - **`agentic-organization-schema`** — Organization JSON-LD (sameAs, contactPoint) into the theme - **`agentic-policy-readability`** — machine-readable shipping/returns policies Plus a weekly **`agentic-readiness-monitor`** routine that re-audits and alerts on regressions. ### Stats **116 skills across 11 categories** (was 106/10), **21 routines** (was 20). All GraphQL validated against the live Admin 2025-01 schema; `pnpm validate:index` passes (116 skills, 64 operations). ### Notes Theme-editing and policy skills default to `dry_run`/`audit` mode, write inside managed `# BEGIN/END` blocks, and recommend duplicating the theme first.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向财务角色的实用工具,解决运费收入与成本对比的实际业务痛点
- 具有明确的商业价值和广泛适用性
Highlights
- description 明确说明只读、按承运商和运输方式汇总、比较客户收取运费与实际成本
- 触发词精准完整
Highlights
- Phase/步骤清晰(Workflow Steps),有出口条件
- 含端到端示例(GraphQL query + Session Tracking output)
- frontmatter完整
Highlights
- 工具来源明确(Shopify Admin API),参数正确
- 覆盖主要异常(THROTTLED, No shipping lines, Carrier identifier missing)
- 不可逆操作有确认机制(Read-only skill)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_orders` API scopes: `read_orders` Actual shipping costs are only available if recorded via the Shopify Admin API or carrier-calculated shipping; manually entered orders may lack cost data.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.