技能详情(站内镜像,无评论)
作者:Woo, Hedy @4T-Shirt
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 97 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:4t-shirt/create-telegram-agent
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill is instruction-only and its requested actions match creating a Telegram agent, but it has a few operational and security caveats (config handling, hard-coded path assumptions, and secret storage) you should review before running it.
目的
Name/description (create a Telegram agent) align with the instructions: collecting a token, generating agent configuration, creating workspace/agent directories, and updating openclaw.json. The requested actions are expected for this purpose and there are no unrelated credential or binary requests.
说明范围
Instructions are narrowly scoped to agent setup (collect inputs, prepare JSON snippets, create directories, update openclaw.json, write AGENTS.md and SOUL.md). Two practical concerns: the skill assumes a macOS-style path (/Users/<user>/...) rather than using the actual HOME or platform-agnostic paths, and it will write the bot token into openclaw.json (plain-text secret storage) without describing protection, backups, validation, or atomic upd…
安装机制
Instruction-only skill with no install spec and no code files; nothing is downloaded or installed, which minimizes risk.
证书
No environment variables or external credentials are requested by the skill itself (the user supplies the Telegram token). Storing the provided bot token in openclaw.json is expected for this feature but is a sensitive operation; the skill does not mention securing the token, restricting file permissions, or backing up the config.
持久
always is false and the skill is user-invocable only. The skill writes files only within the user's OpenClaw config/workspace paths (as described). It does not request system-wide privileges or modify other skills.
综合结论
This skill appears to do what it says, but review these items before using it: - Confirm who you trust: the skill source is unknown, so ensure you trust the instructions before giving it a bot token. - Backup openclaw.json first (make a copy) so you can restore if the file is corrupted. - The SKILL.md uses a hard-coded /Users/<user>/... path; ensure it will write to the correct home directory on your OS (use $HOME or the platform-appropriate p…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「CreateTelegramClawAgent」。简介:Create a new Telegram agent in OpenClaw with proper configuration. Use when use…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/4t-shirt/create-telegram-agent/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: create-telegram-agent
description: Create a new Telegram agent in OpenClaw with proper configuration. Use when user wants to create a new Telegram bot agent, including setting up agent workspace, Telegram binding, and bot token configuration. Requires user confirmation before modifying openclaw.json.
---
# Create Telegram Agent Skill
This skill helps create a new Telegram agent with complete configuration.
## Prerequisites
Before starting, ensure you have:
1. A Telegram bot token (from @BotFather)
2. The agent's purpose/description
3. The desired agent name
## Workflow
### Step 1: Collect Required Information
Ask the user for:
1. **Agent Name** (required)
- Must be unique
- Use lowercase letters, digits, and hyphens
- Examples: `healthman`, `news-bot`, `task-manager`
2. **Agent Purpose** (required)
- What will this agent do?
- Examples: "Personal health coach", "Daily news summarizer", "Task reminder assistant"
3. **Telegram Bot Token** (required)
- Format: `1234567890:ABCdefGHIjklMNOpqrSTUvwxyz`
- Get from @BotFather on Telegram
**If user doesn't have a token, provide these steps:**
> **How to Create a Telegram Bot Token:**
> 1. Open Telegram and search for **@BotFather**
> 2. Start a chat with BotFather and send `/newbot`
> 3. Follow the prompts:
> - Enter a **name** for your bot (display name, e.g., "CookMaster")
> - Enter a **username** for your bot (must end in 'bot', e.g., "cookmaster_bot")
> 4. BotFather will send you a message containing your **HTTP API token**
> 5. Copy the token (format: `1234567890:ABCdefGHIjklMNOpqrSTUvwxyz`)
>
> **Important:** Keep your token secure. Anyone with your token can control your bot.
### Step 2: Generate Agent Configuration
Based on user input, prepare the following configurations:
#### Agent Definition
```json
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
```
#### Telegram Binding
```json
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
```
#### Telegram Bot Account
```json
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
```
### Step 3: Present Configuration for Review
**CRITICAL: DO NOT MODIFY openclaw.json DIRECTLY**
Present the following to the user in a clear format:
---
## 📋 Configuration Summary
The following changes will be made to `openclaw.json`:
### 1. Agent Definition (add to agents.list)
```json
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
```
### 2. Telegram Binding (add to bindings)
```json
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
```
### 3. Telegram Bot Account (add to channels.telegram.accounts)
```json
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
```
---
### 4. Agent Responsibilities (suggested for AGENTS.md)
Based on the provided purpose, generate a responsibility description covering:
- Core functions of the agent
- Working methodology
- Relationship with the user
---
**Please confirm to proceed with the modifications. Any adjustments needed?**
### Step 4: Wait for User Confirmation
Only proceed after user explicitly confirms (e.g., "confirm", "proceed", "execute", "go ahead").
### Step 5: Execute Configuration
Once confirmed:
1. **Create directories:**
```bash
mkdir -p /Users/<user>/.openclaw/workspace-<agent-id>
mkdir -p /Users/<user>/.openclaw/agents/<agent-id>/agent
```
2. **Update openclaw.json:**
- Add agent to `agents.list`
- Add binding to `bindings`
- Add bot account to `channels.telegram.accounts`
3. **Create agent files:**
- `AGENTS.md` - Work responsibilities and workflow
- `SOUL.md` - Agent personality and values
4. **Report completion:**
- Show summary of what was created
- Remind user to restart OpenClaw gateway (if applicable)
- Provide next steps (e.g., test the bot)
## Important Rules
1. **Never modify openclaw.json without explicit user confirmation**
2. **Always show the complete configuration changes before applying**
3. **Extract bot ID from token** (the number before the colon)
4. **Create all necessary directories** before writing files
5. **Generate appropriate AGENTS.md and SOUL.md** based on the agent's purpose