Agent skill

Minerals Viz

by lamm-mit in lamm-mit/scienceclaw

Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series

Apache-2.0Auto-check passedData & Analytics

Install Minerals Viz

skills CLI
$ npx skills add lamm-mit/scienceclaw --skill minerals-viz -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lamm-mit/scienceclaw minerals-viz --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lamm-mit/scienceclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/minerals-viz .claude/skills/minerals-viz && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
minerals-viz
GitHub stars
246
Token cost
~711 tokens
SKILL.md length
185 words
Files
2 (incl. scripts)
Skills in repo
86
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series

  • Tasks that involve Forecasting and time series
  • SKILL.md covers Usage, Parameters, Chart Types and USGS Commodity Codes, plus 2 more sections
  • Runs Python scripts from its folder; calls python3
  • Tasks that involve Data visualization

What it does

Minerals Viz is an agent skill from lamm-mit/scienceclaw. Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/generate_chart.py`).

It sits in Data & Analytics, covering Forecasting and time series and Data visualization. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Forecasting and time series
  • Tasks that involve Data visualization

Example prompts

  • “/minerals-viz”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ab9aba1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Minerals Viz loads about 711 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 185 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~711

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from lamm-mit/scienceclaw at commit ab9aba1, republished under its Apache-2.0 licence (© lamm-mit). 185 words, ~711 tokens.

Download SKILL.mdSave it as .claude/skills/minerals-viz/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
minerals-viz
description
Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series

Minerals Visualization

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.

Usage

World production chart:
bash
python3 {baseDir}/scripts/generate_chart.py --chart-type production --commodity lithi
Time series:
bash
python3 {baseDir}/scripts/generate_chart.py --chart-type timeseries --commodity cobal
Import reliance:
bash
python3 {baseDir}/scripts/generate_chart.py --chart-type import-reliance --commodity raree
Custom output:
bash
python3 {baseDir}/scripts/generate_chart.py --chart-type production --commodity lithi --output lithium_prod.png --format png

Parameters

ParameterDescriptionDefault
--chart-typeChart type: production, timeseries, import-relianceRequired
--commodityUSGS commodity code (e.g., lithi, cobal, raree, graph, nicke)Required
--outputOutput file pathauto-generated
--formatImage format: png, svgpng
--top-nNumber of countries in production chart10

Chart Types

TypeDescriptionData Source
productionHorizontal bar chart of top producersUSGS world production
timeseriesLine chart of production over timeUSGS salient statistics
import-relianceNIR bar chart with threshold lineUSGS salient statistics

USGS Commodity Codes

CodeCommodityCodeCommodity
lithiLithiumcobalCobalt
rareeRare EarthsgraphGraphite
nickeNickelmangaManganese
galliGalliumgermaGermanium
coppeCoppertungsTungsten

Examples

bash
# 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

Notes

  • Requires matplotlib (install with: pip install matplotlib)
  • USGS data files must be present in cmm-data data directory
  • Output defaults to current directory with auto-generated filename
  • SVG format recommended for publications and reports
  • For raw data access, use the minerals-data skill

© lamm-mit, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/minerals-viz of lamm-mit/scienceclaw.

  • SKILL.md
  • scripts/generate_chart.py

Open the folder on GitHubat commit ab9aba1

Compare with similar skills

Minerals Viz next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Minerals Viz compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Minerals Viz this skilllamm-mit/scienceclaw246—~711Automated safety check: PassApache-2.0
Chart Imagezebbern/claude-code-guide4.7k—~2.7kAutomated safety check: PassMIT
Tuftearef-vc/tufte-claude-skill307—~1.3kAutomated safety check: PassMIT
Advanced Data VisualizationHack23/cia239—~1.5kAutomated safety check: PassApache-2.0
Scientific Toolkit SkillzLanqing/codex-claude-academic-skills4.7k—~1.2kAutomated safety check: PassMIT
Chem Nmr Analysislearningmatter-mit/AtomisticSkills176—~2.3kAutomated safety check: PassMIT

Similar skills

  • Chart Image

    zebbern/claude-code-guide

    Generate publication-quality PNG chart images from data, supporting line, bar, area, candlestick, pie, and heatmap charts.

    4.7k GitHub stars~2.7k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Tufte

    aref-vc/tufte-claude-skill

    Apply Edward Tufte's principles to any data visualization, chart, dashboard, or infographic.

    307 GitHub stars~1.3k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed
  • Advanced chart types, D3.js/Vaadin Charts patterns, political data visualization, time series analysis

    239 GitHub stars~1.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Scientific Toolkit Skill

    zLanqing/codex-claude-academic-skills

    Research computing toolkit for optoelectronic information science and engineering, MATLAB/Octave, Python scientific analysis, signal processing, image processing, statistics, simulation…

    4.7k GitHub stars~1.2k tokensUpdated 4 mo ago
    Data & AnalyticsAuto-check passed
  • Chem Nmr Analysis

    learningmatter-mit/AtomisticSkills

    Scripts for Wasserstein deconvolution of 1H NMR mixture spectra against reference spectra, reaction product prediction, time-series kinetics, and spectral plotting.

    176 GitHub stars~2.3k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • D3js Visualization

    aiskillstore/marketplace

    Professional data visualization creation using D3.js with support for interactive charts, custom visualizations, animations, and responsive design.

    433 GitHub stars~2.9k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from lamm-mit/scienceclaw

All 86 skills in this repo
  • Fred Economic Data

    lamm-mit/scienceclaw

    Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources.

    246 GitHub starsUsed in 4 repos~3k tokens
    Auto-check passed
  • Drug Research

    lamm-mit/scienceclaw

    Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.

    246 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Imaging Data Commons

    lamm-mit/scienceclaw

    Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index.

    246 GitHub starsUsed in 5 repos~11k tokens
    Auto-check passed
  • Rowan

    lamm-mit/scienceclaw

    Cloud-based quantum chemistry platform with Python API. An agent skill from lamm-mit/scienceclaw.

    246 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check: warnings
  • Infographics

    lamm-mit/scienceclaw

    Create professional infographics using Nano Banana Pro AI with smart iterative refinement.

    246 GitHub starsUsed in 6 repos~4.4k tokens
    Auto-check: notes
  • Disease Research

    lamm-mit/scienceclaw

    Generate comprehensive disease research reports using 100+ ToolUniverse tools.

    246 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Minerals Viz

What does Minerals Viz do?

Generate charts (PNG/SVG) for critical minerals data — production, trade, import reliance, and time series. Minerals Viz is an agent skill from lamm-mit/scienceclaw.

When should I use Minerals Viz?

Minerals Viz fits situations like: tasks that involve Forecasting and time series; tasks that involve Data visualization.

How do I install Minerals Viz in Claude Code?

Run `npx skills add lamm-mit/scienceclaw --skill minerals-viz -a claude-code`. Or copy the skill folder (skills/minerals-viz in lamm-mit/scienceclaw) into .claude/skills/minerals-viz in your project. Claude Code loads it when a task matches its description.

How do I install Minerals Viz in Codex?

Run `npx skills add lamm-mit/scienceclaw --skill minerals-viz -a codex`. Or copy the skill folder (skills/minerals-viz in lamm-mit/scienceclaw) into .agents/skills/minerals-viz in your project. Codex loads it when a task matches its description.

Can I use Minerals Viz in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lamm-mit/scienceclaw --skill minerals-viz -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/minerals-viz, .gemini/skills/minerals-viz, .github/skills/minerals-viz and .opencode/skills/minerals-viz in your project.

What does Minerals Viz need to run?

Going by SKILL.md and its folder, Minerals Viz needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Minerals Viz access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Minerals Viz safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Minerals Viz use?

Minerals Viz is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Minerals Viz use?

About 711 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Minerals Viz?

Skills that share tags, products or a category with Minerals Viz: Chart Image (zebbern/claude-code-guide, 4.7k stars), Tufte (aref-vc/tufte-claude-skill, 307 stars), Advanced Data Visualization (Hack23/cia, 239 stars) and Scientific Toolkit Skill (zLanqing/codex-claude-academic-skills, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Minerals Viz?

lamm-mit (a GitHub user) maintains it in lamm-mit/scienceclaw, which has 246 GitHub stars. The repository holds 86 skills in this directory. The repository was last updated on August 21, 2026.

Source: lamm-mit/scienceclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.