[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MBGT0EXSB7NAK25QJKV4V":3,"skill-same:01M77MBGT0EXSB7NAK25QJKV4V":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M77MBGT0EXSB7NAK25QJKV4V","magpie",null,"Query A-share (Chinese stock market) quotes, fund flows, K-lines, watchlist, alert rules, and 龙虎榜 via the local magpie daemon. Use when the user asks about a stock by code or name, wants to set\u002Flist\u002Fremove price alerts, asks for today's resource fund flow, requests a morning\u002Fevening\u002Fweekly portfolio digest, queries 龙虎榜 (top billboard), or asks \"what's \u003Cstock> doing now\". DO NOT use for US stocks, HK stocks, crypto, technical analysis (MA\u002FMACD), order execution, or news\u002Fsentiment — magpie is v1 A-share monitoring only.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmagpie\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: magpie\ndescription: Query A-share (Chinese stock market) quotes, fund flows, K-lines, watchlist, alert rules, and 龙虎榜 via the local magpie daemon. Use when the user asks about a stock by code or name, wants to set\u002Flist\u002Fremove price alerts, asks for today's resource fund flow, requests a morning\u002Fevening\u002Fweekly portfolio digest, queries 龙虎榜 (top billboard), or asks \"what's \u003Cstock> doing now\". DO NOT use for US stocks, HK stocks, crypto, technical analysis (MA\u002FMACD), order execution, or news\u002Fsentiment — magpie is v1 A-share monitoring only.\nmetadata:\n  {\n    \"openclaw\":\n      {\n        \"requires\": { \"bins\": [], \"endpoints\": [\"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fhealth\"] }\n      }\n  }\n---\n\n# magpie — A-share quote & alert agent skill\n\n> 🐦 magpie is a **local daemon** at `http:\u002F\u002F127.0.0.1:17891` exposing a tiny HTTP API. This skill teaches you how to call it. The daemon must already be running — if `\u002Fhealth` fails, tell the user to `magpie start`.\n\n## When to activate\n\n- \"茅台现在多少\" \u002F \"查 600519\" \u002F \"海康威视\" → quote lookup\n- \"今天主力资金流向\" \u002F \"X 股票主力流入多少\" → fund flow\n- \"给 600519 设个 1500 突破告警\" \u002F \"茅台跌破 1300 提醒我\" → add alert\n- \"看看我自选股\" \u002F \"我加了哪些股\" → watchlist\n- \"今天龙虎榜\" \u002F \"谁上龙虎榜了\" → lhb\n- \"早盘要点\" \u002F \"收盘复盘\" \u002F \"周报\" → digest\n- \"今天我的盘怎么样\" → digest evening\n- \"K 线\" \u002F \"最近 X 天怎么样\" → kline\n\n## Don't activate\n\n- 美股 \u002F 港股 \u002F 加密币（v1 不支持）\n- 选股策略 \u002F 技术分析 \u002F 买卖建议（magpie 是监控工具，**非投资建议**）\n- 写策略 \u002F 回测 \u002F 下单\n- 新闻 \u002F 公告 \u002F 财报数据\n\n## Health check first\n\nAlways check `\u002Fhealth` before issuing requests. If down:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fhealth\n```\n\nIf non-200 \u002F connection refused, tell user:\n> \"magpie daemon 没启动，请运行 `cd \u002FVolumes\u002FDevDisk\u002Fsymbol\u002Fmagpie && node dist\u002Fcli.js start`（或如果已安装 npm 包，`magpie start`）。\"\n\n## HTTP API reference\n\nBase URL: `http:\u002F\u002F127.0.0.1:17891`\n\n### Quotes\n\n```bash\n# Single\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fquote\u002F600519\"\n\n# Batch\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fquotes?codes=600519,000858,002594\"\n```\n\nResponse shape:\n```json\n{\n  \"ok\": true,\n  \"quote\": {\n    \"code\": \"600519\", \"name\": \"贵州茅台\",\n    \"price\": 1344.09, \"change\": -10.46, \"changePct\": -0.77,\n    \"open\": 1354.5, \"prevClose\": 1354.55,\n    \"high\": 1358.6, \"low\": 1338,\n    \"volume\": 5696787, \"turnover\": 7653257144,\n    \"source\": \"sina\", \"delaySec\": 5\n  }\n}\n```\n\n**Stock code rules:**\n- 6 digits, no prefix needed — `600519` not `sh600519`\n- 上海: 6xxxxx \u002F 9xxxxx\n- 深圳: 0xxxxx \u002F 3xxxxx\n- 北交所: 8xxxxx \u002F 4xxxxx\n\n**If user gave a stock name**, you need to know the code. Try this order:\n1. **Reverse-lookup the watchlist first** — `GET \u002Fwatchlist` to see if user already added it (matches by `name` substring)\n2. Use the common-stock table below\n3. If still unknown, **ask the user for the 6-digit code**, don't guess\n\nCommon Chinese A-share stocks (verified):\n- 贵州茅台 600519 \u002F 五粮液 000858 \u002F 泸州老窖 000568 \u002F 山西汾酒 600809\n- 比亚迪 002594 \u002F 宁德时代 300750 \u002F 長城汽车 601633\n- 中国平安 601318 \u002F 招商银行 600036 \u002F 平安银行 000001 \u002F 工商银行 601398\n- 海康威视 002415 \u002F 美的集团 000333 \u002F 万科A 000002 \u002F 中国中车 601766\n- 海尔智家 600690 \u002F 隆基绿能 601012 \u002F 长江电力 600900\n- 世纪华通 002602 \u002F 京东方 A 000725 \u002F 洁美科技 002859 \u002F 巨人网络 002558\n\n**Ambiguous abbreviations — always ask the user to clarify**:\n- “平安” → 中国平安 (601318) or 平安银行 (000001)?\n- “招行 \u002F 招商” → 招商银行 (600036) 是常规映射但确认一句更稳\n- “万科” → 万科A (000002) vs 万科企业 (000540) etc.\n\nIf in doubt, ask: \"你指的是哪个股票？请给 6 位代码。\"\n\n> **Note**: stock names from sina data source occasionally arrive with full\u002Fhalf-width spaces (e.g. `五 粮 液`). magpie v0.0.3+ trims these in the server. If you ever see one, just trim before rendering.\n\n### Fund flow（资金流）\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fflow\u002F600519\"\n```\n\nUnits are **CNY (元)**. Divide by 1e8 for 亿. **Negative = 净流出，positive = 净流入**.\n\nFields: `mainNetIn` (主力), `superNetIn` (超大单), `bigNetIn` (大单), `midNetIn` (中单), `smallNetIn` (小单).\n\n**Rendering rule** (do not parrot negative numbers):\n- value `\u003C 0` → `净流出 ¥{abs(v\u002F1e8).toFixed(2)} 亿`\n- value `> 0` → `净流入 ¥{(v\u002F1e8).toFixed(2)} 亿`\n- value `0` → `持平`\n\n`delaySec` is usually 60s for flow (vs 5s for quote). If user is asking real-time, add a hint: \"_资金流数据延迟~1min、以交所清算为准_\".\n\n### K-line（K线）\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fkline\u002F600519?period=daily&days=30\"\n```\n\n`period` ∈ `daily|weekly|monthly`. Default 30 rows. Rows have `date, open, close, high, low, volume, turnover, changePct, change, turnoverRate`.\n\n### 龙虎榜 lhb\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Flhb\"                      # today\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Flhb?date=2026-05-13\"      # specific date\n```\n\nReturns up to 50 rows. After 18:00 SH local is most reliable.\n\n### Watchlist\n\n```bash\n# List\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\"\n\n# Add\ncurl -s -X POST -H \"content-type: application\u002Fjson\" \\\n  -d '{\"code\":\"600519\",\"name\":\"贵州茅台\",\"group\":\"持仓\",\"note\":\"长持\"}' \\\n  http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\n\n# Remove\ncurl -s -X DELETE \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\u002F600519\"\n```\n\n### Alert rules\n\n```bash\n# List\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\"\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts?code=600519\"\n\n# Add\ncurl -s -X POST -H \"content-type: application\u002Fjson\" \\\n  -d '{\"code\":\"600519\",\"type\":\"lte\",\"threshold\":1300,\"note\":\"抄底位\"}' \\\n  http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\n\n# Disable\ncurl -s -X DELETE \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\u002F1\"\n\n# History\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\u002Fhistory?days=7\"\n```\n\n**Rule types:**\n| type | trigger | typical use |\n|---|---|---|\n| `gte` | price ≥ threshold | take-profit \u002F breakout-watch |\n| `lte` | price ≤ threshold | stop-loss \u002F buy-the-dip |\n| `breakout` | price ≥ threshold AND prevClose \u003C threshold | 突破阻力 |\n| `breakdown` | price ≤ threshold AND prevClose > threshold | 跌破支撑 |\n\nDefault cooldown: 30 min (same rule won't re-fire within 30min).\n\n### Digest\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=morning\"\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=evening\"   # includes fund flow\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=weekly\"    # 5-day change\n```\n\nResponse has `digest.markdown` you can directly forward to the user.\n\n## How to respond to common asks\n\n### \"查 X\" \u002F \"X 现在多少\"\n1. Map name → 6-digit code (or ask)\n2. `GET \u002Fquote\u002F\u003Ccode>`\n3. Reply concise: `贵州茅台 600519: ¥1344.09 📉 -0.77% (今高 ¥1358.6 \u002F 今低 ¥1338)`\n4. If `delaySec` > 30 add: \"_数据延迟 Xs_\"\n\n### \"X 资金流\"\n1. `GET \u002Fflow\u002F\u003Ccode>`\n2. Convert to 亿元 (`\u002F1e8`), highlight `mainNetIn`. **Negative → say \"净流出\"，不要写负号。**\n3. **Default report**: `main` + `super` 两项足够。\n   - Concise: `茅台 600519 主力净流出 ¥11.78 亿（超大单净流出 ¥11.55 亿）`\n4. “详细” \u002F “全部” 才担 mid\u002Fsmall：`· 大单 -0.23 亿 · 中单 +11.78 亿 · 小单 -0.003 亿`\n\n### \"给 X 设个 ¥N 告警\"\n1. Determine type:\n   - 跌破\u002F止损 → `lte` (价格简单 ≤) or `breakdown` (需 prevClose > threshold)\n   - 突破\u002F止盈 → `gte` (价格简单 ≥) or `breakout` (需 prevClose \u003C threshold)\n2. `POST \u002Falerts` with `{code, type, threshold, note}`\n3. **Confirm template by type** (don't free-style):\n   - `gte`       → `✓ 规则 #N 已添加：{name} ({code}) 涨到 ¥{th} ping 你`\n   - `lte`       → `✓ 规则 #N 已添加：{name} ({code}) 跌到 ¥{th} ping 你`\n   - `breakout`  → `✓ 规则 #N 已添加：{name} ({code}) 突破 ¥{th} ping 你`\n   - `breakdown` → `✓ 规则 #N 已添加：{name} ({code}) 跌破 ¥{th} ping 你`\n4. **Distance hint** (optional but nice): if current price differs from threshold by >5%, append `（当前 ¥{p}，距阈值 {+±X%}）`\n\n### \"今天我的盘\"\n1. `GET \u002Fdigest?type=evening` (after 15:00) or `morning` (before 09:30)\n2. Return the `digest.markdown` verbatim — already formatted nicely\n\n### \"今天龙虎榜\"\n1. `GET \u002Flhb` (after 18:00 SH for stable data)\n2. Summarize top 3-5 with reasons, don't dump all 50\n\n## Market phase semantics (from `\u002Fhealth`)\n\n| phase | meaning | what to tell user |\n|---|---|---|\n| `pre` | 盘前 00:00-09:30 | “今日未开盘，显示是上一交易日收盘” |\n| `morning` | 上午 09:30-11:30 | “盘中，数据实时” |\n| `lunch` | 午休12 11:30-13:00 | “午间休市” |\n| `afternoon` | 下午 13:00-15:00 | “盘中，数据实时” |\n| `post` | 盘后 15:00-24:00 | “今日已收盘” |\n| `closed` | 节假日或周末 | “非交易日，上一交易日收盘数据” |\n\n**Unknown phase value** → fall back to \"`closed`\" handling.\n\n## Output style\n\n- **Numbers**: prices always with `¥` prefix and 2 decimals; percentages with sign and 2 decimals\n- **Direction emoji**: 📈 涨 \u002F 📉 跌 \u002F ➖ 平\n- **Brevity**: a single line per stock unless user asks for detail\n- **Disclaimer**: 不要给买卖建议；如果用户问\"该买吗\"，回答\"magpie 只看数据，不建议买卖决策\"\n\n## Failure modes\n\n| Error | What to say |\n|---|---|\n| `not_found` in quote | \"代码 XXXXXX 找不到，是不是写错了？\" |\n| `\u002Fflow` returns error | \"Eastmoney 接口抽风，等 1 分钟重试，或者用 `\u002Fquote` 看价格\" |\n| connect refused | \"magpie 没启动，请 `magpie start`\" |\n| empty lhb | \"今天龙虎榜数据还没出，通常 18:00 后才稳\" |\n| Non-trading day | 健康响应里 `phase: closed`，告诉用户：\"今天非交易日，行情是上一交易日收盘数据\" |\n\n## Trigger words (Chinese)\n\n盯盘 \u002F 自选股 \u002F 查股 \u002F 股价 \u002F 资金流 \u002F 主力 \u002F 龙虎榜 \u002F 涨跌 \u002F 早盘 \u002F 收盘 \u002F 茅台 \u002F 五粮液 \u002F 比亚迪 \u002F 招行 \u002F 平安 \u002F K线 \u002F 突破 \u002F 跌破 \u002F 止损 \u002F 止盈 \u002F 设告警 \u002F 提醒我 \u002F 我的盘\n","# magpie — A-share quote & alert agent skill\n\n> 🐦 magpie is a **local daemon** at `http:\u002F\u002F127.0.0.1:17891` exposing a tiny HTTP API. This skill teaches you how to call it. The daemon must already be running — if `\u002Fhealth` fails, tell the user to `magpie start`.\n\n## When to activate\n\n- \"茅台现在多少\" \u002F \"查 600519\" \u002F \"海康威视\" → quote lookup\n- \"今天主力资金流向\" \u002F \"X 股票主力流入多少\" → fund flow\n- \"给 600519 设个 1500 突破告警\" \u002F \"茅台跌破 1300 提醒我\" → add alert\n- \"看看我自选股\" \u002F \"我加了哪些股\" → watchlist\n- \"今天龙虎榜\" \u002F \"谁上龙虎榜了\" → lhb\n- \"早盘要点\" \u002F \"收盘复盘\" \u002F \"周报\" → digest\n- \"今天我的盘怎么样\" → digest evening\n- \"K 线\" \u002F \"最近 X 天怎么样\" → kline\n\n## Don't activate\n\n- 美股 \u002F 港股 \u002F 加密币（v1 不支持）\n- 选股策略 \u002F 技术分析 \u002F 买卖建议（magpie 是监控工具，**非投资建议**）\n- 写策略 \u002F 回测 \u002F 下单\n- 新闻 \u002F 公告 \u002F 财报数据\n\n## Health check first\n\nAlways check `\u002Fhealth` before issuing requests. If down:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fhealth\n```\n\nIf non-200 \u002F connection refused, tell user:\n> \"magpie daemon 没启动，请运行 `cd \u002FVolumes\u002FDevDisk\u002Fsymbol\u002Fmagpie && node dist\u002Fcli.js start`（或如果已安装 npm 包，`magpie start`）。\"\n\n## HTTP API reference\n\nBase URL: `http:\u002F\u002F127.0.0.1:17891`\n\n### Quotes\n\n```bash\n# Single\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fquote\u002F600519\"\n\n# Batch\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fquotes?codes=600519,000858,002594\"\n```\n\nResponse shape:\n```json\n{\n  \"ok\": true,\n  \"quote\": {\n    \"code\": \"600519\", \"name\": \"贵州茅台\",\n    \"price\": 1344.09, \"change\": -10.46, \"changePct\": -0.77,\n    \"open\": 1354.5, \"prevClose\": 1354.55,\n    \"high\": 1358.6, \"low\": 1338,\n    \"volume\": 5696787, \"turnover\": 7653257144,\n    \"source\": \"sina\", \"delaySec\": 5\n  }\n}\n```\n\n**Stock code rules:**\n- 6 digits, no prefix needed — `600519` not `sh600519`\n- 上海: 6xxxxx \u002F 9xxxxx\n- 深圳: 0xxxxx \u002F 3xxxxx\n- 北交所: 8xxxxx \u002F 4xxxxx\n\n**If user gave a stock name**, you need to know the code. Try this order:\n1. **Reverse-lookup the watchlist first** — `GET \u002Fwatchlist` to see if user already added it (matches by `name` substring)\n2. Use the common-stock table below\n3. If still unknown, **ask the user for the 6-digit code**, don't guess\n\nCommon Chinese A-share stocks (verified):\n- 贵州茅台 600519 \u002F 五粮液 000858 \u002F 泸州老窖 000568 \u002F 山西汾酒 600809\n- 比亚迪 002594 \u002F 宁德时代 300750 \u002F 長城汽车 601633\n- 中国平安 601318 \u002F 招商银行 600036 \u002F 平安银行 000001 \u002F 工商银行 601398\n- 海康威视 002415 \u002F 美的集团 000333 \u002F 万科A 000002 \u002F 中国中车 601766\n- 海尔智家 600690 \u002F 隆基绿能 601012 \u002F 长江电力 600900\n- 世纪华通 002602 \u002F 京东方 A 000725 \u002F 洁美科技 002859 \u002F 巨人网络 002558\n\n**Ambiguous abbreviations — always ask the user to clarify**:\n- “平安” → 中国平安 (601318) or 平安银行 (000001)?\n- “招行 \u002F 招商” → 招商银行 (600036) 是常规映射但确认一句更稳\n- “万科” → 万科A (000002) vs 万科企业 (000540) etc.\n\nIf in doubt, ask: \"你指的是哪个股票？请给 6 位代码。\"\n\n> **Note**: stock names from sina data source occasionally arrive with full\u002Fhalf-width spaces (e.g. `五 粮 液`). magpie v0.0.3+ trims these in the server. If you ever see one, just trim before rendering.\n\n### Fund flow（资金流）\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fflow\u002F600519\"\n```\n\nUnits are **CNY (元)**. Divide by 1e8 for 亿. **Negative = 净流出，positive = 净流入**.\n\nFields: `mainNetIn` (主力), `superNetIn` (超大单), `bigNetIn` (大单), `midNetIn` (中单), `smallNetIn` (小单).\n\n**Rendering rule** (do not parrot negative numbers):\n- value `\u003C 0` → `净流出 ¥{abs(v\u002F1e8).toFixed(2)} 亿`\n- value `> 0` → `净流入 ¥{(v\u002F1e8).toFixed(2)} 亿`\n- value `0` → `持平`\n\n`delaySec` is usually 60s for flow (vs 5s for quote). If user is asking real-time, add a hint: \"_资金流数据延迟~1min、以交所清算为准_\".\n\n### K-line（K线）\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fkline\u002F600519?period=daily&days=30\"\n```\n\n`period` ∈ `daily|weekly|monthly`. Default 30 rows. Rows have `date, open, close, high, low, volume, turnover, changePct, change, turnoverRate`.\n\n### 龙虎榜 lhb\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Flhb\"                      # today\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Flhb?date=2026-05-13\"      # specific date\n```\n\nReturns up to 50 rows. After 18:00 SH local is most reliable.\n\n### Watchlist\n\n```bash\n# List\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\"\n\n# Add\ncurl -s -X POST -H \"content-type: application\u002Fjson\" \\\n  -d '{\"code\":\"600519\",\"name\":\"贵州茅台\",\"group\":\"持仓\",\"note\":\"长持\"}' \\\n  http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\n\n# Remove\ncurl -s -X DELETE \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fwatchlist\u002F600519\"\n```\n\n### Alert rules\n\n```bash\n# List\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\"\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts?code=600519\"\n\n# Add\ncurl -s -X POST -H \"content-type: application\u002Fjson\" \\\n  -d '{\"code\":\"600519\",\"type\":\"lte\",\"threshold\":1300,\"note\":\"抄底位\"}' \\\n  http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\n\n# Disable\ncurl -s -X DELETE \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\u002F1\"\n\n# History\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Falerts\u002Fhistory?days=7\"\n```\n\n**Rule types:**\n| type | trigger | typical use |\n|---|---|---|\n| `gte` | price ≥ threshold | take-profit \u002F breakout-watch |\n| `lte` | price ≤ threshold | stop-loss \u002F buy-the-dip |\n| `breakout` | price ≥ threshold AND prevClose \u003C threshold | 突破阻力 |\n| `breakdown` | price ≤ threshold AND prevClose > threshold | 跌破支撑 |\n\nDefault cooldown: 30 min (same rule won't re-fire within 30min).\n\n### Digest\n\n```bash\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=morning\"\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=evening\"   # includes fund flow\ncurl -s \"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fdigest?type=weekly\"    # 5-day change\n```\n\nResponse has `digest.markdown` you can directly forward to the user.\n\n## How to respond to common asks\n\n### \"查 X\" \u002F \"X 现在多少\"\n1. Map name → 6-digit code (or ask)\n2. `GET \u002Fquote\u002F\u003Ccode>`\n3. Reply concise: `贵州茅台 600519: ¥1344.09 📉 -0.77% (今高 ¥1358.6 \u002F 今低 ¥1338)`\n4. If `delaySec` > 30 add: \"_数据延迟 Xs_\"\n\n### \"X 资金流\"\n1. `GET \u002Fflow\u002F\u003Ccode>`\n2. Convert to 亿元 (`\u002F1e8`), highlight `mainNetIn`. **Negative → say \"净流出\"，不要写负号。**\n3. **Default report**: `main` + `super` 两项足够。\n   - Concise: `茅台 600519 主力净流出 ¥11.78 亿（超大单净流出 ¥11.55 亿）`\n4. “详细” \u002F “全部” 才担 mid\u002Fsmall：`· 大单 -0.23 亿 · 中单 +11.78 亿 · 小单 -0.003 亿`\n\n### \"给 X 设个 ¥N 告警\"\n1. Determine type:\n   - 跌破\u002F止损 → `lte` (价格简单 ≤) or `breakdown` (需 prevClose > threshold)\n   - 突破\u002F止盈 → `gte` (价格简单 ≥) or `breakout` (需 prevClose \u003C threshold)\n2. `POST \u002Falerts` with `{code, type, threshold, note}`\n3. **Confirm template by type** (don't free-style):\n   - `gte`       → `✓ 规则 #N 已添加：{name} ({code}) 涨到 ¥{th} ping 你`\n   - `lte`       → `✓ 规则 #N 已添加：{name} ({code}) 跌到 ¥{th} ping 你`\n   - `breakout`  → `✓ 规则 #N 已添加：{name} ({code}) 突破 ¥{th} ping 你`\n   - `breakdown` → `✓ 规则 #N 已添加：{name} ({code}) 跌破 ¥{th} ping 你`\n4. **Distance hint** (optional but nice): if current price differs from threshold by >5%, append `（当前 ¥{p}，距阈值 {+±X%}）`\n\n### \"今天我的盘\"\n1. `GET \u002Fdigest?type=evening` (after 15:00) or `morning` (before 09:30)\n2. Return the `digest.markdown` verbatim — already formatted nicely\n\n### \"今天龙虎榜\"\n1. `GET \u002Flhb` (after 18:00 SH for stable data)\n2. Summarize top 3-5 with reasons, don't dump all 50\n\n## Market phase semantics (from `\u002Fhealth`)\n\n| phase | meaning | what to tell user |\n|---|---|---|\n| `pre` | 盘前 00:00-09:30 | “今日未开盘，显示是上一交易日收盘” |\n| `morning` | 上午 09:30-11:30 | “盘中，数据实时” |\n| `lunch` | 午休12 11:30-13:00 | “午间休市” |\n| `afternoon` | 下午 13:00-15:00 | “盘中，数据实时” |\n| `post` | 盘后 15:00-24:00 | “今日已收盘” |\n| `closed` | 节假日或周末 | “非交易日，上一交易日收盘数据” |\n\n**Unknown phase value** → fall back to \"`closed`\" handling.\n\n## Output style\n\n- **Numbers**: prices always with `¥` prefix and 2 decimals; percentages with sign and 2 decimals\n- **Direction emoji**: 📈 涨 \u002F 📉 跌 \u002F ➖ 平\n- **Brevity**: a single line per stock unless user asks for detail\n- **Disclaimer**: 不要给买卖建议；如果用户问\"该买吗\"，回答\"magpie 只看数据，不建议买卖决策\"\n\n## Failure modes\n\n| Error | What to say |\n|---|---|\n| `not_found` in quote | \"代码 XXXXXX 找不到，是不是写错了？\" |\n| `\u002Fflow` returns error | \"Eastmoney 接口抽风，等 1 分钟重试，或者用 `\u002Fquote` 看价格\" |\n| connect refused | \"magpie 没启动，请 `magpie start`\" |\n| empty lhb | \"今天龙虎榜数据还没出，通常 18:00 后才稳\" |\n| Non-trading day | 健康响应里 `phase: closed`，告诉用户：\"今天非交易日，行情是上一交易日收盘数据\" |\n\n## Trigger words (Chinese)\n\n盯盘 \u002F 自选股 \u002F 查股 \u002F 股价 \u002F 资金流 \u002F 主力 \u002F 龙虎榜 \u002F 涨跌 \u002F 早盘 \u002F 收盘 \u002F 茅台 \u002F 五粮液 \u002F 比亚迪 \u002F 招行 \u002F 平安 \u002F K线 \u002F 突破 \u002F 跌破 \u002F 止损 \u002F 止盈 \u002F 设告警 \u002F 提醒我 \u002F 我的盘\n",{"name":5,"metadata":24,"description":7},{"openclaw":25},{"requires":26},{"bins":27,"endpoints":28},[],[29],"http:\u002F\u002F127.0.0.1:17891\u002Fapi\u002Fv1\u002Fhealth","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fm\u002Fmagpie",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill magpie",{"tool":45,"command":46},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill magpie",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill magpie","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmagpie\u002FSKILL.md",true,[],[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]