[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXNDAZZRA5E7BS3HCTH1MA":3,"skill-same:01M6BXNDAZZRA5E7BS3HCTH1MA":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":16,"ownerHtmlUrl":57,"ownerBlogUrl":16,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6BXNDAZZRA5E7BS3HCTH1MA","go-binance-web-notification","浏览器通知 WebSocket 实现","Implement and verify persisted browser notifications with authenticated WebSocket delivery across go_binance_futures and go_binance_futrues_new_ui.","在 go_binance_futures 和 go_binance_futrues_new_ui 中实现并验证带认证 WebSocket 投递的持久化浏览器通知。","sorry510\u002Fgo_binance_futures","sorry510","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19152210?v=4","01M6BXN7R4CADT83P4NDJBFSBQ","01M6BXN7W8QZGQGWPXHYC23B56",257,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fgo-binance-web-notification\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C1S3JDJHWXXXT0CQ0VDFGC","事件驱动与消息集成","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"go","web","go binance web notification","binance","notification","implement","browser","ui","notifications","futures","websocket","verify","delivery","across","with","new","2026-11-10 10:12:30",false,"---\nname: go-binance-web-notification\ndescription: Implement and verify persisted browser notifications with authenticated WebSocket delivery across go_binance_futures and go_binance_futrues_new_ui.\nversion: 1.0.1\n---\n# Go Binance Web Notification\n\nUse this skill when adding or changing browser notification persistence, real-time delivery, read state, or the notification bell across the linked backend and frontend repositories.\n\n## Repositories\n\n- Backend: `\u002FUsers\u002Fzhz\u002Fwork\u002Fbinance\u002Fgo_binance_futures`\n- Frontend: `\u002FUsers\u002Fzhz\u002Fwork\u002Fbinance\u002Fgo_binance_futrues_new_ui`\n- Preserve the intentional `futrues` spelling.\n- Never modify or delete the real backend `conf\u002Fapp.conf`.\n\n## Backend checklist\n\n1. Define the ORM model and explicitly register it in `main.go` so `RunSyncdb` creates or updates the table at startup.\n2. Keep notification persistence separate from WebSocket fan-out. Insert first; broadcast only after a successful insert.\n3. Reuse the existing notification producers rather than duplicating business rules. Audit their call graph before choosing the persistence hook. This project selects exactly one `Pusher` implementation through `GetNotifyChannel`, so publish from both `DingDingApi` and `SlackApi`; only the selected implementation runs for a logical message.\n4. Implement a bounded WebSocket client send queue, ping\u002Fpong deadlines, unregister on disconnect, and one shared hub.\n5. Expose paginated history, unread count, read-one, read-all, and WebSocket routes. Put the static read-all route before the parameter route.\n6. Browser WebSocket clients cannot set an Authorization header. Accept the existing `Bearer \u003Cjwt>` value through the `token` query parameter and validate it inside the WebSocket controller. Excluding the WS route from header middleware is safe only when the controller performs this validation before upgrading. Reject malformed or doubled Bearer prefixes.\n7. Normalize markdown and HTML intended for remote notification channels before storing browser-visible title and content. Do not log optional missing notification content.\n\n## Frontend checklist\n\n1. Add typed history and read-state API helpers.\n2. Build the WebSocket URL from the current page protocol and host, switching `http` to `ws` and `https` to `wss`. URL-encode the stored token.\n3. Load recent history before or alongside opening the socket. Display an unread badge, notification popover, read-one, read-all, and a toast for newly received messages.\n4. Deduplicate events by notification ID before incrementing unread state. A reconnect can deliver the same event again.\n5. Reconnect with capped exponential backoff and clear timers and sockets on component unmount.\n6. Render the notification component in every supported navbar layout and add both Chinese and English locale keys.\n7. Configure the Vite `\u002Fws` proxy with `ws: true` for local development.\n\n## Verification\n\n- Run focused Go tests for model schema, JWT validation, persistence, and WebSocket broadcast. Build and execute tests using an isolated temporary Beego config directory; never use the real `conf\u002Fapp.conf`.\n- Run focused `go vet` for changed backend packages.\n- Run frontend `pnpm typecheck`, `pnpm build`, and `git status` after each because generated artifacts can appear.\n- Use a temporary HTTP and WebSocket mock plus a real browser to verify history, real-time toast, popover contents, read actions, and reconnect behavior. Wait through at least one reconnect and confirm the unread count does not increase for a duplicate ID. Confirm the browser console has no errors.\n- Remove only artifacts created by the verification run. Preserve unrelated worktree changes.\n- Finish with `git diff --check` in both repositories and `git diff -- conf\u002Fapp.conf` in the backend.\n\n## Retention, search, and module switches\n\n- Keep browser notifications for 30 days. Run cleanup once at task startup and every 6 hours afterwards; delete rows whose `create_time` is strictly before the cutoff.\n- A normal history page should support title\u002Fcontent keyword, module, read status, start\u002Fend time, pagination, read-one, and read-all, with Chinese and English labels.\n- `notify_config.enable` is the module's external-channel switch. Query the latest active-channel row without filtering by `enable`; no row means enabled by default, while an existing row with `enable = 0` must return before DingTalk or Slack network I\u002FO. Web persistence must happen before this return.\n- On create, distinguish an omitted `enable` field from an explicit zero: omitted defaults to enabled, explicit zero remains disabled.\n","# Go Binance Web Notification\n\nUse this skill when adding or changing browser notification persistence, real-time delivery, read state, or the notification bell across the linked backend and frontend repositories.\n\n## Repositories\n\n- Backend: `\u002FUsers\u002Fzhz\u002Fwork\u002Fbinance\u002Fgo_binance_futures`\n- Frontend: `\u002FUsers\u002Fzhz\u002Fwork\u002Fbinance\u002Fgo_binance_futrues_new_ui`\n- Preserve the intentional `futrues` spelling.\n- Never modify or delete the real backend `conf\u002Fapp.conf`.\n\n## Backend checklist\n\n1. Define the ORM model and explicitly register it in `main.go` so `RunSyncdb` creates or updates the table at startup.\n2. Keep notification persistence separate from WebSocket fan-out. Insert first; broadcast only after a successful insert.\n3. Reuse the existing notification producers rather than duplicating business rules. Audit their call graph before choosing the persistence hook. This project selects exactly one `Pusher` implementation through `GetNotifyChannel`, so publish from both `DingDingApi` and `SlackApi`; only the selected implementation runs for a logical message.\n4. Implement a bounded WebSocket client send queue, ping\u002Fpong deadlines, unregister on disconnect, and one shared hub.\n5. Expose paginated history, unread count, read-one, read-all, and WebSocket routes. Put the static read-all route before the parameter route.\n6. Browser WebSocket clients cannot set an Authorization header. Accept the existing `Bearer \u003Cjwt>` value through the `token` query parameter and validate it inside the WebSocket controller. Excluding the WS route from header middleware is safe only when the controller performs this validation before upgrading. Reject malformed or doubled Bearer prefixes.\n7. Normalize markdown and HTML intended for remote notification channels before storing browser-visible title and content. Do not log optional missing notification content.\n\n## Frontend checklist\n\n1. Add typed history and read-state API helpers.\n2. Build the WebSocket URL from the current page protocol and host, switching `http` to `ws` and `https` to `wss`. URL-encode the stored token.\n3. Load recent history before or alongside opening the socket. Display an unread badge, notification popover, read-one, read-all, and a toast for newly received messages.\n4. Deduplicate events by notification ID before incrementing unread state. A reconnect can deliver the same event again.\n5. Reconnect with capped exponential backoff and clear timers and sockets on component unmount.\n6. Render the notification component in every supported navbar layout and add both Chinese and English locale keys.\n7. Configure the Vite `\u002Fws` proxy with `ws: true` for local development.\n\n## Verification\n\n- Run focused Go tests for model schema, JWT validation, persistence, and WebSocket broadcast. Build and execute tests using an isolated temporary Beego config directory; never use the real `conf\u002Fapp.conf`.\n- Run focused `go vet` for changed backend packages.\n- Run frontend `pnpm typecheck`, `pnpm build`, and `git status` after each because generated artifacts can appear.\n- Use a temporary HTTP and WebSocket mock plus a real browser to verify history, real-time toast, popover contents, read actions, and reconnect behavior. Wait through at least one reconnect and confirm the unread count does not increase for a duplicate ID. Confirm the browser console has no errors.\n- Remove only artifacts created by the verification run. Preserve unrelated worktree changes.\n- Finish with `git diff --check` in both repositories and `git diff -- conf\u002Fapp.conf` in the backend.\n\n## Retention, search, and module switches\n\n- Keep browser notifications for 30 days. Run cleanup once at task startup and every 6 hours afterwards; delete rows whose `create_time` is strictly before the cutoff.\n- A normal history page should support title\u002Fcontent keyword, module, read status, start\u002Fend time, pagination, read-one, and read-all, with Chinese and English labels.\n- `notify_config.enable` is the module's external-channel switch. Query the latest active-channel row without filtering by `enable`; no row means enabled by default, while an existing row with `enable = 0` must return before DingTalk or Slack network I\u002FO. Web persistence must happen before this return.\n- On create, distinguish an omitted `enable` field from an explicit zero: omitted defaults to enabled, explicit zero remains disabled.\n",{"name":5,"version":51,"description":7},"1.0.1","master","9ffe4f5dee0927e2c656589a0ede070fc0f1e56e",".claude\u002Fskills\u002Fgo-binance-web-notification",57,"https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures","https:\u002F\u002Fgithub.com\u002Fsorry510","freedom","2026-11-14 22:27:57",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add sorry510\u002Fgo_binance_futures --skill go-binance-web-notification",{"tool":66,"command":67},"bunx","bunx skills add sorry510\u002Fgo_binance_futures --skill go-binance-web-notification",{"tool":69,"command":70},"pnpm","pnpm dlx skills add sorry510\u002Fgo_binance_futures --skill go-binance-web-notification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fgo-binance-web-notification\u002FSKILL.md",true,[74,80],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002FSKILL.full.md","REFERENCE","参考文档",15149,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fcommunity\u002Fjeremy-firestore\u002Fskills\u002Ffirestore-operations-manager\u002Freferences\u002FSKILL.full.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fsetup-firestore.sh","SCRIPT","脚本",1610,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fcommunity\u002Fjeremy-firestore\u002Fskills\u002Ffirestore-operations-manager\u002Fscripts\u002Fsetup-firestore.sh",[87,110,137],{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":16,"sourceHtmlUrl":94,"categories":95,"keywords":100,"publishedAt":46},"01M6BXNHZ8H45NQ9YHXWM06RD0","valid-resources","Fixture 策略参考资料","Use a bundled reference when a task needs the fixture policy.","当任务需要 fixture（测试固件）策略时使用捆绑的参考资料。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures\u002Fblob\u002Fmaster\u002Fagent\u002Fportableskill\u002Ftestdata\u002Fvalid-resources\u002FSKILL.md",[96,99],{"categoryNo":97,"categoryName":98,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},[101,102,103,104,105,106,107,108,109],"valid","resources","valid resources","fixture","task","when","policy","reference","use",{"skillNo":111,"name":112,"nameZh":113,"description":114,"descriptionZh":115,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":116,"categories":117,"keywords":124,"publishedAt":46},"01M6BXNFZ65QVYA6P9TZ6F4XZC","valid-minimal","用户请求结构化摘要","Summarize a user request. Use when a concise structured summary is needed.","总结用户请求。当需要简洁的结构化摘要时使用。","https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures\u002Fblob\u002Fmaster\u002Fagent\u002Fportableskill\u002Ftestdata\u002Fvalid-minimal\u002FSKILL.md",[118,121],{"categoryNo":119,"categoryName":120,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":122,"categoryName":123,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C9XZ92SSCN913ZXMSBA095","通用助手与问答",[125,126,101,127,128,129,130,131,132,133,106,134,135,136,109],"minimal","valid minimal","summary","structured","get","user request","condition","concise","request","Market","summarize","user",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":143,"categories":144,"keywords":149,"publishedAt":46},"01M6BXNA2SWVRKFNX289JKKM4G","go-binance-mcp-http-api-mirror","币安期货 MCP 服务器维护","Maintain the go_binance_futures Streamable HTTP MCP server when its explicit REST allowlist, JWT forwarding, transport, or documentation changes. Use for adding or removing categorized MCP tools while ensuring unrelated HTTP routes remain unexposed and conf\u002Fapp.conf stays untouched.","当 go_binance_futures 的 Streamable HTTP MCP 服务器在显式 REST 允许列表、JWT 转发、传输方式或文档方面发生变化时进行维护。用于添加或删除分类 MCP 工具，同时确保无关的 HTTP 路由保持不暴露，且 conf\u002Fapp.conf 保持不变。","https:\u002F\u002Fgithub.com\u002Fsorry510\u002Fgo_binance_futures\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fgo-binance-mcp-http-api-mirror\u002FSKILL.md",[145,146],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":147,"categoryName":148,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BS1P5QP54ZNEBFHBTV293T","API 网关配置与管理",[33,150,151,152,153,154,30,155,156,109,157,158,159,160,39,161,162,163,164,165,166,167,106],"api mirror","mirror","http api","go binance mcp http api mirror","api","MCP","http","mcp server","documentation","mcp tools","server","REST","Tools","jwt","maintain","app","false","for"]