shipping-rate-calculator
Show real-time shipping rates from UPS, FedEx, USPS, and DHL at checkout by integrating directly with each carrier's rate API
by finsilabs★ 69 GitHub stars
Install shipping-rate-calculator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Shipping Rate Calculator
Overview
Showing real-time shipping rates at checkout — from UPS, FedEx, USPS, DHL — lets customers choose their preferred service and prevents you from under- or overcharging for shipping. Every major platform supports carrier-calculated rates natively or through apps, and a multi-carrier rate shopping tool can save you 15–40% on shipping costs by automatically selecting the cheapest option.
When to Use This Skill
- When adding real-time carrier rate quotes to checkout
- When building a multi-carrier shipping rate comparison feature
- When implementing free shipping thresholds or tiered flat-rate shipping
- When you need to calculate dimensional weight for accurate carrier pricing
- When setting up shipping zones and rate tables for international shipping
Core Instructions
Step 1: Determine your platform and choose the right shipping rate tool
| Platform | Recommended Tool | Why |
|---|---|---|
| Shopify | Shopify Shipping (built-in) or Easyship / ShipStation for rate shopping | Shopify Shipping gives discounted USPS, UPS, DHL rates; Easyship adds 250+ carrier options and rate shopping |
| WooCommerce | WooCommerce Shipping (USPS/DHL) + Table Rate Shipping for custom rules | WooCommerce Shipping handles basic carrier rates; Table Rate Shipping adds weight/zone-based rule tables |
| BigCommerce | ShipperHQ or Easyship | ShipperHQ is the most powerful rate management tool for BigCommerce with dimensional rate calculation |
| Custom / Headless | EasyPost or Shippo as a carrier meta-API | Both aggregate UPS, FedEx, USPS, DHL into a single API call — far simpler than integrating each carrier directly |
Step 2: Set up carrier-calculated rates
Shopify
Shopify Shipping (built-in, free, recommended starting point):
- Go to Settings → Shipping and delivery → Manage rates
- Under your domestic zone, click Add rate
- Select Use carrier or app to calculate rates
- Choose from: USPS, UPS, DHL Express
- Check the services you want to offer (e.g., USPS Priority Mail, USPS Ground Advantage, UPS Ground, UPS 2nd Day Air)
- Optionally add a markup or discount percentage on top of carrier rates (useful to offset packing material costs)
- Save — rates will now appear dynamically at checkout based on the order's actual weight and destination
For more carrier options (FedEx, regional carriers, international):
- Install Easyship or ShipStation from the Shopify App Store
- Both integrate as Shopify "carrier-calculated shipping" providers and appear natively at checkout
- Easyship's free tier shows live rates from 50+ carriers at checkout
- Note: Carrier-calculated rates at checkout require Shopify's Advanced plan ($299/mo) or higher, OR purchasing the carrier-calculated shipping add-on ($20/month on lower plans)
For flat-rate and free-shipping rules:
- In Shopify Shipping, you can create flat-rate options ($5.99 standard shipping, $14.99 express) in addition to or instead of carrier-calculated rates
- Combine with a free shipping threshold: add a free shipping rate with a minimum order condition (see @free-shipping-thresholds skill)
WooCommerce
WooCommerce Shipping (USPS + DHL, free):
- Install the WooCommerce Shipping plugin (free, by WooCommerce)
- Go to WooCommerce → Settings → Shipping → Add shipping zone for each region
- Under each zone, click Add shipping method → select USPS or DHL Express
- Configure which services to display at checkout (Priority Mail, Ground Advantage, etc.)
- Add your package dimensions and weights to products for accurate rate calculation
WooCommerce Table Rate Shipping (for complex rules, e.g., weight tiers, custom zones):
- Purchase the WooCommerce Table Rate Shipping extension from WooCommerce.com
- Create rate tables: e.g., 0–1lb = $4.99, 1–5lb = $7.99, 5–20lb = $12.99
- Create separate tables for domestic vs. international zones
ShipStation for WooCommerce (multi-carrier rate shopping):
- Install the ShipStation for WooCommerce plugin
- ShipStation can be configured to use your negotiated carrier rates and display them at checkout via WooCommerce's shipping method API
- Note: ShipStation shows rates in your ShipStation dashboard, not always directly at customer checkout — check ShipStation documentation for the specific WooCommerce checkout rate display feature
BigCommerce
ShipperHQ (most powerful option for BigCommerce):
- Install ShipperHQ from the BigCommerce App Marketplace
- Connect your UPS, FedEx, USPS, DHL accounts to ShipperHQ (or use ShipperHQ's built-in carrier accounts)
- ShipperHQ handles dimensional weight calculations automatically based on your product dimensions
- Configure rate shopping rules: "Show cheapest option", "Show all options", or "Show cheapest per delivery speed tier"
- Set markup rules: +$2 per shipment for handling, or -15% discount on all FedEx r
Allowed tools
Tools this skill is permitted to call.
- 01
claude-code - 02
cursor - 03
gemini-cli - 04
copilot - 05
codex-cli - 06
kiro - 07
opencode
Bundled files
- evals/dimensional-weight-calculation/criteria.json
- evals/dimensional-weight-calculation/task.md
- evals/multi-carrier-rate-engine-with-caching-a/criteria.json
- evals/multi-carrier-rate-engine-with-caching-a/task.md
- evals/shipping-rules-and-zone-based-rate-table/criteria.json
- evals/shipping-rules-and-zone-based-rate-table/task.md
- tile.json
FAQ
What does the shipping-rate-calculator skill do?
Show real-time shipping rates from UPS, FedEx, USPS, and DHL at checkout by integrating directly with each carrier's rate API
How do I install the shipping-rate-calculator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the shipping-rate-calculator skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…