mirror of
https://github.com/longbridge/skills.git
synced 2026-09-14 20:37:00 +08:00
3cc86b6f86
## 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>