Claudebot Claude Runner banner
Jeffrey0117 Jeffrey0117

Claudebot Claude Runner

Development community

Description

--- name: claudebot-claude-runner description: Claude CLI 整合細節:spawn 參數、stream-json 解析、session 管理、prompt 建構。 --- # Claude CLI Integration ## Spawning Claude CLI File: `src/claude/claude-runner.ts` ### CRITICAL: shell: false ```typescript spawn(cmd, args, { cwd: projectPath, shell: false, stdio: ['ignore', 'pipe', 'pipe'] }) ``` **NEVER use `shell: true`** — user prompts from Telegram become CLI arguments. Shell metacharacters (`"`, `'`, `&`, `|`, `;`, `$`) will be interpreted, causing: - P

Installation

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

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

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

Full documentation available on GitHub

View Source Repository