Token导航 LogoToken导航

Agent Skill · 运维

tg-cs-agent(tg cs 特工)

tg-cs-agent 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tg-cs-agent 是运维类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在运维类的 954 个 Skill 里排第 800。

总安装 2,913周安装 119GitHub Stars 公开资料未说明下载 933核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tg-cs-agent(tg cs 特工)
来源仓库:https://github.com/youziyouzishu/tg-cs-agent
安装命令:
openclaw skills install tg-cs-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tg-cs-agent

这个 Skill 是做什么的

运维类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

tg-cs-agent 用于部署和管理基于 Claude + RAG 的 Telegram 客服机器人。适合在 OpenClaw 中设置知识库、管理对话流或扩展自动化服务。支持添加文档、监控消息队列并执行智能回复逻辑。

安装命令:openclaw skills install tg-cs-agent,需确认 Telegram API 密钥与网络权限。使用前请核实机器人行为是否符合平台政策与用户隐私规范。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install tg-cs-agent;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tg-cs-agent 怎么安装?

在终端执行 openclaw skills install tg-cs-agent。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tg-cs-agent 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tg-cs-agent 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

tg-cs-agent 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

tg-cs-agent 用的人多吗?

公开数据是累计安装 2,913 次,近一周安装 119 次,下载 933 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tg-cs-agent 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理运维类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
docker-essentials

Docker 基础 · OpenClaw

1,005,15130接触敏感数据MIT-0通过
playwright-scraper-skill

Playwright scraper 技能 · OpenClaw

923,55754接触敏感数据MIT-0有提醒
moltguard

moltguard 搜索 · OpenClaw

825,096110接触敏感数据MIT-0通过
finance-news

财经新闻 · OpenClaw

275,51210需要联网MIT-0有提醒
security-monitor

安全监视器 · OpenClaw

224,1695需要联网MIT-0有提醒
tg-cs-agent

tg cs 特工 · 本页

2,913—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
tg-cs-agent
description
Deploy and manage a Telegram customer service bot powered by Claude + RAG. Use when setting up a new CS bot, adding knowledge base docs, managing the bot lifecycle (start/stop/restart), or troubleshooting bot issues. Triggers on "customer service bot", "CS bot", "客服机器人", "telegram bot", "knowledge base".

Telegram Customer Service Agent

RAG-powered Telegram customer service bot using Claude + Telethon + ChromaDB.

Architecture

  • Telegram: Telethon userbot (not Bot API) — appears as a real user
  • AI: Claude via Anthropic API with RAG context from local markdown docs
  • Knowledge Base: ChromaDB + multilingual sentence-transformers embeddings
  • Handoff: Auto-escalation to human agent when AI can't help

Prerequisites

  • Python 3.11+
  • Telegram account with API credentials (get from https://my.telegram.org)
  • Anthropic API key
  • Telethon session (logged in via tgctl-telethon login or manual auth)

Setup New Bot

1. Create project

mkdir -p ~/tg-cs-bot && cd ~/tg-cs-bot
cp -r <skill_dir>/scripts/*.py .
pip install anthropic chromadb sentence-transformers python-dotenv telethon

2. Configure environment

Create .env:

ANTHROPIC_API_KEY=<key>
ANTHROPIC_BASE_URL=https://api.anthropic.com
TELEGRAM_API_ID=<id>
TELEGRAM_API_HASH=<hash>
TELEGRAM_PROFILE=default
MODEL=claude-sonnet-4-20250514
KNOWLEDGE_DIR=docs
MAX_HISTORY=20
HANDOFF_CHAT_ID=<admin_telegram_id_or_username>

3. Add knowledge base

Put markdown files in docs/ directory. The bot splits by ## headers and vectorizes with paraphrase-multilingual-MiniLM-L12-v2 for multilingual support.

4. Login to Telegram (first time only)

python3 -c "
from telethon import TelegramClient
import asyncio
async def login():
    c = TelegramClient('~/.tgctl-telethon/default/session', API_ID, 'API_HASH')
    await c.start()
    print('Logged in:', (await c.get_me()).first_name)
asyncio.run(login())
"

5. Run

python3 main.py

Managing the Bot

  • Start: python3 main.py (or use the start.sh script)
  • Stop: Ctrl+C or kill the process
  • Add knowledge: Drop .md files in docs/, restart bot
  • Clear user history: User sends /clear
  • Request human: User sends /human

Customization

System Prompt

Edit config.py → __post_init__ → self.system_prompt to change:

  • Bot personality and tone
  • Language rules
  • Handoff trigger conditions
  • Platform-specific instructions

Embedding Model

In knowledge.py, change model_name for different language support:

  • paraphrase-multilingual-MiniLM-L12-v2 — multilingual (recommended)
  • all-MiniLM-L6-v2 — English only, faster
  • shibing624/text2vec-base-chinese — Chinese optimized

Handoff Behavior

The bot adds [HANDOFF] to responses when it can't help. This triggers:

  1. Notification to HANDOFF_CHAT_ID with user info
  2. A message to the user that human support is coming

File Structure

tg-cs-bot/
├── main.py              # Entry point, message routing
├── config.py            # Config + system prompt
├── agent.py             # Claude RAG agent
├── knowledge.py         # ChromaDB knowledge base
├── telegram_client.py   # Telethon wrapper
├── .env                 # Secrets (not committed)
├── docs/                # Knowledge base markdown files
│   ├── platform.md
│   ├── faq.md
│   └── ...
└── requirements.txt

Troubleshooting

  • database is locked: Kill all Python processes, delete session.session-journal, rebuild session with sqlite dump/restore
  • Not logged in: Run the login step again
  • Poor RAG results: Check embedding model matches your docs language, use multilingual model for mixed content
  • Bot not responding: Check [READY] Listening for messages... in logs, verify Telegram connection

平台分布

OpenClaw

70.99%
按下载量换算662

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills