[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2PHYRTK958M38YJVH596X":3,"skill-same:01M6C2PHYRTK958M38YJVH596X":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":7,"ownerHtmlUrl":41,"ownerBlogUrl":7,"ownerDescription":7,"updatedAt":42,"install":43,"resources":56},"01M6C2PHYRTK958M38YJVH596X","openclaw-diagnostics","OpenClaw 故障诊断",null,"","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-08-27-historical-zero-use\u002Fopenclaw-diagnostics\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[29,30,31],"openclaw","diagnostics","openclaw diagnostics","2026-11-10 10:12:30",false,"# OpenClaw Diagnostics\n\n**Usage**: Diagnose what OpenClaw is actually doing locally — which model it uses, whether it's running, what the gateway is forwarding, and whether WorldArchitect is correctly routing through it.\n\n> **UI automation**: To click\u002Ftype\u002Finteract with OpenClaw or Antigravity via Peekaboo, use the `antigravity-computer-use` skill (which itself extends `claude-code-computer-use`). This skill covers bash diagnostics only.\n\n## The Key Insight\n\nWorldArchitect logs `provider=openclaw, model=openclaw\u002Fgemini-3-flash-preview` — that is the model string **our code sends** in the request body. OpenClaw ignores it. The gateway uses its **own configured model** (`agents.defaults.model.primary` in `~\u002F.openclaw\u002Fopenclaw.json`).\n\nTo know what model is actually running, always check the openclaw session log, not the Flask backend log.\n\n---\n\n## Step 1 — Is the gateway running?\n\n```bash\nopenclaw status 2>&1 | grep -E \"Gateway|Session|Heartbeat|model\"\nlsof -i :18789 2>\u002Fdev\u002Fnull\ncurl -s --max-time 5 http:\u002F\u002F127.0.0.1:18789\u002Fhealth | head -3\n```\n\nExpected: `Gateway service · LaunchAgent installed · loaded · running (pid XXXXX)`\n\n---\n\n## Step 2 — What model is OpenClaw configured to use?\n\n```bash\npython3 -c \"\nimport json\nd = json.load(open('$HOME\u002F.openclaw\u002Fopenclaw.json'))\nag = d.get('agents', {}).get('defaults', {}).get('model', {})\nprint('Primary model:', ag.get('primary'))\nprint('Fallbacks:', ag.get('fallbacks'))\n\"\n```\n\nAlso visible in status:\n```bash\nopenclaw status 2>&1 | grep -E \"Sessions|Heartbeat\"\n# e.g.: default gpt-5.3-codex (200k ctx)\n```\n\n---\n\n## Step 3 — Prove what model handled a real request\n\nParse the openclaw session log (JSONL format):\n\n```bash\npython3 -c \"\nimport sys, json\nlog = open('\u002Ftmp\u002Fopenclaw\u002Fopenclaw-$(date +%Y-%m-%d).log')\nfor line in log:\n    try:\n        d = json.loads(line)\n        msg = d.get('1', '') or d.get('msg', '')\n        if any(k in msg for k in ['embedded run start', 'provider=', 'model=']):\n            print(msg[:250])\n    except:\n        pass\n\" 2>\u002Fdev\u002Fnull | tail -20\n```\n\nEach request shows: `provider=openai-codex model=gpt-5.3-codex` (or minimax, etc.)\n\n---\n\n## Step 4 — Verify Tailscale Serve is routing correctly\n\n```bash\ntailscale serve status\n# Should show: https:\u002F\u002Fjeffreys-macbook-pro.tail5eb762.ts.net → http:\u002F\u002F127.0.0.1:18789\n\ncurl -s --max-time 8 https:\u002F\u002Fjeffreys-macbook-pro.tail5eb762.ts.net\u002Fhealth | head -3\n# Should return HTML with HTTP 200\n```\n\n---\n\n## Step 5 — Full end-to-end proof for a campaign request\n\nAfter a user sends a message at `http:\u002F\u002Flocalhost:8055\u002Fgame\u002F\u003Ccampaign_id>`:\n\n```bash\n# 1. WorldArchitect side — what provider\u002Fmodel was selected\ngrep \"PROVIDER_SELECTION_FINAL\\|Using provider\" \\\n  \u002Ftmp\u002Fworktree_openclaw\u002Ffeat_openclaw-tailscale-clean\u002Fflask_backend.log | tail -5\n\n# 2. OpenClaw side — what model actually executed\npython3 -c \"\nimport json\nfor line in open('\u002Ftmp\u002Fopenclaw\u002Fopenclaw-$(date +%Y-%m-%d).log'):\n    try:\n        d = json.loads(line)\n        msg = d.get('1','') or d.get('msg','')\n        if 'embedded run start' in msg or 'run end' in msg:\n            print(msg[:300])\n    except: pass\n\" 2>\u002Fdev\u002Fnull | tail -10\n```\n\n---\n\n## Slack Not Responding — Debug Flow\n\n**Always check `~\u002F.openclaw\u002Flogs\u002Fgateway.err.log` first.** Do not guess at token validity.\n\n```bash\ntail -30 ~\u002F.openclaw\u002Flogs\u002Fgateway.err.log | grep -i \"slack\\|auth\\|socket\\|error\"\n```\n\nCommon patterns:\n- `socket mode failed to start due to non-recoverable auth error` — Slack Socket Mode can't connect\n- `auto-restart attempt N\u002F10` — gateway is retrying, something is wrong\n\n**Before concluding a token is bad:**\n1. Check when the failures started relative to any gateway restarts — a restart may have loaded a stale plist\n2. Try `openclaw channels status` — if it says `stopped, error:An API error occurred: invalid_auth`, check the plist value\n3. Do NOT treat a single `apps.connections.open` → `invalid_auth` response as definitive. Slack API can return this transiently or if the request was malformed. Test it twice.\n4. Try `openclaw gateway restart` FIRST before touching tokens — the most common cause is the gateway not having picked up its latest plist env vars\n\n**Token architecture:**\n- `openclaw.json` stores `\"appToken\": \"${OPENCLAW_SLACK_APP_TOKEN}\"` — an env var reference\n- The gateway reads this ref and resolves it from its launchd env (set in `~\u002FLibrary\u002FLaunchAgents\u002Fai.openclaw.gateway.plist`)\n- If the gateway was restarted without reloading the plist (e.g. `kill -HUP` instead of launchctl stop\u002Fstart), the new plist values are not picked up\n- `openclaw gateway restart` is the correct restart command — it reloads the plist\n\n**To check what token the plist actually has:**\n```bash\nplutil -convert json -o - ~\u002FLibrary\u002FLaunchAgents\u002Fai.openclaw.gateway.plist \\\n  | jq -r '.EnvironmentVariables.OPENCLAW_SLACK_APP_TOKEN' | head -c 40\n```\n\n**If you must test the xapp token manually:**\n```bash\nTOKEN=\"$(plutil -convert json -o - ~\u002FLibrary\u002FLaunchAgents\u002Fai.openclaw.gateway.plist | jq -r '.EnvironmentVariables.OPENCLAW_SLACK_APP_TOKEN')\"\ncurl -s -X POST https:\u002F\u002Fslack.com\u002Fapi\u002Fapps.connections.open -H \"Authorization: Bearer $TOKEN\" | jq .\n```\n**WARNING: This test is unreliable when the gateway is actively retrying.** If the gateway has been retrying `apps.connections.open` repeatedly (check logs for `auto-restart attempt N\u002F10`), Slack rate-limits further connection attempts and returns `invalid_auth` for ALL calls — including your manual test — even with a valid token. Always `openclaw gateway restart` first to clear the retry storm, THEN test if needed.\n\n---\n\n## Common Issues & Fixes\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Slack `stopped, error:invalid_auth` after plist change | Gateway didn't pick up new plist env vars | `openclaw gateway restart` |\n| Slack `stopped, error:invalid_auth` persists after restart | xapp token in plist is genuinely invalid\u002Frevoked | Regenerate at api.slack.com\u002Fapps → Basic Information → App-Level Tokens |\n| Gateway token mismatch (RPC fails) | `health-check.sh` ran `openclaw gateway install --force` without `--token`, wiping plist token | Inject token: `plutil -replace EnvironmentVariables.OPENCLAW_GATEWAY_TOKEN -string \"$OPENCLAW_GATEWAY_TOKEN\" ~\u002FLibrary\u002FLaunchAgents\u002Fai.openclaw.gateway.plist && openclaw gateway restart` |\n| Gateway not listening on 18789 | `ai.openclaw.consensus` holds port 18792, crashing gateway | `kill $(lsof -t -i :18792); launchctl kickstart -k gui\u002F$(id -u)\u002Fai.openclaw.gateway` |\n| Config parse error: `DISCORD_BOT_TOKEN` | Disabled discord channel still has `${VAR}` placeholder | Set `channels.discord.token = \"\"` in openclaw.json |\n| Config parse error: `SECOND_OPINION_MCP_URL` | Disabled plugin still has env var refs | Clear `plugins.entries.openclaw-mcp-adapter.config.servers = []` |\n| `bind` error (invalid value) | Valid values: `\"auto\"`, `\"lan\"`, `\"loopback\"`, `\"custom\"`, `\"tailnet\"` | Use `\"loopback\"` for Tailscale Serve setup |\n| Test connection 502 | Gateway bound to tailnet but Tailscale Serve proxies to `127.0.0.1` | Set `gateway.bind = \"loopback\"` |\n| HTTPS test connection fails | `gateway_url` field expects a tunnel URL (port 443) | Use `https:\u002F\u002Fjeffreys-macbook-pro.tail5eb762.ts.net` (no port); Tailscale Serve handles HTTPS→18789 |\n\n---\n\n## Key Paths\n\n| Resource | Path |\n|----------|------|\n| OpenClaw config | `~\u002F.openclaw\u002Fopenclaw.json` |\n| Gateway stdout log | `~\u002F.openclaw\u002Flogs\u002Fgateway.log` |\n| Gateway stderr log | `~\u002F.openclaw\u002Flogs\u002Fgateway.err.log` |\n| Session JSONL log | `\u002Ftmp\u002Fopenclaw\u002Fopenclaw-YYYY-MM-DD.log` |\n| Raw stream log | `\u002Ftmp\u002Fopenclaw\u002Fraw-stream.jsonl` |\n| Tailscale cert (if needed) | `tailscale cert jeffreys-macbook-pro.tail5eb762.ts.net` |\n| LaunchAgent plist | `~\u002FLibrary\u002FLaunchAgents\u002Fai.openclaw.gateway.plist` |\n\n---\n\n## WorldArchitect Settings (correct values)\n\n```\nGateway URL:   https:\u002F\u002Fjeffreys-macbook-pro.tail5eb762.ts.net\nGateway Port:  18789  (ignored when URL is set — port is for localhost fallback only)\nGateway Token: ${OPENCLAW_GATEWAY_TOKEN}  (set via environment variable or secret manager)\n```\n\nThe `Gateway Port` field only matters when no `Gateway URL` is set. When a URL is provided, OpenClaw provider uses that URL directly (port from URL or default 443).\n",{},"main","42ccd02cbf5e8e47839dc3eab6fc754dc6b339cf",".claude\u002Fskills_archive\u002F2026-08-27-historical-zero-use\u002Fopenclaw-diagnostics",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill openclaw-diagnostics",{"tool":49,"command":50},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill openclaw-diagnostics",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill openclaw-diagnostics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-08-27-historical-zero-use\u002Fopenclaw-diagnostics\u002FSKILL.md",true,[57,63,67,71,75,79,83,87,91],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fbenchmark.json","REFERENCE","参考文档",16515,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Fbenchmark.json",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002Fboundary_benchmark.json",4226,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Fboundary_benchmark.json",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fboundary_evals.json",2497,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Fboundary_evals.json",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fevals.json",5564,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Fevals.json",{"path":76,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Ffiles\u002Fbug-missing-repro-steps\u002Fwork-item.md",1829,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Ffiles\u002Fbug-missing-repro-steps\u002Fwork-item.md",{"path":80,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Ffiles\u002Fclean-work-item\u002Fwork-item.md",3061,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Ffiles\u002Fclean-work-item\u002Fwork-item.md",{"path":84,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Ffiles\u002Fepic-no-decomposition\u002Fwork-item.md",1411,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Ffiles\u002Fepic-no-decomposition\u002Fwork-item.md",{"path":88,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Ffiles\u002Fmissing-acceptance-criteria\u002Fwork-item.md",1819,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Ffiles\u002Fmissing-acceptance-criteria\u002Fwork-item.md",{"path":92,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Ffiles\u002Fsparse-context-implied-deps\u002Fwork-item.md",1767,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002Flenses\u002Fcompleteness-lens\u002Fevals\u002Ffiles\u002Fsparse-context-implied-deps\u002Fwork-item.md",[96,104,111,119,127,136],{"skillNo":97,"name":98,"nameZh":7,"description":99,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":105,"name":106,"nameZh":7,"description":107,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":103},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":7,"description":114,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":118},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":120,"name":121,"nameZh":7,"description":122,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":126},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":128,"name":129,"nameZh":7,"description":130,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":131,"licenseFileUrl":132,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":126},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":7,"description":139,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":126},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]