OpenParable
Skip to content
← Back to skills

Commodity Profile

Research
commodity-profile

Commodity Profile 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.

Generate comprehensive one-page commodity profiles with production, trade, risk, research, policy, and web intelligence data

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/commodity-profile/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/commodity-profile, 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.

Commodity Profile Generator

Generate comprehensive commodity profiles by orchestrating calls to multiple mineral-claw skills. Profiles cover production data (BGS), trade flows (Comtrade), supply chain risk metrics, recent research, export restriction policies, and web intelligence from news/blog/government sources.

Usage

Full profile:

python3 {baseDir}/scripts/generate_profile.py --commodity "Lithium"

Select sections:

python3 {baseDir}/scripts/generate_profile.py --commodity "Cobalt" --sections production,risk,intel

JSON output:

python3 {baseDir}/scripts/generate_profile.py --commodity "Rare earths" --format json

Parameters

ParameterDescriptionDefault
--commodityCommodity name (BGS naming)Required
--yearTarget yearlatest available
--sectionsComma-separated sections: production, trade, risk, research, policy, intelall
--intel-max-resultsMax web-intel records to process20
--formatOutput format: summary, jsonsummary

Profile Sections

SectionData SourceDescription
productionbgs-productionTop producers, global output, rankings
tradecomtrade-tradeImport/export flows, major partners
risksupply-chain-analysisHHI, NIR, top-3 share, trend
researchliterature-meta-searchRecent publications, citation leaders
policyexport-restrictionsActive restrictions, policy changes
intelminerals-news-monitor + minerals-gov-monitor + minerals-web-ingestRecent web signals, policy tags, high-confidence findings

Examples

# Full lithium profile
python3 {baseDir}/scripts/generate_profile.py --commodity "Lithium"

# Cobalt production, risk, and web-intel
python3 {baseDir}/scripts/generate_profile.py --commodity "Cobalt" --sections production,risk,intel

# Graphite profile in JSON
python3 {baseDir}/scripts/generate_profile.py --commodity "Graphite" --format json --year 2022

Notes

  • Orchestrates multiple skill scripts (may take 30-90 seconds)
  • Some sections may fail if API keys are not set (warnings printed to stderr)
  • Trade section requires UNCOMTRADE_API_KEY
  • Research section requires SERPAPI_KEY for Scholar results
  • Intel section requires requests and beautifulsoup4 in the active Python environment
  • Intel ingest can optionally use Firecrawl when FIRECRAWL_API_KEY is set
  • For individual data queries, use source skills directly