market-environment-analysis — Claude Code skill: global market report
This skill pulls index, forex and commodity data through web search and turns it into a market report. Handy before a trade or for a regular briefing.
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a claude-codeWhat market-environment-analysis does
The skill walks the agent through a fixed sequence. First it searches the web for current index levels (S&P 500, NASDAQ, Dow, Nikkei 225, Shanghai Composite, Hang Seng), currency rates, WTI crude, gold and silver, US Treasury yields and the VIX. Then it reads trend direction, risk appetite, volatility and where capital is rotating between sectors. The output is a report with an executive summary, US, Asian and European sections, forex and commodities, key events and risk factors.
A helper script, scripts/market_utils.py, handles the report header, session times, VIX interpretation and percentage formatting. Install requirements.txt before you run it. The --as-of flag takes an ISO-8601 timestamp with an offset or Z — a bare date is rejected, since Tokyo, London and New York status has to resolve to one instant. Session status accounts for holidays, lunch breaks, daylight saving and early closes.
Web search access is the one hard requirement; there are no API keys to set up. Two references load on demand: references/indicators.md for index levels and technical points, references/analysis_patterns.md for risk-on/risk-off criteria, inter-market correlations and seasonality.
What it helps with
- put together a morning global market briefing
- judge whether the tape is risk-on or risk-off
- see where capital is rotating between sectors
- break down VIX and Treasury yields
- write a market report for clients or personal records
Example prompts for the agent
- analyze the market environment for today
- build a global market report: indices, forex, commodities
- what's the VIX and Treasury yield picture right now
How to install market-environment-analysis
1Skills CLI (Vercel)
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a claude-code2Manually: put the files in place
~/.claude/skills/market-environment-analysis/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/market-environment-analysis/
1Skills CLI (Vercel)
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a codex2Manually: put the files in place
.agents/skills/market-environment-analysis/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a cursor2Manually: put the files in place
.cursor/skills/market-environment-analysis/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install tradermonty/claude-trading-skills market-environment-analysis2Manually: put the files in place
.github/skills/market-environment-analysis/SKILL.md1Skills CLI (Vercel)
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a gemini-cli2Platform CLI
gemini skills install https://github.com/tradermonty/claude-trading-skills --path skills/market-environment-analysisManually: put the files in place
.devin/skills/market-environment-analysis/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about market-environment-analysis
How do I install market-environment-analysis in Claude?
Run npx skills add tradermonty/claude-trading-skills --skill market-environment-analysis -a claude-code. The skill then lands at ~/.claude/skills/market-environment-analysis/SKILL.md.
What does market-environment-analysis do?
It gathers index, forex, commodity, yield and VIX data through web search, then assesses trend, risk sentiment and sector rotation. You get a structured report on global markets.
What do I need to run it?
Web search access for data collection. No API keys. For the helper script, install requirements.txt before running scripts/market_utils.py.
Source text
SKILL.md · MIT
--- name: market-environment-analysis description: Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境. --- # Market Environment Analysis Comprehensive analysis tool for understanding market conditions and creating professional market reports anytime. ## When to Use - When you need a comprehensive overview of global market conditions - Before making trading or investment decisions - For daily/weekly market briefings - When assessing risk-on/risk-off sentiment - For understanding inter-market correlations and sector rotation - When preparing market reports for clients or personal records ## Prerequisites - **WebSearch access**: Required for fetching real-time market data - **No API keys required**: This skill uses web search for data collection - **Optional**: Economic calendar data for event-driven analysis ## Core Workflow ### 1. Initial Data Collection Collect latest market data using web_search tool: 1. Major stock indices (S&P 500, NASDAQ, Dow, Nikkei 225, Shanghai Composite, Hang Seng) 2. Forex rates (USD/JPY, EUR/USD, major currency pairs) 3. Commodity prices (WTI crude, Gold, Silver) 4. US Treasury yields (2-year, 10-year, 30-year) 5. VIX index (Fear gauge) 6. Market trading status (open/close/current values) ### 2. Market Environment Assessment Evaluate the following from collected data: - **Trend Direction**: Uptrend/Downtrend/Range-bound - **Risk Sentiment**: Risk-on/Risk-off - **Volatility Status**: Market anxiety level from VIX - **Sector Rotation**: Where capital is flowing ### 3. Report Structure #### Standard Report Format: ``` 1. Executive Summary (3-5 key points) 2. Global Market Overview - US Markets - Asian Markets - European Markets 3. Forex & Commodities Trends 4. Key Events & Economic Indicators 5. Risk Factor Analysis 6. Investment Strategy Implications ``` ## Script Usage ### market_utils.py Provides common functions for report creation: ```bash # Generate report header python scripts/market_utils.py # Available functions: - format_market_report_header(): Create header - get_market_session_times(): Check trading hours - categorize_volatility(vix): Interpret VIX levels - format_percentage_change(value): Format price changes ``` ## Exchange Calendar and Replay Install `requirements.txt` before using `scripts/market_utils.py`. Its `--as-of` flag requires an offset-bearing ISO-8601 timestamp (or `Z`); a bare date is rejected because Tokyo, London, and New York status must share one unambiguous instant. Session status is holiday-, lunch-break-, DST-, and early-close-aware. ## Reference Documentation ### Key Indicators Interpretation Load `references/indicators.md` when you need: - Important levels for each index - Technical analysis key points - Sector-specific focus areas ### Analysis Patterns Load `references/analysis_patterns.md` when analyzing: - Risk-on/Risk-off criteria - Economic indicator interpretation - Inter-market correlations - Seasonality and market anomalies ## Output Examples ### Quick Summary Version ``` 📊 Market Summary [2025/01/15 14:00] ━━━━━━━━━━━━━━━━━━━━━ 【US】S&P 500: 5,123.45 (+0.45%) 【JP】Nikkei 225: 38,456.78 (-0.23%) 【FX】USD/JPY: 149.85 (↑0.15) 【VIX】16.2 (Normal range) ⚡ Key Events - Japan GDP Flash - US Employment Report 📈 Environment: Risk-On Continues ``` ### Detailed Analysis Version Start with executive summary, then analyze each section in detail. Key clarifications: 1. Current market phase (Bullish/Bearish/Neutral) 2. Short-term direction (1-5 days outlook) 3. Risk events to monitor 4. Recommended position adjustments ## Important Considerations ### Timezone Awareness - Consider all major market timezones - US markets: Evening to early morning (Asian time) - European markets: Afternoon to evening (Asian time) - Asian markets: Morning to afternoon (Local time) ### Economic Calendar Priority Categorize by importance: - ⭐⭐⭐ Critical (FOMC, NFP, CPI, etc.) - ⭐⭐ Important (GDP, Retail Sales, etc.) - ⭐ Reference level ### Data Source Priority 1. Official releases (Central banks, Government statistics) 2. Major financial media (Bloomberg, Reuters) 3. Broker reports 4. Analyst consensus estimates ## Troubleshooting ### Data Collection Notes - Check market holidays (holiday calendars) - Be aware of daylight saving time changes - Distinguish between flash and final data ### Market Volatility Response 1. First organize the facts 2. Reference historical similar events 3. Verify with multiple sources 4. Maintain objective analysis ## Customization Options Adjust based on user's investment style: - **Day Traders**: Intraday charts, order flow focus - **Swing Traders**: Daily/weekly technicals emphasis - **Long-term Investors**: Fundamentals, macro economics focus - **Forex Traders**: Currency correlations, interest rate differentials - **Options Traders**: Volatility analysis, Greeks monitoring ## Resources - `references/indicators.md` - Key market indicators and interpretation guides - `references/analysis_patterns.md` - Risk-on/risk-off criteria and inter-market correlations - `scripts/market_utils.py` - Utility functions for report formatting and market status
© tradermonty · MIT · tradermonty/claude-trading-skills