agentleFS
lijunzhang-disabledlijunzhang-disabled/claude-bridge/SKILL.md

claude-bridge

Skill0 starsChanged 7 months agoMITView on GitHub

Bridge chat platforms (Telegram, WeChat, ...) to local Claude Code. Supports multi-bot, permission approval, images, slash commands.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. Mugyen/claude-bridge★ 4same name
    2. fxl1209739475-fxl/codex-claude-bridge★ 0same name

    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.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a daemon that connects chat apps (Telegram by default, WeChat also supported) to your local Claude Code.

    line 8
  2. Very specific:

    If not_installed: tell the user to run npm install (from the project directory).

    line 33
  3. Very specific:

    If no account files: tell the user no channel is set up yet.

    line 41
  4. Distinctive:

    If account files exist: continue.

    line 42
  5. Distinctive:

    If the user explicitly requests an action (e.g.

    line 82
  6. Distinctive:

    All commands run from the project directory.

    line 86
  7. Very specific:

    All data is stored in ~/.claude-bridge/:

    line 99
  8. Distinctive:

    When Claude requests a tool, the user receives a permission prompt in chat:

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claude-bridge

Run a daemon that connects chat apps (Telegram by default, WeChat also supported) to your local Claude Code. Multi-bot, hot-add from chat, permission approval, images, slash commands.

Prerequisites

  • Node.js >= 18
  • macOS or Linux
  • Claude Code (@anthropic-ai/claude-agent-sdk)
  • Telegram bot token from @BotFather (for Telegram), or a personal WeChat account with the ClawBot plugin enabled (for WeChat)

Trigger scenarios

Triggered when the user mentions "Telegram bot", "WeChat bridge", "claude bridge", "connect my bot", "set up telegram claude", "chat bot for claude code", etc.

Behavior when triggered

When triggered, do not take any actions immediately. First probe the current state, then present the user with actionable options.

Assume the project lives at the directory that contains this SKILL.md file (so relative commands work). Shell commands below assume that working directory.

Step 1: Check if dependencies are installed

test -d node_modules && echo "installed" || echo "not_installed"
  • If not_installed: tell the user to run npm install (from the project directory). Stop.

Step 2: Check which channels are configured

ls ~/.claude-bridge/accounts/*.json 2>/dev/null | head -3
  • If no account files: tell the user no channel is set up yet. Ask which channel they want (Telegram recommended) and run npm run setup -- telegram or npm run setup -- wechat.
  • If account files exist: continue.

Step 3: Check daemon status

npm run daemon -- status

Step 4: Show status summary

If the daemon is not running:

claude-bridge is configured but not running.

Options:
  setup    Add a new bot (run npm run setup -- <channel>)
  start    Start the daemon (npm run daemon -- start)
  logs     View recent logs (npm run daemon -- logs)

If the daemon is running:

claude-bridge is running (PID: xxx, N bots).

Options:
  stop     Stop the daemon
  restart  Restart after code changes
  logs     Tail recent logs

Chat commands (send in Telegram/WeChat):
  /help                 List all commands
  /bots                 List running bots (Telegram)
  /spawn <token> <cwd>  Add a new Telegram bot without restart
  /rmbot <accountId>    Remove a bot
  /clear                Start a fresh conversation
  /status               Show session state

If the user explicitly requests an action (e.g. "start the bot", "stop it", "show logs"), skip the status preview and run the corresponding command directly.

Subcommand reference

All commands run from the project directory.

CommandExecutesDescription
setupnpm run setup -- <channel>Interactive setup for telegram or wechat
startnpm run daemon -- startStart the daemon (launchd/systemd)
stopnpm run daemon -- stopStop the daemon
restartnpm run daemon -- restartRestart
statusnpm run daemon -- statusShow status
logsnpm run daemon -- logsTail recent logs

Data directory

All data is stored in ~/.claude-bridge/:

~/.claude-bridge/
├── accounts/       # one JSON per configured bot
├── config.env      # global config (channel, working dir, model, permission mode)
├── sessions/       # per-account session state
├── logs/           # daily log files (30-day retention)
└── get_updates_buf # WeChat polling sync buffer (if using WeChat)

Override the location with CLAUDE_BRIDGE_DATA_DIR.

Multi-bot

One daemon can run many Telegram bots simultaneously, each with its own working directory. See docs/multi-bot.md in the project directory.

Permission approval

When Claude requests a tool, the user receives a permission prompt in chat:

  • y / yes — allow once
  • n / no — deny
  • a / always — allow and auto-approve future calls to that tool (per-session)
  • 10-minute timeout auto-denies

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.