commodity-analysis
ما الذي تفعله
تساعد هذه المهارة الوكيل على تحليل السلع، مثل النفط الخام والذهب والنحاس، من عدة زوايا. وهي موجهة للمستثمرين والمحللين الذين يريدون رؤية منظمة لأسواق السلع.
متى تستخدمها
- ✓عندما تريد فهم توازن العرض والطلب للنفط الخام.
- ✓عندما تريد تحليل احتمالات تحرك الذهب أو النحاس وفق الظروف الاقتصادية.
- ✓عندما تريد فحص هيكل العقود الآجلة أو دورات المخزون أو الأنماط الموسمية.
رابط المهارة
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/commodity-analysis/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حلّل سوق النفط الخام باستخدام بيانات العرض والطلب والمخزون، وأخبرني بالرؤية الاتجاهية وما الذي قد يغيّرها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
ينظر الوكيل إلى مؤشرات جانب العرض وجانب الطلب، وعوامل التسعير، ودورات المخزون، وشكل منحنى العقود الآجلة. ثم يحوّل ذلك إلى رؤية اتجاهية يمكن اختبارها بأدوات الاختبار الرجعي.
المحتوى التقني (ملف 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
- آخر تحديث
- 1/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
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 للسكربتات.