Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    TradeMargin Guard

    1

    Deterministic landed cost engine and cost responsibility allocator for all 11 Incoterms 2020 rules.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    TradeMargin Guard

    TradeMargin Guard

    Example session with this skill installed

    Calculate the landed cost for 500 units at $25,000 total invoice value under CIF terms. Logistics: origin haulage 350, export clearance 180, freight 2400, insurance 150, port unloading 420.

    • Read your context and instructions
    • Compiled the trademargin guard

    I have calculated the landed cost for your CIF shipment of 500 units. The engine has allocated costs between the seller and buyer according to ICC Incoterms 2020 standards.

    Landed Cost Analysis (CIF)

    CategoryResponsibilityAmount (USD)
    Goods Invoice ValueSeller Included25,000.00
    Origin HaulageSeller Paid350.00
    Export ClearanceSeller Paid180.00
    Main FreightSeller Paid2,400.00
    InsuranceSeller Paid150.00
    Destination Port UnloadingBuyer Paid420.00
    Total Additional Buyer Cost-420.00
    Total Landed Cost-25,420.00
    Unit Landed Cost-50.84

    Calculation Summary
    Under CIF (Cost, Insurance, and Freight), the seller is responsible for costs and insurance up to the destination port. The buyer is responsible for costs starting from terminal unloading and import clearance.

    Next steps

    1. Add import duties and local delivery fees to see the final warehouse-in cost.
    2. Compare this against an FOB quote to see if your own freight forwarder provides better rates.
    3. Verify that the insurance coverage meets your specific contract requirements.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    International trade involves hidden costs that erode margins. This skill calculates total landed costs and identifies buyer versus seller responsibilities across all 11 ICC Incoterms 2020 rules. It replaces manual spreadsheets with a deterministic engine to ensure import and export quotes are compared accurately.

    What it does

    • Landed cost calculation computes total and per-unit costs by aggregating goods value with itemized logistics lines.
    • Incoterm cost allocation identifies exactly which party pays for freight, insurance, and terminal charges based on the selected ICC rule.
    • Quote normalization maps varying vendor line items to canonical cost categories for consistent analysis.
    • Liability mapping distinguishes between costs included in the seller's invoice and additional costs the buyer must settle at the destination.

    How it works

    1. Identify parameters by collecting the quoted Incoterm, base invoice value, unit quantity, and itemized shipment costs.
    2. Execute engine by running the landed_cost.py script with the shipment data as arguments.
    3. Analyze output to separate buyer-paid additions from seller-included costs.
    4. Report results including the total landed cost, unit cost, and a full breakdown of financial responsibility.

    Frameworks & tools

    This skill utilizes a Python 3 based calculation engine (landed_cost.py) and references standard ICC Incoterms 2020 definitions. It operates entirely offline without external API dependencies.

    Why this beats prompting it yourself

    LLMs frequently hallucinate cost responsibilities for complex terms like DPU or CIP. This skill uses a deterministic script to ensure calculations follow strict maritime trade logic and two-decimal currency rounding.

    Use cases

    • Compare a DDP quote against an FOB quote to find the cheapest total path.
    • Calculate the unit landed cost for a new 500-unit import shipment.
    • Audit shipping invoices to ensure the seller isn't billing for buyer-responsible terminal charges.
    • Estimate total capital requirements for cargo clearing customs.

    Known limitations

    Does not perform live currency conversion. Requires all inputs in a single currency. It does not provide HS code classification or legal advice on maritime disputes.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Does not perform live currency conversion. Operates on a single-currency basis only. Does not handle customized contract riders or specific port-level tariff variations.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python

    Permissions

    Terminal / Shell
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill uses a deterministic Python-based engine rather than LLM reasoning, ensuring zero hallucinations for complex Incoterms like DPU or CIP where standard AI often fails at cost-allocation logic.

    You receive the core `landed_cost.py` calculation engine, documentation on how to integrate it with your AI agent, and a schema for mapping shipping line items to the 11 Incoterms.

    The skill is currency-agnostic, meaning it will calculate any figures provided as long as they are in a single, consistent currency; it does not perform real-time FX conversions.

    Setup is straightforward: you provide your AI agent with the Python script as a tool or action, allowing the agent to pass shipment data to the engine and receive a structured cost breakdown.

    The engine is built on the ICC Incoterms 2020 rules, the current global standard; if the ICC releases new rules in the future, customers will be notified of available version updates.

    No, this engine focuses strictly on financial cost allocation and landed cost totals; it assumes you already have your HS codes and duty percentages ready to be inputted.

    New in Workflow Automation