Export Restrictions
Researchexport-restrictionsExport Restrictions is an Agent Skill for research published in the lamm-mit/scienceclaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Query OECD export restriction policies on critical raw materials with corpus-search enrichment
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/lamm-mit/scienceclaw/blob/HEAD/skills/export-restrictions/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/export-restrictions, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Export Restrictions on Raw Materials
Query OECD export restriction data and policies on industrial raw materials. Combines structured metadata from the OECD Supply Chain dataset with semantic search over policy documents in the local corpus. Covers 65 commodities across 82 countries from 2009-2023.
Usage
Search by commodity:
python3 {baseDir}/scripts/restrictions_query.py --commodity "lithium"
Search by country:
python3 {baseDir}/scripts/restrictions_query.py --country "China"
Free-text policy search:
python3 {baseDir}/scripts/restrictions_query.py --query "rare earth export ban"
Combined search:
python3 {baseDir}/scripts/restrictions_query.py --commodity "cobalt" --country "Congo" --format json
Parameters
| Parameter | Description | Default |
|---|---|---|
--commodity | Commodity name to search for | - |
--country | Country name to search for | - |
--query | Free-text search across policy documents | - |
--format | Output format: summary, detailed, json | summary |
Examples
# China's restrictions on rare earth exports
python3 {baseDir}/scripts/restrictions_query.py --commodity "rare earths" --country "China"
# All lithium export restrictions
python3 {baseDir}/scripts/restrictions_query.py --commodity "lithium" --format detailed
# Policy text search
python3 {baseDir}/scripts/restrictions_query.py --query "export quota critical minerals"
# JSON output for cobalt restrictions
python3 {baseDir}/scripts/restrictions_query.py --commodity "cobalt" --format json
Notes
- OECD data requires local data files (see cmm-data package)
- Policy text search uses the corpus-search skill (requires PINECONE_API_KEY)
- Coverage: 65 commodities, 82 countries, 2009-2023
- Restriction types include export bans, quotas, licenses, taxes
- For trade flow data, use
comtrade-tradeinstead