duty
Skill0 starsChanged 8 months agoMITView on GitHub
Calculate customs duties, taxes, MPF, HMF, and landed cost for imports using AskRosetta. Use when a user needs duty rates, tariff calculations, or total landed cost.
- Reads credentials
- Sends data out
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use the calculate_duty MCP tool with HTS code, value, and origin country.
- Very specific: line 21
If no HTS code is provided, first classify the product using classify_hts, then calculate duty.
- Distinctive: line 23
If MCP is unavailable, call the API:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Duty Calculator
Calculate complete customs duty breakdown including base duty, MPF, HMF, Section 301/IEEPA tariffs, FTA savings, and total landed cost.
When to Use
- User asks "what's the duty on...?"
- User needs landed cost for a shipment
- User wants to compare duty rates across origins
How It Works
Use the calculate_duty MCP tool with HTS code, value, and origin country.
If no HTS code is provided, first classify the product using classify_hts, then calculate duty.
If MCP is unavailable, call the API:
curl -s -X POST "https://api.askrosetta.ai/api/v1/duty" \
-H "Content-Type: application/json" \
-H "X-API-Key: ${ASKROSETTA_API_KEY}" \
-d '{
"hts_code": "<code>",
"declared_value": <number>,
"country_of_origin": "<country>",
"transport_mode": "<ocean|air|truck>"
}'Important: Temporal Tariffs
Duty rates change. Ask for the arrival date if the user has a specific shipment — Section 301, IEEPA, and safeguard tariffs have effective dates.
Response Format
Present as a duty breakdown table:
| Component | Amount |
| Declared Value | $X,XXX.XX |
| Base Duty (X.X%) | $XXX.XX |
| Section 301 (China) | $XXX.XX |
| MPF (19 CFR 24.23) | $XX.XX |
| HMF (26 USC 4461) | $XX.XX |
| FTA Savings | -$XX.XX |
| Total Duty & Fees | $X,XXX.XX |
| Landed Cost | $X,XXX.XX |
Note: Landed cost = declared value + duties + fees. Does NOT include freight, insurance, or brokerage fees.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

