skills/minerals-viz/SKILL.md
Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series
npx skillsauth add lamm-mit/scienceclaw minerals-vizInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate publication-quality charts for critical minerals data using the cmm_data visualizations module. Supports world production bar charts, production time series, import reliance charts, and multi-commodity comparisons.
python3 {baseDir}/scripts/generate_chart.py --chart-type production --commodity lithi
python3 {baseDir}/scripts/generate_chart.py --chart-type timeseries --commodity cobal
python3 {baseDir}/scripts/generate_chart.py --chart-type import-reliance --commodity raree
python3 {baseDir}/scripts/generate_chart.py --chart-type production --commodity lithi --output lithium_prod.png --format png
| Parameter | Description | Default |
|-----------|-------------|---------|
| --chart-type | Chart type: production, timeseries, import-reliance | Required |
| --commodity | USGS commodity code (e.g., lithi, cobal, raree, graph, nicke) | Required |
| --output | Output file path | auto-generated |
| --format | Image format: png, svg | png |
| --top-n | Number of countries in production chart | 10 |
| Type | Description | Data Source |
|------|-------------|-------------|
| production | Horizontal bar chart of top producers | USGS world production |
| timeseries | Line chart of production over time | USGS salient statistics |
| import-reliance | NIR bar chart with threshold line | USGS salient statistics |
| Code | Commodity | Code | Commodity |
|------|-----------|------|-----------|
| lithi | Lithium | cobal | Cobalt |
| raree | Rare Earths | graph | Graphite |
| nicke | Nickel | manga | Manganese |
| galli | Gallium | germa | Germanium |
| coppe | Copper | tungs | Tungsten |
# Lithium top producers
python3 {baseDir}/scripts/generate_chart.py --chart-type production --commodity lithi --top-n 10
# Cobalt production time series
python3 {baseDir}/scripts/generate_chart.py --chart-type timeseries --commodity cobal --output cobalt_trend.png
# Rare earth import reliance (SVG)
python3 {baseDir}/scripts/generate_chart.py --chart-type import-reliance --commodity raree --format svg
minerals-data skilltools
Onboard and manage Paperclip AI for research-paper knowledge and agent orchestration
development
Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.
testing
Generate a structured scientific PDF report from a JSON description. Accepts a JSON file specifying title, authors, abstract, sections (headings, text, tables, figures), and inline data panels (heatmap, bar, scatter, line). Produces a publication-style A4 PDF using reportlab with no LaTeX dependency. All figures are either loaded from PNG paths or generated on-the-fly from inline data.
development
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.