Claudebot Gotchas banner
Jeffrey0117 Jeffrey0117

Claudebot Gotchas

Development community

Description

--- name: claudebot-gotchas description: ClaudeBot 開發已知地雷和解法。遇到 bug 時先查這裡。 --- # Known Gotchas ## 1. shell: false (CRITICAL) **Problem:** `spawn('claude', args, { shell: true })` causes user messages to be truncated or interpreted as shell commands. **Fix:** Always use `shell: false`. On Windows, resolve the actual `cli.js` path instead. **Symptom:** Telegram 使用者的訊息被截斷,尤其是包含引號、括號、`&`、`|` 等符號時。 ## 2. Claude CLI stderr is NOT fatal **Problem:** Claude CLI outputs progress info and warnings

Installation

Installs to ~/.claude/skills/jeffrey0117-claudebot-claudebot-gotchas/SKILL.md

Terminal
mkdir -p ~/.claude/skills/jeffrey0117-claudebot-claudebot-gotchas && curl -fsSL https://raw.githubusercontent.com/Jeffrey0117/ClaudeBot/HEAD/.claude/skills/claudebot-gotchas.md -o ~/.claude/skills/jeffrey0117-claudebot-claudebot-gotchas/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository