[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78DX04BC5ZDBTZ9C33RZCD0":3,"skill-same:01M78DX04BC5ZDBTZ9C33RZCD0":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M78DX04BC5ZDBTZ9C33RZCD0","trader-ops",null,"Operate the pcore-trader production bot on pcore-server — deploy, recover, and verify. Use when deploying crypto-trader code, recovering failed systemd services, restarting the observer bot, or fixing Telegram message truncation. Covers deploy-vps.sh pitfalls, git-pull recovery, service\u002Fport inventory, and the lossless pagination pattern.","P-Core-System\u002Fpcore-orchestra","P-Core-System","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F316099351?v=4","01M78DJ0920WA62RQ0Q00B81HQ","P Core System","01M78DJ09XWRZS3VDK927QW72Z",0,"MIT","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Ftrader-ops\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: trader-ops\ndescription: Operate the pcore-trader production bot on pcore-server — deploy, recover, and verify. Use when deploying crypto-trader code, recovering failed systemd services, restarting the observer bot, or fixing Telegram message truncation. Covers deploy-vps.sh pitfalls, git-pull recovery, service\u002Fport inventory, and the lossless pagination pattern.\n---\n\n# P-Core Trader Operations (pcore-server)\n\n## Host inventory (verified 2026-11-06)\n\n| Item | Value |\n|---|---|\n| SSH host | `pcore-server` (expect IP 18.143.176.54; retired IPs: 13.115.84.100, 54.255.182.90, 47.128.228.24) |\n| Remote root | `\u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader` (its own git clone of `P-Core-System\u002Fpcore-trader`, branch `main`) |\n| Panel | `http:\u002F\u002F127.0.0.1:4030` (`\u002Fhealthz`), public via cloudflared → crypto-ops URL |\n| Brain serve | `http:\u002F\u002F127.0.0.1:4096\u002Fhealth` (pcore-brain-serve; heartbeat alerts when down; never auto-restarted) |\n| Always-on services | `crypto-trader-bot`, `crypto-trader-panel`, `crypto-trader-observer`, `crypto-trader-auto-manager`, `crypto-trader-monitor` |\n| Timer-fired services | signal, futures, margin, learn, harvest, backup, self-heal, autofix, agent-* heartbeats (`systemctl list-timers 'crypto-trader-*'`) |\n| Logs | `\u003Croot>\u002Flogs\u002F\u003Cname>.log` + `\u003Cname>.err` (observer writes `observer.err` — read it for tracebacks) |\n\n## Deploy from Windows (Git Bash) — the rsync trap\n\n`scripts\u002Fdeploy-vps.sh` **stops services first, then rsyncs**. Git Bash has no `rsync`, so it aborts mid-way:\nservices stay down and code never syncs.\n\nRecovery procedure (preferred over re-running the script from Windows):\n\n```bash\nssh pcore-server \"cd \u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader && git fetch origin \\\n  && git status --porcelain | wc -l   # must be 0 before ff-only pull\n  && git pull --ff-only origin main\"\n```\n\nThen compile-check before restarting (a single syntax error crash-loops every service):\n\n```bash\nssh pcore-server \"cd \u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader \\\n  && venv\u002Fbin\u002Fpython -m py_compile tools\u002Fcrypto\u002Fadvisor.py tools\u002Fcrypto\u002Fobserver_bot.py\"\n```\n\nRestart (crash-loop backoff leaves `failed` until reset):\n\n```bash\nssh pcore-server \"sudo systemctl reset-failed crypto-trader-bot crypto-trader-observer; \\\n  sudo systemctl restart crypto-trader-bot crypto-trader-panel \\\n    crypto-trader-auto-manager crypto-trader-monitor crypto-trader-observer; \\\n  sleep 8; systemctl is-active crypto-trader-bot crypto-trader-panel \\\n    crypto-trader-auto-manager crypto-trader-monitor crypto-trader-observer\"\n```\n\nNote: `deploy-vps.sh` never restarts `crypto-trader-observer` — restart it manually after any\nchange to `tools\u002Fcrypto\u002Fobserver_bot.py`. From WSL\u002FLinux the script works, but it syncs `.env`\ntoo: only `BINANCE_DEMO, BINANCE_PAPER_SIMULATE, BITGET_DEMO, CRYPTO_PG_DSN, CRYPTO_TRADING_MODE`\nare preserved from remote.\n\nIf the remote tree is dirty or diverged, do NOT force — stop and reconcile; the server also\nauto-commits deploys (`git add -A && git commit -m \"deploy: ...\"`), so remote history can differ.\n\n## Telegram delivery: never truncate agent replies\n\nTelegram caps a message at 4096 code points (use 4000). Hard slices like `result[:3800]`\ncut reports mid-word. The lossless pattern (used for \u002Fdoctor, \u002Fobserver, AI Fix):\n\n```python\nfrom tools.crypto.replies import chunk_safe  # splits on line\u002Fword edges, nothing dropped\n\nchunks = chunk_safe(f\"{heading}\\n\\n{_esc(body)}\")\nawait status.edit_text(chunks[0], parse_mode=\"HTML\")   # replace \"Running…\" message\nfor extra in chunks[1:]:\n    await msg.reply_text(extra, parse_mode=\"HTML\")\n```\n\nRules:\n- Escape (`_esc`) BEFORE chunking; `chunk_safe` cuts on newline boundaries so HTML tags stay paired.\n- `truncate_safe` (adds \"…\") is for status lines and log tails only, never for full reports.\n- If edit_text fails (old message pruned), fall back to reply_text for the first chunk too.\n\n## Env-flag triage on the server\n\nSignal behavior lives in `\u003Croot>\u002F.env` (e.g. `CRYPTO_SIGNAL_MIN_CONFIDENCE`, `CRYPTO_SIGNAL_1D_TREND_MODE=1`,\n`CRYPTO_SIGNAL_15M_ENTRY_MODE=1`, `CRYPTO_SIGNAL_SYMBOL_FOCUS=BTC\u002FUSDT,ETH\u002FUSDT,XRP\u002FUSDT`,\n`CRYPTO_SIGNAL_ADVANCED_MODE=1`, `CRYPTO_TRADING_MODE=demo`, `BITGET_DEMO=1`).\nA code-default change (e.g. confidence 0.80 → 0.35) does NOT take effect while `.env` pins the old value —\ncheck `grep -n KEY .env` after deploys, then restart the affected service.\n","# P-Core Trader Operations (pcore-server)\n\n## Host inventory (verified 2026-11-06)\n\n| Item | Value |\n|---|---|\n| SSH host | `pcore-server` (expect IP 18.143.176.54; retired IPs: 13.115.84.100, 54.255.182.90, 47.128.228.24) |\n| Remote root | `\u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader` (its own git clone of `P-Core-System\u002Fpcore-trader`, branch `main`) |\n| Panel | `http:\u002F\u002F127.0.0.1:4030` (`\u002Fhealthz`), public via cloudflared → crypto-ops URL |\n| Brain serve | `http:\u002F\u002F127.0.0.1:4096\u002Fhealth` (pcore-brain-serve; heartbeat alerts when down; never auto-restarted) |\n| Always-on services | `crypto-trader-bot`, `crypto-trader-panel`, `crypto-trader-observer`, `crypto-trader-auto-manager`, `crypto-trader-monitor` |\n| Timer-fired services | signal, futures, margin, learn, harvest, backup, self-heal, autofix, agent-* heartbeats (`systemctl list-timers 'crypto-trader-*'`) |\n| Logs | `\u003Croot>\u002Flogs\u002F\u003Cname>.log` + `\u003Cname>.err` (observer writes `observer.err` — read it for tracebacks) |\n\n## Deploy from Windows (Git Bash) — the rsync trap\n\n`scripts\u002Fdeploy-vps.sh` **stops services first, then rsyncs**. Git Bash has no `rsync`, so it aborts mid-way:\nservices stay down and code never syncs.\n\nRecovery procedure (preferred over re-running the script from Windows):\n\n```bash\nssh pcore-server \"cd \u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader && git fetch origin \\\n  && git status --porcelain | wc -l   # must be 0 before ff-only pull\n  && git pull --ff-only origin main\"\n```\n\nThen compile-check before restarting (a single syntax error crash-loops every service):\n\n```bash\nssh pcore-server \"cd \u002Fhome\u002Fubuntu\u002Fpcore\u002Fcrypto-trader \\\n  && venv\u002Fbin\u002Fpython -m py_compile tools\u002Fcrypto\u002Fadvisor.py tools\u002Fcrypto\u002Fobserver_bot.py\"\n```\n\nRestart (crash-loop backoff leaves `failed` until reset):\n\n```bash\nssh pcore-server \"sudo systemctl reset-failed crypto-trader-bot crypto-trader-observer; \\\n  sudo systemctl restart crypto-trader-bot crypto-trader-panel \\\n    crypto-trader-auto-manager crypto-trader-monitor crypto-trader-observer; \\\n  sleep 8; systemctl is-active crypto-trader-bot crypto-trader-panel \\\n    crypto-trader-auto-manager crypto-trader-monitor crypto-trader-observer\"\n```\n\nNote: `deploy-vps.sh` never restarts `crypto-trader-observer` — restart it manually after any\nchange to `tools\u002Fcrypto\u002Fobserver_bot.py`. From WSL\u002FLinux the script works, but it syncs `.env`\ntoo: only `BINANCE_DEMO, BINANCE_PAPER_SIMULATE, BITGET_DEMO, CRYPTO_PG_DSN, CRYPTO_TRADING_MODE`\nare preserved from remote.\n\nIf the remote tree is dirty or diverged, do NOT force — stop and reconcile; the server also\nauto-commits deploys (`git add -A && git commit -m \"deploy: ...\"`), so remote history can differ.\n\n## Telegram delivery: never truncate agent replies\n\nTelegram caps a message at 4096 code points (use 4000). Hard slices like `result[:3800]`\ncut reports mid-word. The lossless pattern (used for \u002Fdoctor, \u002Fobserver, AI Fix):\n\n```python\nfrom tools.crypto.replies import chunk_safe  # splits on line\u002Fword edges, nothing dropped\n\nchunks = chunk_safe(f\"{heading}\\n\\n{_esc(body)}\")\nawait status.edit_text(chunks[0], parse_mode=\"HTML\")   # replace \"Running…\" message\nfor extra in chunks[1:]:\n    await msg.reply_text(extra, parse_mode=\"HTML\")\n```\n\nRules:\n- Escape (`_esc`) BEFORE chunking; `chunk_safe` cuts on newline boundaries so HTML tags stay paired.\n- `truncate_safe` (adds \"…\") is for status lines and log tails only, never for full reports.\n- If edit_text fails (old message pruned), fall back to reply_text for the first chunk too.\n\n## Env-flag triage on the server\n\nSignal behavior lives in `\u003Croot>\u002F.env` (e.g. `CRYPTO_SIGNAL_MIN_CONFIDENCE`, `CRYPTO_SIGNAL_1D_TREND_MODE=1`,\n`CRYPTO_SIGNAL_15M_ENTRY_MODE=1`, `CRYPTO_SIGNAL_SYMBOL_FOCUS=BTC\u002FUSDT,ETH\u002FUSDT,XRP\u002FUSDT`,\n`CRYPTO_SIGNAL_ADVANCED_MODE=1`, `CRYPTO_TRADING_MODE=demo`, `BITGET_DEMO=1`).\nA code-default change (e.g. confidence 0.80 → 0.35) does NOT take effect while `.env` pins the old value —\ncheck `grep -n KEY .env` after deploys, then restart the affected service.\n",{"name":5,"description":7},"main","5a348537f6ee031f76c168e397c0d023f35ef333","bundle\u002Fskills\u002Ftrader-ops","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra","https:\u002F\u002Fgithub.com\u002FP-Core-System","P Core System — the P-Core family: trading, AI brain, assistant, orchestration, and web AI server.","2026-11-13 11:33:11",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add P-Core-System\u002Fpcore-orchestra --skill trader-ops",{"tool":37,"command":38},"bunx","bunx skills add P-Core-System\u002Fpcore-orchestra --skill trader-ops",{"tool":40,"command":41},"pnpm","pnpm dlx skills add P-Core-System\u002Fpcore-orchestra --skill trader-ops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Ftrader-ops\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M78DYATRNCN2NFKA4YRBG0T9","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M78DY6XPJ7B09HWH01PGQTJZ","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M78DY267V5PK9KD65ENG451F","web-perf","Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (LCP, INP, CLS) and supplementary metrics (FCP, TBT, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fweb-perf\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M78DXXT4TWE2K8M0E9V417J9","web-design-master","Professional web design standard (\"AI Professional Web Design Master Prompt\") covering page\u002Fsection\u002Flayout design, visual hierarchy, color systems, typography scales, 8-point grid spacing, responsive breakpoints, accessibility, and design QA review. Use when designing or building any page, section, or layout so it looks deliberately designed by a professional product team rather than a generic AI template.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fweb-design-master\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M78DXTPQ1XARW18D46JFY5AP","verification-before-completion","Require command evidence before claiming done. Use proactively before VERIFY_PASS, ORCHESTRA_COMPLETE, or \"all fixed\" statements. Run tests, lint, health, or git checks — never trust claims without output.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M78DXKFTZ00TJRWK84FNHGVH","ui-ux-pro-max","UI\u002FUX design intelligence for web and mobile. Searchable local database with 84 styles, 192 color palettes, 74 font pairings, 192 product types, 98 UX guidelines, 104 icon entries, 16 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn\u002Fui, Jetpack Compose, Angular, Laravel, JavaFX, WPF, WinUI, Avalonia, Uno Platform, UWP, Three.js, and HTML\u002FCSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fui-ux-pro-max\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FP-Core-System\u002Fpcore-orchestra\u002Fblob\u002Fmain\u002Fbundle\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[]]