Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    COD Fraud Risk Scoring and Return Rate Analysis

    1

    Reduce RTO and fake orders with rules-based COD scoring and SKU-level return rate analytics for E-commerce stores.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    COD Fraud Risk Scoring and Return Rate Analysis

    COD Fraud Risk Scoring and Return Rate Analysis

    Example session with this skill installed

    Score today's cash-on-delivery orders for fraud and refusal risk using our past order history, and tell me which ones to call before shipping.

    • Read your context and instructions
    • Compiled the cod fraud risk

    I ran the bundled script from the returns-and-fraud-signals skill and reviewed its findings.

    Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.

    Script output

    6 orders scored: high 2, medium 1, low 3 (history for 3 phones)
    
     70 HIGH   order 7002 +880181****678 total 9800.0
          +15 first order, value 9800 >= 3000
          +20 name looks like a test or fake entry ('test test')
          +15 address has only 3 characters
          +10 disposable email domain
          +10 6 items in one order
          -> call to confirm; ask for the delivery charge in advance (bKash/Nagad) or hold
    
     70 HIGH   order 7006 +880161****678 total 1100.0
          +50 2 earlier refused/returned delivery(ies)
          +20 delivery success 1/3
          -> call to confirm; ask for the delivery charge in advance (bKash/Nagad) or hold
    
     40 MEDIUM order 7005 (invalid) total 900.0
          +40 phone is missing or not a valid mobile number
          -> confirm by SMS/WhatsApp or a call before handing to the courier
    
     15 LOW    order 7003 +880191****678 total 4500.0
          +15 2 orders from this phone within 24 h
          -> ship normally
    
     15 LOW    order 7004 +880191****678 total 4500.0
          +15 2 orders from this phone within 24 h
          -> ship normally
    

    Next steps

    1. Call HIGH-risk customers to confirm, or ask for the delivery charge in advance.
    2. Confirm MEDIUM orders by SMS or WhatsApp before handing to the courier.
    3. Feed delivery outcomes back into the history file so scores improve.

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

    About this skill

    High return-to-origin (RTO) rates and fake cash-on-delivery (COD) orders drain margins through wasted shipping fees and inventory lockup. This skill provides a transparent, rules-based scoring system to identify high-risk orders and analyze return patterns without relying on expensive, black-box fraud APIs.

    What it does

    • COD Risk Scoring analyzes current orders against historical delivery data to flag potential refusals before you ship.
    • Serial Returner Detection identifies customers with high refusal or return frequencies to protect store inventory.
    • Return Rate Analytics calculates SKU-level return rates using Wilson lower bounds to ensure small sample sizes do not trigger false alarms.
    • Root Cause Analysis categorizes returns by reason, such as size/fit or transit damage, to pinpoint specific operational fixes.
    • Courier Benchmarking compares delivery success rates across different logistics providers to optimize carrier selection.

    How it works

    1. Data Ingestion reads your raw order exports and courier history CSV files locally.
    2. Rule Execution runs the cod_risk.py script to score open orders based on phone validity, address quality, and order value.
    3. Action Recommendation outputs specific directions for high, medium, and low-risk orders, such as requesting advance delivery charges.
    4. Lifecycle Analysis executes return_rate.py to generate reports on SKUs and districts with significant return issues.

    Frameworks & tools

    The tool is built with Python 3.8+ using the standard library. It operates strictly on CSV exports from platforms like Shopify or WooCommerce, requiring no external API dependencies or database connections.

    Why this beats prompting it yourself

    Generic prompts fail to handle the statistical nuance of small-sample return rates or the complex logic required to cross-reference historical courier success with new orders. This skill uses verified rules and statistical foundations like the Wilson lower bound to ensure your logistics decisions are based on data, not noise.

    Use cases

    • Flagging a first-time customer placing a high-value COD order with a suspicious address.
    • Identifying which specific apparel SKUs need better size charts due to high "fit" returns.
    • Deciding which orders require a confirmation phone call versus an automated SMS.
    • Monitoring if a specific courier's RTO rate is significantly higher than others in the same district.

    Known limitations

    This skill performs analysis on local CSV files and does not automatically cancel orders or send messages. It is not designed to detect credit card chargeback fraud on prepaid orders.


    Open source: saizul/ecommerce-store-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.

    Requires manual CSV exports. Does not detect credit card chargebacks. No automated API integration for order cancellation or messaging. History files are required for delivery success scoring.

    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 1 day ago

    Software
    Python 3.8+

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill identifies high-risk Cash-on-Delivery (COD) orders and provides SKU-level return analytics. It solves the problem of wasted shipping fees and inventory lockup caused by fake orders and frequent returners.

    The skill is built in Python 3.8+ and is designed to work with any AI agent or environment capable of executing Python scripts. It operates locally on CSV exports from platforms like Shopify, WooCommerce, or Magento.

    No, this is a privacy-first tool that runs locally on your machine or agent environment. It processes your raw order and courier CSV files without requiring expensive external API subscriptions or database connections.

    You will receive the core Python scripts (`cod_risk.py` and `return_rate.py`), a comprehensive setup guide, and sample CSV templates to help you format your data correctly for the analysis.

    The skill uses the Wilson lower bound for return rate analytics, a statistical method that prevents "false alarms" on new products with small sales volumes. This ensures you don't mistakenly flag a SKU just because it has one return out of two sales.

    This tool provides data-driven recommendations and risk scores, but it does not have the authority to cancel orders or message customers directly. It acts as an advisory layer to help you or your support team take manual or automated action.

    New in E-commerce