longbridge-sector-screener
Sector screening and ranking — filter and rank industry sectors across A-share / HK / US markets by valuation (PE/PB), capital inflow, price performance (1d/5d/20d), and turnover rate. Outputs a ranked sector leaderboard.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
When to use
Trigger when the user asks about:
- Top or bottom performing sectors — "今天哪个行业涨得最多", "最强势板块", "best performing sectors today"
- Sector capital flow ranking — "哪些板块在吸资金", "sectors with net capital inflow"
- Sector valuation screening — "哪些行业PE最低", "low-PE sectors"
- Broad sector overview — "美股各行业今天表现", "A股行业板块排名"
For individual stock anomalies, prefer longbridge-anomaly. For a single stock's capital flow, prefer longbridge-capital-flow. For index constituents, prefer longbridge-constituent.
Workflow
- Identify the target market (A-share / HK / US) from the prompt.
- Select representative sector ETFs or indices for that market:
- A-share: major CSI sector indices (e.g. CSI Banks, CSI Tech, CSI Consumer)
- HK: Hang Seng sector sub-indices or sector ETFs
- US: SPDR sector ETFs (XLK, XLF, XLE, XLV, XLI, XLY, XLP, XLU, XLRE, XLB, XLC)
- Run
longbridge quote on each sector proxy to get 1d / 5d / 20d performance and turnover rate.
- Run
longbridge capital on each sector proxy for net capital inflow.
- Run
longbridge calc-index for PE and PB of each sector proxy.
- Sort and rank by the user's requested criterion; present as a leaderboard table.
CLI
# Sector proxy quote (price change, turnover rate)
longbridge quote <SECTOR_SYMBOL> --format json
# Sector capital flow
longbridge capital <SECTOR_SYMBOL> --format json
# Sector valuation
longbridge calc-index <SECTOR_SYMBOL> --index pe_ttm,pb --format json
# Constituent list of a sector index (if drilling into members)
longbridge constituent <INDEX> --format json
Run longbridge quote --help, longbridge capital --help, and longbridge calc-index --help to verify flags.
Output
A ranked leaderboard table:
| Rank |
Sector |
简体 |
繁體 |
English |
| 1d change |
今日涨跌幅 |
今日漲跌幅 |
1d change |
|
| 5d change |
近5日涨跌幅 |
近5日漲跌幅 |
5d change |
|
| Net capital inflow |
净流入 |
淨流入 |
Net inflow |
|
| PE |
市盈率 |
市盈率 |
PE |
|
| PB |
市净率 |
市淨率 |
PB |
|
| Turnover rate |
换手率 |
換手率 |
Turnover rate |
|
Note: Sector coverage depends on available representative ETFs/indices in Longbridge. Full market-wide sector screening (like Wind or 同花顺) is not supported — the LLM must manually iterate over a curated set of sector proxies.
Error handling
| Situation |
简体回复 |
繁體回覆 |
English reply |
command not found: longbridge |
请先安装 longbridge-terminal |
請先安裝 longbridge-terminal |
Install longbridge-terminal first |
not logged in |
请运行 longbridge auth login |
請執行 longbridge auth login |
Run longbridge auth login |
| Sector proxy not found |
提示该板块代理标的无数据 |
提示該板塊代理標的無數據 |
Sector proxy symbol not found |
| Other stderr |
原样展示,不重试 |
原樣展示,不重試 |
Surface verbatim, do not retry |
MCP fallback
When the CLI is unavailable, fall back to the MCP server. Discover available tools from the MCP server's tool list at runtime.
Related skills
| User asks |
Route to |
| Individual stock anomalies |
longbridge-anomaly |
| Single stock capital flow |
longbridge-capital-flow |
| Index constituents |
longbridge-constituent |
| Market temperature / overall sentiment |
longbridge-market-temp |
| Multi-stock comparison |
longbridge-peer-comparison |
File layout
longbridge-sector-screener/
└── SKILL.md
Prompt-only — no scripts/. Sector proxies are selected in-context based on market and user request. Discover current CLI flags via longbridge <subcommand> --help.
1---2name: longbridge-sector-screener3description: Sector screening and ranking — filter and rank A-share / HK / US industry sectors by valuation (PE/PB), capital inflow, price performance (1d/5d/20d), and turnover rate. Outputs a sector leaderboard. Triggers: "板块筛选", "行业筛选", "强势板块", "弱势板块", "板块排行", "行业排名", "资金流入板块", "涨幅最大板块", "板塊篩選", "行業篩選", "強勢板塊", "弱勢板塊", "板塊排行", "行業排名", "sector screener", "sector filter", "sector ranking", "top sectors", "hot sectors", "capital inflow sectors", "sector scan", "industry ranking", "sector performance", "best sectors today".4license: MIT5---6
7# longbridge-sector-screener
8
9Sector screening and ranking — filter and rank industry sectors across A-share / HK / US markets by valuation (PE/PB), capital inflow, price performance (1d/5d/20d), and turnover rate. Outputs a ranked sector leaderboard.
10
11> **Response language**: match the user's input language — Simplified Chinese / Traditional Chinese / English.
12
13## When to use
14
15Trigger when the user asks about:
16
17- Top or bottom performing sectors — *"今天哪个行业涨得最多"*, *"最强势板块"*, *"best performing sectors today"*
18- Sector capital flow ranking — *"哪些板块在吸资金"*, *"sectors with net capital inflow"*
19- Sector valuation screening — *"哪些行业PE最低"*, *"low-PE sectors"*
20- Broad sector overview — *"美股各行业今天表现"*, *"A股行业板块排名"*
21
22For individual stock anomalies, prefer `longbridge-anomaly`. For a single stock's capital flow, prefer `longbridge-capital-flow`. For index constituents, prefer `longbridge-constituent`.
23
24## Workflow
25
261. Identify the target market (A-share / HK / US) from the prompt.
272. Select representative sector ETFs or indices for that market:
28 - **A-share**: major CSI sector indices (e.g. CSI Banks, CSI Tech, CSI Consumer)
29 - **HK**: Hang Seng sector sub-indices or sector ETFs
30 - **US**: SPDR sector ETFs (XLK, XLF, XLE, XLV, XLI, XLY, XLP, XLU, XLRE, XLB, XLC)
313. Run `longbridge quote` on each sector proxy to get 1d / 5d / 20d performance and turnover rate.
324. Run `longbridge capital` on each sector proxy for net capital inflow.
335. Run `longbridge calc-index` for PE and PB of each sector proxy.
346. Sort and rank by the user's requested criterion; present as a leaderboard table.
35
36## CLI
37
38```bash
39# Sector proxy quote (price change, turnover rate)
40longbridge quote <SECTOR_SYMBOL> --format json
41
42# Sector capital flow
43longbridge capital <SECTOR_SYMBOL> --format json
44
45# Sector valuation
46longbridge calc-index <SECTOR_SYMBOL> --index pe_ttm,pb --format json
47
48# Constituent list of a sector index (if drilling into members)
49longbridge constituent <INDEX> --format json
50```
51
52> Run `longbridge quote --help`, `longbridge capital --help`, and `longbridge calc-index --help` to verify flags.
53
54## Output
55
56A ranked leaderboard table:
57
58| Rank | Sector | 简体 | 繁體 | English |
59|---|---|---|---|---|
60| 1d change | 今日涨跌幅 | 今日漲跌幅 | 1d change |
61| 5d change | 近5日涨跌幅 | 近5日漲跌幅 | 5d change |
62| Net capital inflow | 净流入 | 淨流入 | Net inflow |
63| PE | 市盈率 | 市盈率 | PE |
64| PB | 市净率 | 市淨率 | PB |
65| Turnover rate | 换手率 | 換手率 | Turnover rate |
66
67Note: Sector coverage depends on available representative ETFs/indices in Longbridge. Full market-wide sector screening (like Wind or 同花顺) is not supported — the LLM must manually iterate over a curated set of sector proxies.
68
69## Error handling
70
71| Situation | 简体回复 | 繁體回覆 | English reply |
72|---|---|---|---|
73| `command not found: longbridge` | 请先安装 longbridge-terminal | 請先安裝 longbridge-terminal | Install longbridge-terminal first |
74| `not logged in` | 请运行 `longbridge auth login` | 請執行 `longbridge auth login` | Run `longbridge auth login` |
75| Sector proxy not found | 提示该板块代理标的无数据 | 提示該板塊代理標的無數據 | Sector proxy symbol not found |
76| Other stderr | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
77
78## MCP fallback
79
80When the CLI is unavailable, fall back to the MCP server. Discover available tools from the MCP server's tool list at runtime.
81
82## Related skills
83
84| User asks | Route to |
85|---|---|
86| Individual stock anomalies | `longbridge-anomaly` |
87| Single stock capital flow | `longbridge-capital-flow` |
88| Index constituents | `longbridge-constituent` |
89| Market temperature / overall sentiment | `longbridge-market-temp` |
90| Multi-stock comparison | `longbridge-peer-comparison` |
91
92## File layout
93
94```
95longbridge-sector-screener/
96└── SKILL.md
97```
98
99Prompt-only — no `scripts/`. Sector proxies are selected in-context based on market and user request. Discover current CLI flags via `longbridge <subcommand> --help`.