OpenParable
Skip to content
← Back to skills

Export Restrictions

Research
export-restrictions

Export 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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

ParameterDescriptionDefault
--commodityCommodity name to search for-
--countryCountry name to search for-
--queryFree-text search across policy documents-
--formatOutput format: summary, detailed, jsonsummary

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-trade instead