commodity-analysis
하는 일
이 스킬은 원유, 금, 구리 같은 원자재를 여러 측면에서 분석하도록 에이전트를 돕습니다. 원자재 시장을 체계적으로 보려는 투자자와 분석가를 위한 스킬입니다.
사용하는 경우
- ✓원유의 수요와 공급 균형을 알고 싶을 때.
- ✓경제 상황에 따라 금이나 구리 가격이 어떻게 움직일지 분석하고 싶을 때.
- ✓선물 구조, 재고 주기 또는 계절성 패턴을 확인하고 싶은 경우.
스킬 링크
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/commodity-analysis/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“원유 시장을 공급, 수요, 재고 데이터로 분석해 주시고, 방향성 관점과 그 관점을 바꿀 수 있는 요인을 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 공급 측과 수요 측 지표, 가격 결정 요인, 재고 주기, 선물 곡선의 모양을 살펴봅니다. 그다음 이를 백테스팅 도구로 검증할 수 있는 방향성 관점으로 정리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Commodity Analysis
Overview
Analyze commodities from four dimensions — supply-demand balance, pricing model, inventory cycle, and futures structure — and output directional signals suitable for backtesting. Focuses on crude oil (global pricing anchor), gold (safe haven + inflation hedge), and copper (economic barometer).
Core Concepts
1. Crude Oil Supply-Demand Balance
Key supply-side variables:
| Variable | Data Source | Frequency | Direction of Impact |
|---|---|---|---|
| OPEC production | OPEC monthly report | Monthly | Production cuts → oil price ↑ |
| US shale output | EIA weekly report | Weekly | Higher output → oil price ↓ |
| Rig count (Baker Hughes) | Baker Hughes | Weekly | Leads production by 3-6 months |
| Strategic Petroleum Reserve (SPR) | EIA | Weekly | SPR release → short-term oil price ↓ |
Key demand-side variables:
- IEA global oil demand forecast (quarterly)
- China crude imports (customs monthly data)
- US gasoline demand (EIA weekly report, implied demand)
- Global PMI (leads demand by 1-2 months)
Supply-demand balance signals:
# Simplified supply-demand judgment
if opec_compliance > 90% and us_rig_count_declining:
supply_signal = "tight" # bullish for oil
elif opec_compliance < 80% and us_production_rising:
supply_signal = "loose" # bearish for oil
if global_pmi > 50 and china_import_yoy > 5%:
demand_signal = "strong" # bullish for oil
elif global_pmi < 48 and china_import_yoy < 0:
demand_signal = "weak" # bearish for oil
2. Gold Pricing Framework
Four-factor model:
| Factor | Weight | Logic | Indicator |
|---|---|---|---|
| Real rates | 40% | Real rates ↓ → lower opportunity cost of holding gold → gold ↑ | 10Y TIPS yield |
| US dollar index | 25% | USD ↓ → gold becomes cheaper in pricing terms → gold ↑ | DXY |
| Safe-haven demand | 20% | Risk ↑ → safe-haven buying → gold ↑ | VIX + geopolitical risk index |
| Central-bank buying | 15% | Central-bank purchases → structural demand support | WGC quarterly report |
Practical rules:
- 10Y TIPS < 0%: strong support for gold (negative real rates mean negative holding cost)
- 10Y TIPS > 2%: pressure on gold (positive real rates reduce attractiveness)
- Correlation between DXY and gold is around -0.6, but not absolute (they both rose in 2022 due to safe-haven demand)
- Central-bank purchases >1000 tons / year (2022-2023 level): long-term structural bullish support
3. Dr. Copper as an Economic Predictor
Copper as a leading indicator:
- YoY copper-price change leads industrial production by about 2-3 months
- Copper / gold ratio is highly positively correlated with the US 10Y Treasury yield (
r > 0.7) - Copper breakout above the prior high confirms economic recovery
Copper fundamental tracking:
| Indicator | Data Source | Threshold |
|---|---|---|
| LME copper inventory | LME daily report | <150k tons = tight |
| SHFE copper inventory | SHFE weekly report | WoW decline >10% = tight |
| Copper concentrate TC/RC | SMM | TC < $30/ton = tight mining supply |
| China copper imports | Customs monthly report | YoY growth >10% = strong demand |
4. Inventory Cycle Analysis
Visible inventory vs hidden inventory:
- Visible inventory: published by exchanges (LME / SHFE / COMEX), transparent and trackable
- Hidden inventory: bonded areas / trader warehouses, opaque but potentially larger
- The true turning point in prices is the turning point in total inventory
Four inventory-cycle stages (using copper as example):
Active restocking (price↑ volume↑) -> Passive restocking (price↓ volume↑) -> Active destocking (price↓ volume↓) -> Passive destocking (price↑ volume↓)
mid bull market late bull market mid bear market late bear / early bull market
Signal mapping:
| Stage | Inventory Direction | Price Direction | Trading Signal |
|---|---|---|---|
| Passive destocking | ↓ | ↑ | Long (best buying point) |
| Active restocking | ↑ | ↑ | Keep long positions |
| Passive restocking | ↑ | ↓ | Close longs (warning) |
| Active destocking | ↓ | ↓ | Short or stay neutral |
5. Futures Premium / Discount Structure
Contango (futures > spot, normal market):
- Supply is abundant, and the market prices in carrying costs (storage + funding)
- Roll yield is negative (
roll yield < 0), unfavorable for long holders - Deep contango (`far month
자주 묻는 질문
어떤 원자재에 초점을 맞추나요?
세계 가격의 기준이 되는 원유, 안전자산이자 인플레이션 헤지인 금, 경기 지표 역할을 하는 구리에 초점을 맞춥니다.
방향을 보장해 주나요?
아닙니다. 결과는 방향성 관점이므로 사용하기 전에 검증하고 검토해야 합니다.
데이터는 어디에서 오나요?
정부와 업계가 발표하는 공개 보고서에서 가져오며, 에이전트가 직접 찾아봅니다.
상세 정보
작성자의 원본 설명
Commodity analysis (oil supply-demand balance / gold pricing / copper as an economic predictor / inventory cycles / futures premium-discount structure / seasonality), generating directional commodity signals.
repo: HKUDS/Vibe-Trading
인기도
- GitHub 스타
- 37k
- 순위
- #7504
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
vibe-trading
37k에이전트에게 백테스트, 팩터 분석, 옵션 가격 결정, 여러 시장의 시장 데이터를 포함하는 완전한 금융 연구 도구 모음을 제공합니다.
adr-hshare
37k에이전트에게 미국 ADR과 홍콩 주식처럼 여러 시장에 상장된 중국 기업의 가격을 비교하는 방법을 보여 줍니다.
akshare
37k에이전트가 API 키 없이 중국과 해외 주식, 선물, 외환, 경제 지표의 무료 시장 데이터를 가져오도록 돕습니다.
alpha-zoo
37k에이전트가 만들어진 주식 팩터 라이브러리를 둘러보고, 선택한 시장에서 팩터 묶음이 수익률을 얼마나 잘 예측하는지 시험하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.