## Summary - 在 CLAUDE.md 中新增规则:skill 文件不应枚举具体子命令名或 flag 名,应引导 LLM 通过 `longbridge --help` 自行发现,再用 `longbridge <subcommand> --help` 查选项 - 修复 21 个 skill 文件:将子命令映射表改为功能类别描述,代码示例中的具体操作 flag 替换为通用占位符 ## 背景 部分 skill 文件中存在类似这样的表格: ``` | Financial statements | `longbridge financial-report --help` | | Analyst consensus | `longbridge consensus --help` | ``` 以及带具体参数的代码示例: ```bash longbridge financial-report NVDA.US --kind IS --report af --format json ``` 这些硬编码的子命令名和 flag 会随 CLI 更新而过时,导致 skill 指引与实际行为不符。 ## 修改方式 表格改为功能类别描述 + `--help` 发现指引: ``` Run `longbridge --help` to see all available subcommands, then `longbridge <subcommand> --help` before calling. Types of data needed: - Financial statements (income, balance sheet, cash flow) - Analyst consensus & EPS estimates ``` 代码示例中移除具体 flag: ```bash longbridge <subcommand> NVDA.US --format json # run --help for available flags ``` ## Test plan - [ ] 检查 CLAUDE.md §5 规则表述清晰 - [ ] 抽查几个 skill 文件,确认不再有具体子命令表格或具体操作 flag 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Longbridge Skills
Make your AI assistant fluent in Longbridge — ask about stock prices, your portfolio, news, and valuations in plain English, 中文, or 繁體, and get answers backed by real Longbridge data.
125 skills covering market data, fundamentals, valuation, options, technical analysis, quantitative strategies, portfolio risk, research, cross-market analysis, community, IPO, and automation across HK / US / A-share / Singapore markets.
Install
Pick whichever fits your workflow:
with npx (one line, no setup)
# Install everything globally (~/.claude/skills/)
npx skills add longbridge/skills -g
# Or just one skill, globally
npx skills add longbridge/skills -g --skill longbridge-quote
Use
-g(global) so the skills land in~/.claude/skills/and are reachable from any project. Without-g, the installer treats the current directory as a project and installs into<cwd>/.claude/skills/— which is fine for project-scoped skills but is a common surprise when you later runnpx skills removefrom a different directory.
with bun
bunx skills add longbridge/skills -g
bunx skills add longbridge/skills -g --skill longbridge-quote
inside Claude Code (plugin marketplace)
/plugin marketplace add longbridge/skills
/plugin install longbridge@longbridge-skills
📖 Full guide with prerequisites / verification / FAQ → docs/install.md
Update
npx
# Update all skills
npx skills update -g
# Update a single skill
npx skills update longbridge-quote -g
bun
bunx skills update -g
bunx skills update longbridge-quote -g
What you can ask
Once installed, talk to your AI assistant naturally. Examples:
- "NVDA 现在多少钱" / "What's NVDA's price?" / "700.HK 報價"
- "我的持仓表现如何" / "How is my portfolio doing this month?"
- "贵州茅台估值贵不贵" / "Is GOOG expensive vs history?"
- "NVDA AMD 哪个增速快" / "Compare AAPL vs MSFT vs GOOG"
- "今天有什么要关注的" / "Give me my morning briefing"
- "特斯拉最近怎么了" / "Recent news on TSLA"
The right skill is picked automatically based on your question, in the language you used.
What's inside
¹
longbridge-chanlunrequirespip install czsc²longbridge-smcrequirespip install smartmoneyconcepts(falls back to manual implementation if unavailable) ³longbridge-ml-strategyrequirespip install scikit-learn(usually pre-installed) ⁴longbridge-quant-statsrequirespip install statsmodels scipy arch⁵longbridge-quant(Pine Script runner) is a beta feature — requires account activation by Longbridge support ⁶longbridge-elliott-waverequirespip install pandas numpy(usually pre-installed); includesscripts/signal_engine.pyfor wave detection
Click any name above to see what it can do.
Prerequisites
You need one or both of these set up:
- Longbridge CLI (for live quotes, your holdings, watchlist) — install longbridge-terminal, then run
longbridge auth login. - Longbridge MCP (for valuation / news / fundamentals / portfolio analysis) —
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp.
Both authenticate with your Longbridge account. Pick "trade" permission during login if you want account-level skills (positions, orders, P&L).
Notes
- No investment advice. Skills surface data, never recommend buy/sell.
- Your data stays yours. Account values are private and only shown to you.
- Languages: ask in 简体中文 / 繁體中文 / English — answers come back in the same language.
For developers
- CLAUDE.md — repo-level instructions for Claude Code when developing inside this repo
- docs/architecture.md — how the multilingual triggers + CLI/MCP routing work under the hood
- docs/install.md — every install path, verification, troubleshooting
License: MIT.