matecode/SKILL.md
MateCode - Claude Code Telegram Bridge 管理工具。用于启动、停止、监控 Telegram 远程控制服务
npx skillsauth add aresbit/matebot matecodeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 Telegram 远程控制 Claude Code。
# 启动服务
./matecode.sh start
# 停止服务
./matecode.sh stop
# 重启服务
./matecode.sh restart
# 查看状态
./matecode.sh status
# 查看日志
./matecode.sh logs
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt-get install tmux
从 @BotFather 获取 bot token,然后设置环境变量:
export TELEGRAM_BOT_TOKEN="your_token_here"
# 添加到 ~/.zshrc 或 ~/.bashrc 使其永久生效
echo 'export TELEGRAM_BOT_TOKEN="your_token_here"' >> ~/.zshrc
cp hooks/send-to-telegram.sh ~/.claude/hooks/
nano ~/.claude/hooks/send-to-telegram.sh # 编辑设置 bot token
chmod +x ~/.claude/hooks/send-to-telegram.sh
添加到 ~/.claude/settings.json:
{
"hooks": {
"Stop": [{"hooks": [{"type": "command", "command": "~/.claude/hooks/send-to-telegram.sh"}]}]
}
}
| 文件 | 用途 |
|------|------|
| matecode.sh | 主启动脚本 |
| bridge.py | Telegram 桥接服务 |
| hooks/send-to-telegram.sh | Claude 响应钩子 |
| start_bridge.sh / stop_bridge.sh | 单独控制 bridge |
| 命令 | 功能 |
|------|------|
| /status | 检查 tmux 状态 |
| /clear | 清空对话 |
| /continue_ | 继续最近会话 |
| /resume | 选择会话恢复 |
| /stop | 中断 Claude |
# 检查环境变量
echo $TELEGRAM_BOT_TOKEN
# 检查端口占用
lsof -i :8081
# 查看详细日志
cat bridge.log
tail -f bridge.log
# 手动连接到会话
tmux attach -t claude
# 强制关闭所有相关进程
pkill -f "bridge\.py"
tmux kill-session -t claude
~/.claude/hooks/send-to-telegram.sh 是否正确配置TELEGRAM_BOT_TOKEN 已设置~/.claude/telegram_chat_id 是否存在~/.claude/settings.json 的 hooks 配置documentation
Generate and edit Word documents (.docx). Supports professional documents including covers, charts, track-changes editing, and more. Suitable for any .docx creation or modification task.
tools
--- name: discord description: Use when you need to control Discord from OpenClaw via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, create/edit/delete channels and categories, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels. metadata: {"openclaw":{"emoji":"🎮","requires":{"config":["channels.discord"]}}} --- # Discord Actions ## Overview Use `discord` to manage messa
tools
Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.
tools
Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.