market-regime
Analyzes financial market regimes to identify trends, volatility, and shifts in asset classes.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o market-regime.zip https://jpskill.com/download/22213.zip && unzip -o market-regime.zip && rm market-regime.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22213.zip -OutFile "$d\market-regime.zip"; Expand-Archive "$d\market-regime.zip" -DestinationPath $d -Force; ri "$d\market-regime.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
market-regime.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
market-regimeフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
market-regime
Purpose
This skill analyzes financial market regimes to detect trends, volatility, and shifts in asset classes like stocks, bonds, or cryptocurrencies. It processes historical data to classify regimes (e.g., bull, bear, sideways) and provides actionable insights for trading or risk management.
When to Use
Use this skill when you need to evaluate market conditions for decision-making, such as before executing trades, assessing portfolio risk, or building predictive models. Apply it in volatile markets, during economic events, or for backtesting strategies. Avoid if you lack historical data access, as it requires at least 1 year of price data.
Key Capabilities
- Identifies market regimes using statistical methods like moving averages and Bollinger Bands.
- Analyzes volatility with metrics such as standard deviation or VIX equivalents.
- Detects trend shifts by comparing short-term vs. long-term indicators.
- Supports multiple asset classes via APIs or data feeds (e.g., Yahoo Finance, Alpha Vantage).
- Outputs regime classifications, volatility scores, and regime duration forecasts.
Usage Patterns
Invoke this skill via CLI for quick analysis or integrate it into Python scripts for automated workflows. Always provide asset symbols and time periods. For CLI, use synchronous calls; for API, handle asynchronous responses. Configure with a JSON file for custom parameters, e.g., set thresholds for volatility detection.
To run a basic analysis:
- Set environment variable for authentication:
export OPENCLAW_API_KEY=your_api_key_here. - Pass data sources via flags or config files.
- Chain with other skills, like economic-indicators, for combined insights.
Common Commands/API
Use the OpenClaw CLI or REST API for interactions. Authentication requires the $OPENCLAW_API_KEY environment variable.
-
CLI Command:
openclaw market-regime analyze --asset AAPL --period 90d --metric volatility- Flags:
--asset(required, e.g., stock symbol),--period(e.g., "30d" for 30 days),--metric(e.g., "volatility" or "trend"). - Output: JSON with regime type, volatility score, and key metrics.
- Flags:
-
API Endpoint: POST to
https://api.openclaw.ai/v1/market-regime/analyze- Request body: JSON like
{"asset": "BTC-USD", "period": "1y", "metrics": ["volatility", "trends"]} - Response: 200 OK with JSON payload, e.g.,
{"regime": "bull", "volatility": 0.15}. - Headers: Include
Authorization: Bearer $OPENCLAW_API_KEY.
- Request body: JSON like
Code snippet for Python integration:
import requests
api_key = os.environ.get('OPENCLAW_API_KEY')
response = requests.post('https://api.openclaw.ai/v1/market-regime/analyze',
headers={'Authorization': f'Bearer {api_key}'},
json={'asset': 'GOOGL', 'period': '180d'})
print(response.json()['regime']) # Outputs e.g., 'bear'
Config format: Use a YAML file for advanced settings, e.g.,
asset: SPY
period: 365d
metrics:
- volatility
- trends
thresholds:
volatility_high: 0.2
Integration Notes
Integrate with other OpenClaw skills by piping outputs or using shared data models. For example, combine with trading-strategies skill for automated alerts. Ensure data consistency by using standard formats like OHLCV (Open, High, Low, Close, Volume). If using external data, map it to the skill's expected schema (e.g., CSV with columns: date, open, high, low, close). Test integrations in a sandbox environment first. For web apps, use webhooks to receive regime updates.
Error Handling
Handle errors by checking HTTP status codes or CLI exit codes. Common errors:
- 401 Unauthorized: Verify
$OPENCLAW_API_KEYis set and valid. - 400 Bad Request: Ensure JSON payload is correctly formatted (e.g., valid asset symbol).
- 429 Too Many Requests: Implement retry logic with exponential backoff.
In code, use try-except blocks:
try:
response = requests.post(...) # As above
response.raise_for_status()
except requests.exceptions.HTTPError as err:
print(f"Error: {err.response.status_code} - {err.response.text}")
# Retry or log the error
If data fetch fails (e.g., invalid period), the skill returns a specific error code; parse the response for details like "ERR_INVALID_PERIOD".
Concrete Usage Examples
-
Example 1: Analyze Stock Volatility
- Task: Check if Apple (AAPL) is in a high-volatility regime over the last 60 days.
- Command:
openclaw market-regime analyze --asset AAPL --period 60d --metric volatility - Expected Output: JSON like
{"regime": "high_volatility", "score": 0.25}. Use this to trigger a sell alert in a trading bot.
-
Example 2: Identify Crypto Trends
- Task: Detect trend shifts for Bitcoin (BTC-USD) over the past year.
- API Call: POST to
/v1/market-regime/analyzewith body{"asset": "BTC-USD", "period": "1y", "metrics": ["trends"]} - Code Snippet:
response = requests.post(..., json={'asset': 'BTC-USD', 'period': '1y', 'metrics': ['trends']}) trends = response.json()['trends'] # e.g., ['upward_shift_at_2023-06-01'] - Use the output to update a dashboard or adjust investment allocations.
Graph Relationships
- Related to: economic-indicators (depends on for macro data), trading-strategies (provides input for strategy decisions).
- Clusters with: financial (core cluster for this skill).
- Tags overlap: finance, volatility-analysis (shared with risk-assessment skills).