[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JF3M9QAPDGFPNG0BBN4Z82":3,"skill-same:01M6JF3M9QAPDGFPNG0BBN4Z82":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6JF3M9QAPDGFPNG0BBN4Z82","hermes-gateway-troubleshooting",null,"Troubleshoot Hermes Agent gateway\u002Fruntime issues: messaging sessions, model\u002Fprovider switches, auth, logs, and state.db consistency.","S3YED\u002Fappie-kit","S3YED","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62743867?v=4","01M6JBKBRRVP6KMS0VWZ27T3R6","01M6JBKBX0KG30284PW1DBYJT1",14,"MIT","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fops\u002Fhermes-gateway-troubleshooting\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"troubleshooting","hermes gateway troubleshooting","hermes","gateway","windows","state","issues","messaging","auth","logs","linux","model","sessions","hermes agent","provider","runtime","db","consistency","appie","troubleshoot","2026-11-10 10:12:30",false,"---\nname: hermes-gateway-troubleshooting\ndescription: \"Troubleshoot Hermes Agent gateway\u002Fruntime issues: messaging sessions, model\u002Fprovider switches, auth, logs, and state.db consistency.\"\nversion: 1.1.0\nauthor: Appie-3\nlicense: MIT\nplatforms: [linux, macos, windows]\n---\n\n# Hermes Gateway Troubleshooting\n\nUse this skill when Hermes behaves differently in Telegram\u002FDiscord\u002FSlack\u002Fetc. than in the CLI, especially after model\u002Fprovider changes, OAuth refreshes, `\u002Fmodel` switches, gateway restarts, or session resumes.\n\n## Triggers\n\n- User says a selected model \"doesn't work\", \"switches back\", \"falls back\", or shows wrong runtime metadata.\n- Gateway responds from a different model\u002Fprovider than `hermes config` says.\n- CLI test works, but Telegram\u002Fgateway session appears stale.\n- Logs mention polling conflicts, stale sessions, stream watchdogs, provider\u002Fauth errors, or config migration.\n- Session rows in `state.db` disagree with runtime logs.\n\n## Investigation sequence\n\n1. **Check current config and auth first.**\n   - `hermes status --all` — per-provider auth health report (`✗ not logged in`, `No \u003Cprovider> credentials stored`, or `✓` with key hint)\n   - `hermes auth list` — credential pools per provider; empty arrays mean no stored credentials despite provider being selected\n   - `hermes config check`\n   - Inspect `~\u002F.hermes\u002Fconfig.yaml` model block: `model.default`, `model.provider`, `model.base_url`, `fallback_providers`, auxiliary provider settings.\n\n2. **When status shows a provider as \"not logged in\" or the user says \"OAuth is shady\", dig into credential health.**\n   - `cat ~\u002F.hermes\u002Fauth.json` via terminal (read_file redacts this file) — check `credential_pool[\u003Cprovider>]`: empty array = no stored credentials.\n   - Check `active_provider` field — is it pointing at a provider with empty credentials? This causes silent fallback or auth failure every turn.\n   - Look for stale backup files: `ls ~\u002F.hermes\u002Fauth.json.bak-*` — previous broken auth attempts.\n   - If switching from a broken OAuth provider to a working API-key provider, follow `references\u002Foauth-to-apikey-provider-switch.md`.\n\n3. **Read gateway and agent logs with timestamps.**\n   - Gateway ingress and delivery: `~\u002F.hermes\u002Flogs\u002Fgateway.log`\n   - Model\u002Fruntime\u002Ftool calls: `~\u002F.hermes\u002Flogs\u002Fagent.log`\n   - Warnings\u002Ferrors: `~\u002F.hermes\u002Flogs\u002Ferrors.log`\n   \n4. **Differentiate runtime truth from metadata truth.**\n   - Runtime truth: `agent.turn_context`, `OpenAI client created`, and `API call #... model=... provider=...` in `agent.log`.\n   - Metadata truth: `sessions` table row (`model`, `billing_provider`, `billing_base_url`, `model_config`) and `~\u002F.hermes\u002Fsessions\u002Fsessions.json` current session mapping.\n\n5. **Reproduce with a minimal CLI call using the same default config.**\n   - Example: `hermes chat -q 'Reply exactly: ok' --toolsets safe -Q`\n   - For provider-specific checks: add `--provider \u003Cprovider> --model \u003Cmodel>`.\n   - A CLI success proves auth and provider wiring; a gateway-only failure usually points to session state, stale process config, or messaging\u002Fgateway lifecycle.\n\n6. **Check the active gateway process.**\n   - Confirm only one gateway owns the bot token\u002Fpolling stream.\n   - Polling conflicts (`terminated by other getUpdates request`) mean multiple bot instances or recently-stopped polling sessions. Resolve process\u002Fservice duplication before diagnosing model behavior.\n\n## Model\u002Fprovider switch checklist\n\nWhen a model switch seems half-applied:\n\n- Verify config: selected `model.default`, `model.provider`, and `model.base_url`.\n- Verify auth: provider credential exists and is healthy.\n- Verify runtime logs: actual API calls use the intended provider\u002Fmodel.\n- Verify session DB: current gateway session row matches intended provider\u002Fmodel.\n- Verify fallback chain: remove or reorder fallbacks if they silently mask provider failures.\n- Restart gateway only after config changes that are read at process startup; do not assume a running gateway rereads every setting.\n- If a session row is stale but runtime is correct, repair or reset the session so future resume\u002Fmetadata uses the correct model.\n\n## Safe remediation patterns\n\n- Run `hermes doctor --fix` for config migrations and harmless install\u002Flink repairs.\n- Prefer `\u002Freset` or a fresh session when the issue is session-scoped and no durable state must be preserved.\n- If preserving the chat matters, update only the current session's row and confirm via read-back. Include `model_config` with `model`, `provider`, `base_url`, reasoning config, and iteration\u002Ftoken settings when applicable.\n- Disable unintended fallbacks only when the desired behavior is strict provider use. Otherwise, document the fallback as intentional.\n- After changes, run a minimal model call and verify both runtime output and session metadata.\n\n## Pitfalls\n\n- Do not conclude \"auth works\" from config alone. Make a real minimal call.\n- Do not conclude \"the model is wrong\" from `sessions.model` alone. Compare with `agent.log` API-call lines.\n- Do not leave a stale fallback provider that points at the previous model if the user explicitly wants to know when the selected provider fails.\n- Do not save transient missing-package or local setup errors as durable rules. Capture the remediation pattern, not the one-off failure.\n- Avoid dumping huge logs into context. Search for targeted timestamps, model names, provider names, session IDs, and error classes.\n\n## Verification\n\nA fix is not done until:\n\n- `hermes config check` is clean enough for the intended provider.\n- `hermes auth list` shows the selected provider credential.\n- A minimal `hermes chat -q ...` returns the expected text from the selected provider\u002Fmodel.\n- The active gateway session row, if relevant, reflects the same provider\u002Fmodel.\n- The user-facing summary separates actual runtime behavior from stale metadata or fallback behavior.\n\n## References\n\n- `references\u002Fmodel-switch-metadata-fallback.md` — session-derived pattern for Codex\u002FGPT-5.5 switch issues where runtime was correct but session metadata and fallbacks were stale.\n- `references\u002Foauth-to-apikey-provider-switch.md` — diagnosing and fixing a broken OAuth provider (empty credential pool) by switching to a working API-key provider, with exact commands and auth.json cleanup.===ME:hermes-gateway-troubleshooting","# Hermes Gateway Troubleshooting\n\nUse this skill when Hermes behaves differently in Telegram\u002FDiscord\u002FSlack\u002Fetc. than in the CLI, especially after model\u002Fprovider changes, OAuth refreshes, `\u002Fmodel` switches, gateway restarts, or session resumes.\n\n## Triggers\n\n- User says a selected model \"doesn't work\", \"switches back\", \"falls back\", or shows wrong runtime metadata.\n- Gateway responds from a different model\u002Fprovider than `hermes config` says.\n- CLI test works, but Telegram\u002Fgateway session appears stale.\n- Logs mention polling conflicts, stale sessions, stream watchdogs, provider\u002Fauth errors, or config migration.\n- Session rows in `state.db` disagree with runtime logs.\n\n## Investigation sequence\n\n1. **Check current config and auth first.**\n   - `hermes status --all` — per-provider auth health report (`✗ not logged in`, `No \u003Cprovider> credentials stored`, or `✓` with key hint)\n   - `hermes auth list` — credential pools per provider; empty arrays mean no stored credentials despite provider being selected\n   - `hermes config check`\n   - Inspect `~\u002F.hermes\u002Fconfig.yaml` model block: `model.default`, `model.provider`, `model.base_url`, `fallback_providers`, auxiliary provider settings.\n\n2. **When status shows a provider as \"not logged in\" or the user says \"OAuth is shady\", dig into credential health.**\n   - `cat ~\u002F.hermes\u002Fauth.json` via terminal (read_file redacts this file) — check `credential_pool[\u003Cprovider>]`: empty array = no stored credentials.\n   - Check `active_provider` field — is it pointing at a provider with empty credentials? This causes silent fallback or auth failure every turn.\n   - Look for stale backup files: `ls ~\u002F.hermes\u002Fauth.json.bak-*` — previous broken auth attempts.\n   - If switching from a broken OAuth provider to a working API-key provider, follow `references\u002Foauth-to-apikey-provider-switch.md`.\n\n3. **Read gateway and agent logs with timestamps.**\n   - Gateway ingress and delivery: `~\u002F.hermes\u002Flogs\u002Fgateway.log`\n   - Model\u002Fruntime\u002Ftool calls: `~\u002F.hermes\u002Flogs\u002Fagent.log`\n   - Warnings\u002Ferrors: `~\u002F.hermes\u002Flogs\u002Ferrors.log`\n   \n4. **Differentiate runtime truth from metadata truth.**\n   - Runtime truth: `agent.turn_context`, `OpenAI client created`, and `API call #... model=... provider=...` in `agent.log`.\n   - Metadata truth: `sessions` table row (`model`, `billing_provider`, `billing_base_url`, `model_config`) and `~\u002F.hermes\u002Fsessions\u002Fsessions.json` current session mapping.\n\n5. **Reproduce with a minimal CLI call using the same default config.**\n   - Example: `hermes chat -q 'Reply exactly: ok' --toolsets safe -Q`\n   - For provider-specific checks: add `--provider \u003Cprovider> --model \u003Cmodel>`.\n   - A CLI success proves auth and provider wiring; a gateway-only failure usually points to session state, stale process config, or messaging\u002Fgateway lifecycle.\n\n6. **Check the active gateway process.**\n   - Confirm only one gateway owns the bot token\u002Fpolling stream.\n   - Polling conflicts (`terminated by other getUpdates request`) mean multiple bot instances or recently-stopped polling sessions. Resolve process\u002Fservice duplication before diagnosing model behavior.\n\n## Model\u002Fprovider switch checklist\n\nWhen a model switch seems half-applied:\n\n- Verify config: selected `model.default`, `model.provider`, and `model.base_url`.\n- Verify auth: provider credential exists and is healthy.\n- Verify runtime logs: actual API calls use the intended provider\u002Fmodel.\n- Verify session DB: current gateway session row matches intended provider\u002Fmodel.\n- Verify fallback chain: remove or reorder fallbacks if they silently mask provider failures.\n- Restart gateway only after config changes that are read at process startup; do not assume a running gateway rereads every setting.\n- If a session row is stale but runtime is correct, repair or reset the session so future resume\u002Fmetadata uses the correct model.\n\n## Safe remediation patterns\n\n- Run `hermes doctor --fix` for config migrations and harmless install\u002Flink repairs.\n- Prefer `\u002Freset` or a fresh session when the issue is session-scoped and no durable state must be preserved.\n- If preserving the chat matters, update only the current session's row and confirm via read-back. Include `model_config` with `model`, `provider`, `base_url`, reasoning config, and iteration\u002Ftoken settings when applicable.\n- Disable unintended fallbacks only when the desired behavior is strict provider use. Otherwise, document the fallback as intentional.\n- After changes, run a minimal model call and verify both runtime output and session metadata.\n\n## Pitfalls\n\n- Do not conclude \"auth works\" from config alone. Make a real minimal call.\n- Do not conclude \"the model is wrong\" from `sessions.model` alone. Compare with `agent.log` API-call lines.\n- Do not leave a stale fallback provider that points at the previous model if the user explicitly wants to know when the selected provider fails.\n- Do not save transient missing-package or local setup errors as durable rules. Capture the remediation pattern, not the one-off failure.\n- Avoid dumping huge logs into context. Search for targeted timestamps, model names, provider names, session IDs, and error classes.\n\n## Verification\n\nA fix is not done until:\n\n- `hermes config check` is clean enough for the intended provider.\n- `hermes auth list` shows the selected provider credential.\n- A minimal `hermes chat -q ...` returns the expected text from the selected provider\u002Fmodel.\n- The active gateway session row, if relevant, reflects the same provider\u002Fmodel.\n- The user-facing summary separates actual runtime behavior from stale metadata or fallback behavior.\n\n## References\n\n- `references\u002Fmodel-switch-metadata-fallback.md` — session-derived pattern for Codex\u002FGPT-5.5 switch issues where runtime was correct but session metadata and fallbacks were stale.\n- `references\u002Foauth-to-apikey-provider-switch.md` — diagnosing and fixing a broken OAuth provider (empty credential pool) by switching to a working API-key provider, with exact commands and auth.json cleanup.===ME:hermes-gateway-troubleshooting",{"name":5,"author":43,"license":14,"version":44,"platforms":45,"description":7},"Appie-3","1.1.0",[28,46,22],"macos","master","8ec37df6d71fb664ea19d32c079e7d3ff931a8e0","skills\u002Fops\u002Fhermes-gateway-troubleshooting",3,"https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit","https:\u002F\u002Fweblyfe.ai","https:\u002F\u002Fgithub.com\u002FS3YED","2026-08-27 01:54:02",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add S3YED\u002Fappie-kit --skill hermes-gateway-troubleshooting",{"tool":61,"command":62},"bunx","bunx skills add S3YED\u002Fappie-kit --skill hermes-gateway-troubleshooting",{"tool":64,"command":65},"pnpm","pnpm dlx skills add S3YED\u002Fappie-kit --skill hermes-gateway-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fops\u002Fhermes-gateway-troubleshooting\u002FSKILL.md",true,[],[70,93,119,143,167,191],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6JFD4M6N4DSGC7TXEJ5R3J2","ai-music","AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram\u002Ffeature visualization.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fwethlete\u002Fai-music\u002FSKILL.md",[],[77,78,79,80,81,82,20,31,83,84,85,86,87,88,89,90,91,92],"music","ai music","humanizer","visualization","Tools","Audio","songwriting","suno","lyrics","prompts","heartmula","craft","generation","feature","ai music generation","music generation",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6JFCZE4XNFQFMNZDHKHT5V5","agentic-webdesign-design-system-ingestion","Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-design-system-ingestion\u002FSKILL.md",[],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,36],"design","agentic","design system","system","ingestion","webdesign","agentic webdesign design system ingestion","components","generate","design systems","website","ui","Tailwind","bolt","lovable","v0","design-system","wed","design system components",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":38},"01M6JFCVPX3913CFAS6QQJ33ZB","agentic-webdesign-agent-elements","Use 21st.dev Agent Elements — 25 shadcn\u002Fui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-agent-elements\u002FSKILL.md",[],[101,126,105,127,128,129,107,130,131,132,133,134,135,136,137,138,139,140,141,142],"elements","agentic webdesign agent elements","MCP","ai agent","registry","search","streaming","open source","open","Bash","plan","subagent","edit","install","input","lock","source",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":38},"01M6JFCQC7H65M9QJ6TRE71BS1","vercel-deployment","Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fvercel-deployment\u002FSKILL.md",[],[150,151,152,46,153,28,22,154,155,156,157,158,159,160,161,162,163,164,165,166],"deployment","vercel deployment","vercel","cli","deploy","vercel deploy","REST","api","site","deploy to vercel","token","rest api","host","sites","paths","sanitization","static site",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":38},"01M6JFCM4SMTXBM5A01BK2YQG1","software-quality-workflows","Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsoftware-quality-workflows\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],"workflows","quality","software","software quality workflows","review","tdd","workflow","commit","debugging","code","debugger","pre-commit","investigation","code simplification","user","simplification","for",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":38},"01M6JFCGD0M6CEATY01W7YN6DB","react-component-refactoring","Safely refactor large React components into smaller, maintainable pieces using proven patterns","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Freact-component-refactoring\u002FSKILL.md",[],[198,199,200,201,202,203,204,205,46,206,207,107,208,22,209,183,210,211,212,213],"react","component","refactoring","component refactoring","react component","react component refactoring","frontend","writing","safe","typescript","react components","modular","refactor","simplify","patterns","test-driven-development"]