analyze-copper-supply-concentration-risk

analyze-copper-supply-concentration-risk is a skill for Claude Code, Codex from fatfingererr/macro-skills. It costs 70 tokens per session (1,776 once invoked), scanned A, original, MIT.

A data-analysis workflow for measuring how concentrated the world's mined copper supply is and whether production is shifting from Chile to countries such as Peru and the Democratic Republic of the Congo.

In plain words
What is it for?
Use it to collect copper-production data, calculate the share held by the largest producers, compare Chile with possible replacement suppliers, and create charts.
Why use it?
It replaces broad claims about copper shortages or dependence with calculations based on country shares, rankings, and changes over time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect copper-production data, calculate the share held by the largest producers, compare Chile with possible replacement suppliers, and create charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatfingererr/macro-skills --skill analyze-copper-supply-concentration-risk
Clone the repo
git clone --depth 1 https://github.com/fatfingererr/macro-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin analyze-copper-supply-concentration-risk/plugin install analyze-copper-supply-concentration-risk after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-copper-supply-concentration-risk

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk/github.svg)](https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk)
Your own site
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-copper-supply-concentration-risk

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-copper-supply-concentration-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01776
Opus 5 $0.00035 $0.00888
Sonnet 5 $0.00014 $0.00355
Haiku 4.5 $0.00007 $0.00178

Measured 12d ago against content hash 6090fad9da05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

analyze-copper-supply-concentration-risk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/copper_concentration_analyzer.py, scripts/fetch_copper_production.py, scripts/visualize_copper_concentration.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyze-copper-supply-concentration-risk/SKILL.md · 173 lines

What it actually says

<essential_principles>

市場敘事必須可量化驗證。三大命題對應三組指標:

命題 核心問題 量化指標
A. 集中度 供應是否過度集中? CR4, CR5, 份額排名
B. 結構衰退 智利是否結構性衰退? 峰值年份、峰值回撤
C. 替代依賴 是否依賴秘魯/DRC? 秘魯+DRC 合計份額 vs 智利份額

注意:由於 MacroMicro 只提供 5 個國家的細分數據,HHI 指標不適用於本分析。

唯一主要來源,使用 Chrome CDP 全自動抓取 Highcharts 圖表數據。

</essential_principles>

輸出兩層分析:

  1. Concentration: 國家份額排名、CR4/CR5
  2. Chile vs Replacers: 智利 vs 新興替代國(Peru + DRC)份額對比

<quick_start>

全自動執行(無需手動操作 Chrome)

Step 1:安裝依賴

pip install requests websocket-client pandas numpy matplotlib

Step 2:一鍵抓取數據(自動啟動/關閉 Chrome)

cd scripts
python fetch_copper_production.py

腳本會自動:

  • 啟動 Chrome 調試模式
  • 等待頁面載入(~40 秒)
  • 提取 Highcharts 數據
  • 儲存到 cache/copper_production.csv
  • 關閉 Chrome

Step 3:生成 Bloomberg 風格視覺化圖表

python visualize_copper_concentration.py

輸出output/copper_concentration.png

</quick_start>

  1. 快速圖表 - 直接生成 Bloomberg 風格集中度圖表
  2. 完整分析 - 1970 年至今的集中度趨勢分析(含數據表)
  3. 智利趨勢 - 智利產量份額與峰值回撤分析
  4. 替代評估 - 秘魯+DRC 替代依賴度分析

請選擇或直接提供分析參數。

路由後,執行對應命令。

<directory_structure>

analyze-copper-supply-concentration-risk/
├── SKILL.md                              # 本文件(路由器)
├── skill.yaml                            # 前端展示元數據
├── scripts/
│   ├── fetch_copper_production.py        # 全自動 CDP 數據爬蟲
│   └── visualize_copper_concentration.py # Bloomberg 風格視覺化
├── cache/
│   ├── copper_production.csv             # 數據快取
│   └── copper_production_cache.json      # 原始 JSON 快取
└── output/
    └── copper_concentration.png          # 輸出圖表

</directory_structure>

<scripts_index>

Script Command Purpose
fetch_copper_production.py python fetch_copper_production.py 全自動 CDP 抓取(自動啟動/關閉 Chrome)
fetch_copper_production.py --force-refresh 強制重新抓取(忽略快取)
fetch_copper_production.py --start-year 1970 指定起始年份
visualize_copper_concentration.py python visualize_copper_concentration.py 生成 Bloomberg 風格圖表
visualize_copper_concentration.py --output path/to/output.png 指定輸出路徑
</scripts_index>

視覺化輸出:Bloomberg 風格銅供應集中度儀表板

包含兩張圖(上下排列):

  1. 國家份額堆疊面積圖:Chile, Peru, DRC, China, US, Others
  2. 智利 vs 新興替代國:Chile vs Peru+DRC 份額對比,標記交叉點

配色:Bloomberg 深色主題

  • 背景: #1a1a2e
  • Chile: #ff6b35 (橙紅)
  • Peru: #00bfff (天藍)
  • DRC: #00ff88 (綠)
  • Peru+DRC: #00d4aa (青綠)

快速繪圖

cd scripts
python visualize_copper_concentration.py

輸出路徑output/copper_concentration.png

<output_example> 2023 年關鍵指標

國家 份額
Chile 23.5%
Peru + DRC 25.2%
China 7.5%
US 5.0%

關鍵發現

  • 智利份額峰值:37.2% (2004)
  • 智利當前份額:23.5% (2023)
  • 峰值回撤:13.7pp
  • 2023 年 Peru+DRC 首次超越智利(份額逆轉) </output_example>

<success_criteria> 分析成功時應產出:

  • 數據已從 MacroMicro 全自動抓取並快取
  • 國家份額排名(Chile, Peru, DRC, China, US, Others)
  • 智利峰值年份與回撤分析
  • 秘魯+DRC 替代趨勢
  • Bloomberg 風格視覺化圖表
  • 明確標註數據來源 </success_criteria>
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 173 lines · 70 tokens per session scan A 6090fad9da05

Subscribe to this mod's changes

analyze-copper-supply-concentration-risk is a skill published in the GitHub repository fatfingererr/macro-skills (3 stars, last pushed 7mo ago), licensed MIT. It adds 70 tokens to every session and 1,776 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens

reading-receipt

An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.

kazukinagata/shinkoku · 64 tokens