- Home
- Skills
- E-commerce
- COD Fraud Risk Scoring and Return Rate Analysis
Works with the AI Agents you already use
COD Fraud Risk Scoring and Return Rate Analysis
Reduce RTO and fake orders with rules-based COD scoring and SKU-level return rate analytics for E-commerce stores.
$7
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
- Call HIGH-risk customers to confirm, or ask for the delivery charge in advance.
- Confirm MEDIUM orders by SMS or WhatsApp before handing to the courier.
- 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
- Data Ingestion reads your raw order exports and courier history CSV files locally.
- Rule Execution runs the
cod_risk.pyscript to score open orders based on phone validity, address quality, and order value. - Action Recommendation outputs specific directions for high, medium, and low-risk orders, such as requesting advance delivery charges.
- Lifecycle Analysis executes
return_rate.pyto 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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+