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

NPX Install

npx skill4agent add hubblevision/hubble-data-service-skill skill-router

SKILL.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)

SkillCapabilities
cn-market
Full A-share market: real-time quotes, K-lines, fundamental data, finance, shareholders, market mechanisms, indices, technical indicators
hk-market
Full Hong Kong stock market: real-time quotes, K-lines, fundamental data, Hong Kong Stock Connect, technical indicators
us-market
Full US stock market: real-time quotes, K-lines, fundamental data, finance, market information, technical indicators
crypto-market
Full cryptocurrency market: K-lines, positions, liquidations, funding rates, long-short ratios, CVD, ETFs, market indicators, news, whales, rankings

Granular Skills (Market × Dimension)

SkillMarketDimensionCapabilities
cn-realtime-quote
A-sharesReal-time quotesBatch real-time quotes (securities)
cn-kline
A-sharesK-linesDaily/Weekly/Monthly K-lines (stocks)
cn-fundamental
A-sharesFundamental dataCompany information, PE/PB, stock lists, name change history
cn-market-mechanics
A-sharesMarket mechanismsPrice limits, trading halts/resumptions, IPOs, trading calendars, adjustment factors
cn-index
A-sharesIndicesSSE/SZSE indices, Shenwan industry classification, component stock weights
hk-realtime-quote
Hong Kong stocksReal-time quotesBatch real-time quotes (securities)
hk-kline
Hong Kong stocksK-linesDaily/Weekly/Monthly K-lines (stocks, ⚠️ Use date instead of limit)
hk-fundamental
Hong Kong stocksFundamental dataHong Kong stock lists, trading calendars
hk-connect
Hong Kong stocksHong Kong Stock ConnectTop 10 Hong Kong Stock Connect stocks, daily trading volume, positions
us-realtime-quote
US stocksReal-time quotesBatch real-time quotes (securities)
us-kline
US stocksK-linesDaily K-lines (stocks)
us-fundamental
US stocksFundamental dataUS stock lists, trading calendars
crypto-market
CryptocurrenciesFull dataK-lines, positions, liquidations, funding rates, long-short ratios, CVD, ETFs, indicators, news, whales
crypto-indicators
CryptocurrenciesTechnical indicators27 indicators (exchange + symbol)
cross-market-indicators
Cross-marketTechnical indicators27 indicators (use
market
parameter to distinguish cn/hk/us)

Routing Rules (By Priority)

Step 1: Determine Market

User Intent SignalMarket
Mentions A-shares/Shanghai-Shenzhen/GEM/Beijing Stock Exchange/SSE/SZSE/Shenwan
cn
Mentions specific A-share codes (
600xxx
,
000xxx
,
300xxx
,
688xxx
)
cn
Mentions Hong Kong stocks/HKEX/Hang Seng/Hong Kong Stock Connect/Northbound/Southbound
hk
Mentions specific Hong Kong stock codes (
00xxx.HK
)
hk
Mentions US stocks/NYSE/NASDAQ
us
Mentions specific US stock tickers (
AAPL
,
TSLA
,
GOOGL
...)
us
Mentions BTC/ETH/cryptocurrency/Bitcoin/Ethereum/SOL/contract/funding rate/liquidation/position
crypto
Mentions funds/ETFs (A-shares)
fund
Mentions gold/crude oil/copper/commodities
commodity
Mentions SPX/DJI/global indices
index
Only mentions technical indicator names without specifying marketNeed to ask user for market

Step 2: Determine Dimension → Route to Specific Skill

Dimension SignalRouting Target
Real-time price/current price/quote/market data
*-realtime-quote
K-line/daily/weekly/monthly/trend
*-kline
Company information/PE/PB/turnover rate/stock list
*-fundamental
Price limits/trading halts/resumptions/IPO/trading calendar/adjustment
cn-market-mechanics
Index/SSE/SZSE/Shenwan/component stocks
cn-index
Hong Kong Stock Connect/Northbound Capital/Southbound Holdings
hk-connect
Financial statements/income statement/balance sheet/cash flow statement/dividends
*-finance
(included in market aggregation skills)
RSI/MACD/KDJ/Bollinger Bands/technical indicators
cross-market-indicators
(stocks) or
crypto-indicators
(cryptocurrencies)
Funding rate/liquidation/open interest/OI
crypto-market
Fear & Greed Index/AHR999/GrayScale/ETF inflow
crypto-market

Step 3: Unclear Dimension → Route to Market Aggregation Skill

MarketAggregation Skill
A-shares
cn-market
Hong Kong stocks
hk-market
US stocks
us-market
Cryptocurrencies
crypto-market

Unsupported Markets

MarketHandling
Futures/derivatives (excluding cryptocurrency contracts)Clearly inform users it is not supported yet
OthersClearly 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 one

Rule 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
    POST /api/v2/indicators/batch
    batch interface
  • Cryptocurrency technical indicators: Use
    POST /api/v2/crypto/indicators/batch
    batch interface
  • 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 output

Research Report Generation

cn-realtime-quote ∥ cn-kline ∥ cross-market-indicators → Clustering→Analysis→Assembly

Multi-Stock Comparison (Cross-Market)

cn-realtime-quote (A-share stock)
  ∥ hk-realtime-quote (Hong Kong stock)
  ∥ us-realtime-quote (US stock)
→ Comparative output

Market Overview

cn-index (all indices in parallel)
  → Market summary

Hong Kong Stock Connect Capital Analysis

hk-connect (ggt-top10 + ggt-daily + hold in parallel)
  → Capital flow analysis

BTC Comprehensive Analysis

crypto-market (price + funding-rate + open-interest + liquidation + fear-greed)
  ∥ crypto-indicators (RSI + MACD + BOLL)
→ Comprehensive output

Cryptocurrency Market Overview

crypto-market (fear-greed ∥ ahr999 ∥ btc-dominance ∥ etf-btc-flow ∥ ranking)
  → Market overview summary

Cross-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