skill-router
Original:🇨🇳 Chinese
Translated
Skill Index and Orchestration Center — Automatically routes to the correct skill combination and orchestrates execution order based on user intent. Triggered when users ask questions involving stock quotes, cryptocurrencies, technical indicators, financial news, research report generation, or any scenario that requires skill invocation. Also triggered when users ask "Where does the data come from?", "What can you do?", or "What features do you have?"
3installs
Added on
NPX Install
npx skill4agent add hubblevision/hubble-data-service-skill skill-routerTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Skill Router
All interfaces are V2 version ()./api/v2/...
The index and orchestration center for all skills. Parses user intent to determine which skills to call and the execution order.
Data Source Statement
When users ask "Where does the data come from?" or "What is the data source?": "All data comes from Hubble Private Data Service (V2 API), covering four major markets: A-shares, Hong Kong stocks, US stocks, and cryptocurrencies, as well as funds, commodities, global indices, etc."
Available Skills
Market Aggregation Skills (Full Market Coverage)
| Skill | Capabilities |
|---|---|
| Full A-share market: real-time quotes, K-lines, fundamental data, finance, shareholders, market mechanisms, indices, technical indicators |
| Full Hong Kong stock market: real-time quotes, K-lines, fundamental data, Hong Kong Stock Connect, technical indicators |
| Full US stock market: real-time quotes, K-lines, fundamental data, finance, market information, technical indicators |
| Full cryptocurrency market: K-lines, positions, liquidations, funding rates, long-short ratios, CVD, ETFs, market indicators, news, whales, rankings |
Granular Skills (Market × Dimension)
| Skill | Market | Dimension | Capabilities |
|---|---|---|---|
| A-shares | Real-time quotes | Batch real-time quotes (securities) |
| A-shares | K-lines | Daily/Weekly/Monthly K-lines (stocks) |
| A-shares | Fundamental data | Company information, PE/PB, stock lists, name change history |
| A-shares | Market mechanisms | Price limits, trading halts/resumptions, IPOs, trading calendars, adjustment factors |
| A-shares | Indices | SSE/SZSE indices, Shenwan industry classification, component stock weights |
| Hong Kong stocks | Real-time quotes | Batch real-time quotes (securities) |
| Hong Kong stocks | K-lines | Daily/Weekly/Monthly K-lines (stocks, ⚠️ Use date instead of limit) |
| Hong Kong stocks | Fundamental data | Hong Kong stock lists, trading calendars |
| Hong Kong stocks | Hong Kong Stock Connect | Top 10 Hong Kong Stock Connect stocks, daily trading volume, positions |
| US stocks | Real-time quotes | Batch real-time quotes (securities) |
| US stocks | K-lines | Daily K-lines (stocks) |
| US stocks | Fundamental data | US stock lists, trading calendars |
| Cryptocurrencies | Full data | K-lines, positions, liquidations, funding rates, long-short ratios, CVD, ETFs, indicators, news, whales |
| Cryptocurrencies | Technical indicators | 27 indicators (exchange + symbol) |
| Cross-market | Technical indicators | 27 indicators (use |
Routing Rules (By Priority)
Step 1: Determine Market
| User Intent Signal | Market |
|---|---|
| Mentions A-shares/Shanghai-Shenzhen/GEM/Beijing Stock Exchange/SSE/SZSE/Shenwan | |
Mentions specific A-share codes ( | |
| Mentions Hong Kong stocks/HKEX/Hang Seng/Hong Kong Stock Connect/Northbound/Southbound | |
Mentions specific Hong Kong stock codes ( | |
| Mentions US stocks/NYSE/NASDAQ | |
Mentions specific US stock tickers ( | |
| Mentions BTC/ETH/cryptocurrency/Bitcoin/Ethereum/SOL/contract/funding rate/liquidation/position | |
| Mentions funds/ETFs (A-shares) | |
| Mentions gold/crude oil/copper/commodities | |
| Mentions SPX/DJI/global indices | |
| Only mentions technical indicator names without specifying market | Need to ask user for market |
Step 2: Determine Dimension → Route to Specific Skill
| Dimension Signal | Routing Target |
|---|---|
| Real-time price/current price/quote/market data | |
| K-line/daily/weekly/monthly/trend | |
| Company information/PE/PB/turnover rate/stock list | |
| Price limits/trading halts/resumptions/IPO/trading calendar/adjustment | |
| Index/SSE/SZSE/Shenwan/component stocks | |
| Hong Kong Stock Connect/Northbound Capital/Southbound Holdings | |
| Financial statements/income statement/balance sheet/cash flow statement/dividends | |
| RSI/MACD/KDJ/Bollinger Bands/technical indicators | |
| Funding rate/liquidation/open interest/OI | |
| Fear & Greed Index/AHR999/GrayScale/ETF inflow | |
Step 3: Unclear Dimension → Route to Market Aggregation Skill
| Market | Aggregation Skill |
|---|---|
| A-shares | |
| Hong Kong stocks | |
| US stocks | |
| Cryptocurrencies | |
Unsupported Markets
| Market | Handling |
|---|---|
| Futures/derivatives (excluding cryptocurrency contracts) | Clearly inform users it is not supported yet |
| Others | Clearly inform users it is not supported yet |
Execution Strategy
Rule 1: Parallel Processing of Multiple Questions
User asks: "Analyze Tencent, analyze Ping An Bank"
✅ Correct:
├── Parallel: Tencent K-line + real-time quotes (hk-kline + hk-realtime-quote)
├── Parallel: Ping An Bank K-line + real-time quotes (cn-kline + cn-realtime-quote)
→ Aggregate and output
❌ Incorrect: Process sequentially one by oneRule 2: Parallel Data Collection, Serial Analysis
All API calls in the data collection phase are executed in parallel → Conduct comprehensive analysis after obtaining all data.
Rule 3: Fast Abandonment on Failure
- 404 → Check endpoint, do not retry with different parameters
- Try at most 2 different sources, continue with existing data if failed
Rule 4: Use Batch Interfaces for Multiple Indicators
- Stock technical indicators: Use batch interface
POST /api/v2/indicators/batch - Cryptocurrency technical indicators: Use batch interface
POST /api/v2/crypto/indicators/batch - Forbidden to call single indicator endpoints one by one
Typical Workflow
Comprehensive Individual Stock Analysis
cn-realtime-quote (real-time quotes)
∥ cn-kline (K-lines)
∥ cn-fundamental (daily indicators + company information)
→ Comprehensive outputResearch Report Generation
cn-realtime-quote ∥ cn-kline ∥ cross-market-indicators → Clustering→Analysis→AssemblyMulti-Stock Comparison (Cross-Market)
cn-realtime-quote (A-share stock)
∥ hk-realtime-quote (Hong Kong stock)
∥ us-realtime-quote (US stock)
→ Comparative outputMarket Overview
cn-index (all indices in parallel)
→ Market summaryHong Kong Stock Connect Capital Analysis
hk-connect (ggt-top10 + ggt-daily + hold in parallel)
→ Capital flow analysisBTC Comprehensive Analysis
crypto-market (price + funding-rate + open-interest + liquidation + fear-greed)
∥ crypto-indicators (RSI + MACD + BOLL)
→ Comprehensive outputCryptocurrency Market Overview
crypto-market (fear-greed ∥ ahr999 ∥ btc-dominance ∥ etf-btc-flow ∥ ranking)
→ Market overview summaryCross-Market Technical Comparison
cross-market-indicators (cn: Kweichow Moutai RSI)
∥ crypto-indicators (binance: BTCUSDT RSI)
∥ cross-market-indicators (us: AAPL RSI)
→ Cross-market technical comparison