Claudebot Architecture banner
Jeffrey0117 Jeffrey0117

Claudebot Architecture

Development community

Description

--- name: claudebot-architecture description: ClaudeBot 專案架構總覽。了解訊息流、queue 機制、session 管理、檔案結構。 --- # ClaudeBot Architecture ## Stack Telegraf v4 + TypeScript + bcrypt + zod + dotenv ## Message Flow ``` Telegram User ↓ [Telegraf Bot] (polling mode) ↓ [Middleware] errorHandler → dedup → rateLimit → auth ↓ [Handler] text | photo | document | callback_query | command ↓ [Queue] enqueue() → FIFO, one-at-a-time per project ↓ [Claude Runner] spawn('claude', [...args], { shell: fa

Installation

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

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

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

Full documentation available on GitHub

View Source Repository