debug
Skill4 starsChanged 7 months agoMITView on GitHub
One-shot diagnostic for cookiedclaw — checks every common pitfall (gateway/CC daemon state, linger, /health, tokens in keys.env, binary presence, plugin install, .mcp.json URL, double-claude-polling, identity files, recent journalctl, tmux session, Telegram bot reachability) and prints a ✓/✗ summary with one-liner fixes for each ✗. Use when the bot doesn't answer, MCP fails, "something's off", or before opening a real bug report. Read-only — never mutates state.
- Reads credentials
144 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
- agentic-community/mcp-gateway-registrytheir own version, first seen Oct 4, 2026
Used with
Projects with it also use add-ollama-tool, add-slack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-ollama-tool
Add Ollama MCP server so the container agent can call local models and optionally manage the Ollama model library.
Also in 6 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 6 projects that use this
sskarzSkilladd-telegram-swarm
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Also in 5 projects that use this
- +9 more from microsoft
Other versions144 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 144
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- nanocoai/nanoclaw★ 31ksame name
- openai/symphony★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- NVIDIA/Model-Optimizer★ 5.2ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- jsmastery-pro/skills★ 1.4ksame name
- agentic-community/mcp-gateway-registry★ 956same name
- suboss87/FDEOps★ 950same name
- kdlbs/kandev★ 899same name
134 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdcCursor rule
- daemon-restartSkill
- daemon-statusSkill
- fal-setupSkill
- install-skillSkill
- setupSkill
- supermemory-setupSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 127 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
After all probes, render a single summary block with one bullet per check:
- Distinctive: line 79
Don't print the actual values.
- Very specific: line 84
Read ~/.claude/plugins/cache/cookiedclaw-claude-code/cookiedclaw/*/.mcp.json — url matches http://127.0.0.1:47390/mcp?
- Distinctive: line 99
When a check fails, append a one-liner fix or a pointer.
- Distinctive: line 116
If a category isn't applicable (e.g.
- Distinctive: line 120
Don't print or log token values, even partially.
- Very specific: line 121
Don't start, stop, restart, enable, or daemon-reload anything — this skill is read-only.
- Distinctive: line 122
Don't ask clarifying questions before running probes.
- Distinctive: line 123
Don't pad the output with "Hope this helps!" / "Let me know if you need more!" — keep it dense and scannable.
“Common” is measured: kept by at least 6 in 10 of the 127 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cookiedclaw debug
You are running a one-shot diagnostic across the entire cookiedclaw stack. Read-only — never start / stop / restart / daemon-reload / systemctl enable / write any files. Surface what's wrong, hand the user a one-liner fix, let them act.
The goal is to make the failure mode self-evident the first time the user runs this, rather than them paging through individual journalctl commands.
How to run
Execute every probe in one or two Bash calls if practical (the tool log gets unreadable otherwise). Don't ask the user clarifying questions — they invoked /cookiedclaw:debug because something's already off; they want answers.
After all probes, render a single summary block with one bullet per check:
🍪 cookiedclaw debug
[GATEWAY]
✓ unit active cookiedclaw-gateway.service
✓ enabled yes
✓ /health {"status":"ok","bot_polling":true,"version":"0.1.0"}
✓ binary ~/.cookiedclaw/bin/cookiedclaw-gateway (linux-arm64, exec)
[CC DAEMON]
✓ unit active cookiedclaw.service
✓ tmux session cookiedclaw (1 window)
✓ no double-polling 1 claude process
✗ launcher.sh sources keys.env missing `set -a; . keys.env; set +a` block
fix: rerun /cookiedclaw:setup
[WORKSPACE]
✓ CLAUDE.md / IDENTITY.md / USER.md / SOUL.md
✓ keys.env chmod 600
✓ TELEGRAM_BOT_TOKEN set
✓ COOKIEDCLAW_GATEWAY_TOKEN set
[ADAPTER]
✓ plugin installed cookiedclaw@cookiedclaw-claude-code
✓ .mcp.json http://127.0.0.1:47390/mcp
[SYSTEM]
✓ linger yes
✗ telegram getMe 429 too many requests
fix: wait ~30s for telegram rate-limit reset
[RECENT LOGS]
cookiedclaw-gateway: <last 5 lines>
cookiedclaw: <last 5 lines>Customize counts/values from real probe output. If everything is ✓, end with a one-line "all clear" message.
What to probe (in any order)
gateway
systemctl --user is-active cookiedclaw-gatewaysystemctl --user is-enabled cookiedclaw-gatewaycurl -fsSm 3 http://127.0.0.1:47390/health— parse JSON, checkstatus,bot_polling,versiontest -x ~/.cookiedclaw/bin/cookiedclaw-gateway+file ~/.cookiedclaw/bin/cookiedclaw-gateway(architecture sanity)
CC daemon
systemctl --user is-active cookiedclawtmux has-session -t cookiedclaw+tmux lsps -e -o comm=,args= | awk '$1=="claude" && /plugin:cookiedclaw/' | wc -l— should be 1 (the daemon's own claude). >1 means an ad-hoc TUI is also running, will collide.grep -E "set -a|keys\.env" ~/.cookiedclaw/launcher.sh— verify the launcher sources keys.env (silent-401 trap if it doesn't)
workspace
test -ffor each of./CLAUDE.md,./IDENTITY.md,./USER.md,./SOUL.mdls -la ./.cookiedclaw/keys.env— check chmod is 600grep -c '^TELEGRAM_BOT_TOKEN=' ./.cookiedclaw/keys.env— should be 1grep -c '^COOKIEDCLAW_GATEWAY_TOKEN=' ./.cookiedclaw/keys.env— should be 1- Don't print the actual values. Tokens stay redacted always.
adapter
claude plugin list(or read~/.claude/plugins/installed_plugins.json) —cookiedclaw@cookiedclaw-claude-codepresent?- Read
~/.claude/plugins/cache/cookiedclaw-claude-code/cookiedclaw/*/.mcp.json—urlmatcheshttp://127.0.0.1:47390/mcp? (the version segment matches whatever installed)
system
loginctl show-user "$(id -un)" --property=Linger—Linger=yes?curl -fsSm 5 https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getMe(read token from keys.env, don't print it) — should return{"ok":true,...}. If 401: bad token. If 429: rate limited. If timeout: network. Token never appears in output.
recent logs
journalctl --user -u cookiedclaw-gateway --no-pager -n 5journalctl --user -u cookiedclaw --no-pager -n 5- Show as-is. If a unit hasn't been started yet there'll be
No journal files were found— that's fine, just say "no logs yet".
Common ✗ → fix mappings
When a check fails, append a one-liner fix or a pointer. The point is to stop the user from googling.
| Failure | One-liner fix |
cookiedclaw-gateway inactive (Restart=always but failed) | journalctl --user -fu cookiedclaw-gateway to see why; common: missing COOKIEDCLAW_GATEWAY_TOKEN in keys.env, run /cookiedclaw:setup |
| /health unreachable | gateway not running. systemctl --user start cookiedclaw-gateway |
bot_polling: false | TELEGRAM_BOT_TOKEN missing or invalid in keys.env. /cookiedclaw:setup to re-enter |
| Binary missing or wrong arch | /cookiedclaw:setup re-runs platform-detected download |
| double claude polling (count > 1) | exit any ad-hoc claude TUI: Ctrl+C ×2. Daemon is the canonical one |
| linger != yes | loginctl enable-linger $(id -un) (may need polkit prompt; from local TTY) |
| Token-line absent in keys.env | /cookiedclaw:setup (idempotent — adds missing pieces, keeps existing) |
| .mcp.json URL wrong | re-install plugin: claude plugin uninstall && marketplace add && plugin install (or follow plugin migration in README) |
| telegram getMe → 401 | invalid bot token in keys.env. Get fresh from @BotFather, edit keys.env, restart gateway |
| telegram getMe → 429 | rate-limited; wait ~30s |
| telegram getMe → timeout | network. curl -v https://api.telegram.org/ from the host to see |
| chmod on keys.env != 600 | chmod 600 ./.cookiedclaw/keys.env |
If a category isn't applicable (e.g. macOS user, no systemd) — say so politely and skip rather than failing.
Don'ts
- Don't print or log token values, even partially. Mask them in any debug output.
- Don't
start,stop,restart,enable, ordaemon-reloadanything — this skill is read-only. The user gets the diagnosis, then chooses to act with/cookiedclaw:setup//cookiedclaw:daemon-restart/ shell. - Don't ask clarifying questions before running probes. Run all probes first; only ask follow-ups if results are genuinely ambiguous (e.g. "I see logs from a different workspace — which one are you in right now?").
- Don't pad the output with "Hope this helps!" / "Let me know if you need more!" — keep it dense and scannable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

