longbridge-alert
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-alert
longbridge-alert
⚠️ Mutating skill: changes the user's price-alert state on Longbridge. No money is involved, but the change is persistent and will affect future push notifications.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
⚠️ 变更类Skill:会修改用户在Longbridge上的价格提醒状态。此操作不涉及资金,但变更会永久保存并影响未来的推送通知。
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
When to use
使用场景
Trigger only on clear imperatives to manage price alerts:
- "提醒我 NVDA.US 涨到 200" / "在 200 美元提醒我"
- "删除提醒 486469" / "關掉那個提醒"
- "set an alert when TSLA hits 250"
Vague prompts ("整理一下我的提醒", "看看我的提醒怎么样") must be refused with a clarifying question — ask which symbol, which direction, which price, which alert id — never guess.
For read-only listing of existing alerts, you may run directly without the preview/confirm gate (listing changes nothing). Mutations always need the gate.
longbridge alert --format json仅在用户给出明确指令以管理价格提醒时触发:
- "提醒我 NVDA.US 涨到 200" / "在 200 美元提醒我"
- "删除提醒 486469" / "關掉那個提醒"
- "set an alert when TSLA hits 250"
对于模糊指令(如*"整理一下我的提醒"、"看看我的提醒怎么样"*),必须拒绝并请求明确信息——询问标的代码、触发方向、目标价格、提醒ID,绝不猜测。
对于只读查看现有提醒的操作,可直接运行,无需经过预览/确认流程(查看操作不会修改任何内容)。所有变更操作必须遵循该流程。
longbridge alert --format jsonTwo-step protocol (mandatory)
两步式强制流程
Every mutation must run as two distinct turns:
- Preview — describe exactly what you are about to do (symbol, target price, direction /
rise, alert id for delete/enable/disable), in the user's language. Do not run the CLI yet.fall - Wait for explicit confirmation containing "确认 / yes / 是的 / confirm". If the user replies anything ambiguous, ask again — do not assume consent.
- Execute — only after step 2, run the actual command.
longbridge alert <subcommand> ...
The Longbridge CLI'ssubcommand prints its own confirmation prompt — let it run; do not pipedeleteor pass any flag that bypasses it. Foryes/add/enable, this skill's preview-then-confirm protocol is the SKILL-layer gate.disable
所有变更操作必须分为两个独立步骤执行:
- 预览——用用户的语言准确描述即将执行的操作(标的代码、目标价格、触发方向/
rise、删除/启用/禁用操作对应的提醒ID)。此时不要运行CLI命令。fall - 等待明确确认——用户回复需包含“确认 / yes / 是的 / confirm”。若用户回复模糊,需再次询问,绝不默认用户同意。
- 执行——仅在完成步骤2后,运行实际的命令。
longbridge alert <subcommand> ...
Longbridge CLI的子命令会自带确认提示——让其正常运行;不要通过管道输入delete或添加任何跳过确认的参数。对于yes/add/enable操作,本Skill的预览-确认流程是Skill层面的验证关卡。disable
CLI subcommands
CLI子命令
longbridge alertlongbridge alert <subcommand> --help| Action | CLI invocation (typical shape — verify with |
|---|---|
| List all alerts | |
| List alerts for one symbol | |
| Add a price alert | |
| Delete an alert by id | |
| Enable an alert | |
| Disable an alert | |
Thesubcommand has a built-in confirmation prompt. Let it run interactively in your environment.delete
If the user gives a symbol but no alert id for delete/enable/disable, first run to look up the id, then quote the id back in your preview before asking for confirmation.
longbridge alert <SYMBOL> --format jsonlongbridge alertlongbridge alert <subcommand> --help| 操作 | CLI调用示例(典型格式——使用前需用 |
|---|---|
| 查看所有提醒 | |
| 查看单个标的的提醒 | |
| 添加价格提醒 | |
| 通过ID删除提醒 | |
| 启用提醒 | |
| 禁用提醒 | |
子命令自带确认提示,请在你的环境中让其交互式运行。delete
若用户给出标的代码但未提供删除/启用/禁用操作对应的提醒ID,需先运行查询ID,然后在预览信息中引用该ID,再请求用户确认。
longbridge alert <SYMBOL> --format jsonPreview templates (LLM)
预览模板(LLM)
即将{动作}:{plan 摘要}。是否确认执行?About to {action}: {plan summary}. Confirm?即將{動作}:{plan 摘要}。是否確認執行?
Examples:
- "即将设置 NVDA.US 在 200 美元时提醒,价格上穿触发。是否确认执行?"
- "About to add a price alert on TSLA.US at 250 USD, triggered when price falls below. Confirm?"
- "即將刪除提醒 486469(NVDA.US @ 200,上穿)。是否確認執行?"
- "即将停用提醒 486469。是否确认?"
If the user did not specify a direction (rise vs fall), ask — do not default. If the user did not specify a price, ask. Never invent values.
即将{动作}:{计划摘要}。是否确认执行?About to {action}: {plan summary}. Confirm?即將{動作}:{plan 摘要}。是否確認執行?
示例:
- "即将设置 NVDA.US 在 200 美元时提醒,价格上穿触发。是否确认执行?"
- "About to add a price alert on TSLA.US at 250 USD, triggered when price falls below. Confirm?"
- "即將刪除提醒 486469(NVDA.US @ 200,上穿)。是否確認執行?"
- "即将停用提醒 486469。是否确认?"
若用户未指定触发方向(上涨/下跌),请询问用户——不要默认设置。若用户未指定价格,也请询问。绝不要自行编造数值。
OAuth scope
OAuth权限范围
Price alerts are tied to the user's Longbridge account but do not place trades, so the basic login scope is sufficient — without trade scope works. If the call returns , tell the user to re-run and complete the OAuth flow.
longbridge auth loginunauthorizedlongbridge auth login价格提醒与用户的Longbridge账号绑定,但不会执行交易操作,因此基础登录权限范围已足够——无需交易权限的即可生效。若调用返回,请告知用户重新运行并完成OAuth流程。
longbridge auth loginunauthorizedlongbridge auth loginError handling
错误处理
| Situation | LLM response |
|---|---|
Shell | Tell the user to install longbridge-terminal; MCP fallback can apply (see below) but only after user confirmation — never use MCP to bypass the preview / confirm protocol. |
stderr contains | Tell the user to run |
Bad | Re-run the list command ( |
| Run |
| Other stderr | Surface verbatim. Do not silently retry — if a mutating call failed, ask the user before any second attempt. |
| 场景 | LLM响应 |
|---|---|
Shell返回 | 告知用户安装longbridge-terminal;仅在用户确认后可使用MCP fallback(见下文)——绝不要通过MCP跳过预览/确认流程。 |
标准错误输出包含 | 告知用户运行 |
无效 | 重新运行查看命令( |
| 运行 |
| 其他标准错误输出 | 直接展示原始内容。不要静默重试——若变更操作失败,再次尝试前需询问用户。 |
MCP fallback (only after confirmation)
MCP fallback(仅在确认后使用)
If the CLI binary is unavailable, an MCP equivalent may be wired up under names such as / / . Tool names are environment-specific — discover them via rather than hard-coding.
mcp__longbridge__create_price_alertmcp__longbridge__delete_price_alertmcp__longbridge__list_price_alertsListMcpResourcesToolImportant: the preview / confirm cycle still applies when going through MCP. MCP write tools have no built-in confirmation prompt; this SKILL is responsible for the gate.
若CLI二进制文件不可用,可通过MCP等效工具执行操作,工具名称通常为//。工具名称因环境而异——请通过自动发现,不要硬编码。
mcp__longbridge__create_price_alertmcp__longbridge__delete_price_alertmcp__longbridge__list_price_alertsListMcpResourcesTool重要提示:使用MCP时仍需遵循预览/确认流程。MCP写入工具无内置确认提示,本Skill需负责验证关卡。
Related skills
相关Skill
- — look up the current price of a symbol before suggesting an alert level.
longbridge-quote - /
longbridge-watchlist— manage the favourites list (alerts and watchlists are independent).longbridge-watchlist-admin - — diagnose real-time stream health (separate from alert push notifications).
longbridge-subscriptions
- ——设置提醒前查询标的当前价格。
longbridge-quote - /
longbridge-watchlist——管理收藏列表(提醒与收藏列表相互独立)。longbridge-watchlist-admin - ——诊断实时数据流健康状态(与提醒推送通知相互独立)。
longbridge-subscriptions
File layout
文件结构
longbridge-alert/
└── SKILL.md # prompt-only, no scripts/Prompt-only — no . Discover the latest CLI flags via .
scripts/longbridge alert <subcommand> --helplongbridge-alert/
└── SKILL.md # 仅含提示词,无scripts/目录仅含提示词——无目录。通过获取最新CLI参数。
scripts/longbridge alert <subcommand> --help