Skill 详情

trade-skills

Financial data router that supports stock analysis.

匹配类型可能匹配已针对 股票分析 审核
来源ppsteven/skills外部来源
报告安装量28仅表示受欢迎程度

使用前先检查

自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。

已保存的来源预览

SKILL.md

这段内容是审核时保存的快照。外部来源才是完整且最新的版本。

---
name: trade-skills
description: Data source router for accessing Chinese financial market data. Routes users to appropriate data skill (akshare-data for stocks/bonds/funds/macro, tianqin-data for futures). Provides comprehensive data resource table showing what data each skill provides and which APIs to call.
---

# Trade Skills - Data Source Router

Router skill for managing access to multiple financial data sources. Provides a comprehensive mapping of data types to available data skills.

## Function

**Purpose:** Route users to the appropriate data skill based on their data requirements.

**How it works:**
1. **Verify Dependencies** - Check if required skills are installed (akshare-data, tianqin-data)
2. **Auto-Install Missing Skills** - Install any missing dependencies automatically
3. User requests specific financial data
4. Identify data type and asset class from request
5. Route to corresponding data skill (see Data Resources Table below)
6. User invokes the routed skill with appropriate parameters

---

## Dependency Management

**Required Skills:**
- `akshare-data` - For stocks, bonds, funds, macroeconomic data
- `tianqin-data` - For China futures market data

### Auto-Installation Process

**IMPORTANT:** Before routing any user request, verify dependencies are installed.

```bash
# Check for dependencies in all supported directories
for skill in akshare-data tianqin-data; do
  if [[ ! -d ~/.claude/skills/$skill ]] && \
     [[ ! -d ~/.agents/skills/$skill ]] && \
     [[ ! -d ~/.cline/skills/$skill ]]; then
    echo "Missing: $skill - Installing..."
    npx skills add https://github.com/PPsteven/skills --yes --global
    break  # Install once adds all skills
  fi
done
```

**Verification Checklist:**
- [ ] Check `~/.claude/skills/` (Claude Code)
- [ ] Check `~/.agents/skills/` (Codex)
- [ ] Check `~/.cline/skills/` (Cline)
- [ ] If any dependency missing, run: `npx skills add https://github.com/PPsteven/skills --yes --global`
- [ ] Verify installation: `ls ~/.claude/skills/{akshare-data,tianqin-data}`

**Installation command:**
```bash
# This installs all skills from the repository globally
npx skills add https://github.com/PPsteven/skills --yes --global
```

**Post-Installation Verification:**
```bash
# Verify both dependencies are available
test -d ~/.claude/skills/akshare-data && echo "✅ akshare-data" || echo "❌ akshare-data missing"
test -d ~/.claude/skills/tianqin-data && echo "✅ tianqin-data" || echo "❌ tianqin-data missing"
```

---

## Data Resources Table

Complete mapping of data types to data skills and APIs.

### Data Source 1: akshare-data

AKShare provides comprehensive Chinese financial market data.

| Data Type | Data Category | APIs | Use Case |
|---|---|---|---|
| **Stocks** | Equities | stock_zh_a_hist, stock_zh_a_daily | Historical daily prices, technical analysis |
| **Stock Indices** | Indices | index_zh_a_hist, index_zh_a_daily | Index performance, components |
| **Bonds** | Fixed Income | bond data APIs | Yields, credit spreads, maturity |
| **Interest Rates** | Fixed Income | interest rate APIs | LPR, deposit/loan rates, yield curves |
| **Mutual Funds** | Funds | fund_public APIs | Fund data, ratings, performance |
| **Hedge Funds** | Funds | fund_private APIs | Private fund data |
| **Commodities** | Derivatives | futures APIs, spot APIs | Commodity futures, spot prices |
| **Options** | Derivatives | option APIs | Options contracts, Greeks |
| **Forex** | FX & International | fx_rate APIs | Currency pairs, exchange rates |
| **Hong Kong Stocks** | FX & International | hk_stock APIs | Hong Kong market data |
| **GDP** | Macroeconomic | macro_china_gdp | Economic growth |
| **CPI/PPI** | Macroeconomic | macro_china_cpi | Inflation, price indices |
| **Production** | Macroeconomic | macro_china_industrial | Industrial production |
| **Energy** | Macroeconomic | energy APIs | Oil, coal, natural gas |
| **Technical Indicators** | Tools | tool APIs | Moving averages, RSI, MACD |
| **Bank Dat
在 GitHub 阅读完整来源 (打开外部页面)
相关上下文

相关工作