Skill detail
trade-skills
Financial data router that supports stock analysis.
Inspect before use
Automated review checks relevance, not safety or endorsement. Read the source instructions before using this skill.
SKILL.md
The saved excerpt is a snapshot from review. The external source remains the complete and most current version.
---
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 DatRead the full source on GitHub (opens external page)