meta
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMeta Skill - Command Handler
Meta Skill - Command Handler
⚠️ IMPORTANT: This skill is a COMMAND HANDLER registration. It tells the bot to handle commands by spawning Claude Code Agent SDK sessions in the telegram_agent directory.
/meta⚠️ 重要提示:此Skill是一个COMMAND HANDLER注册项。它指示机器人通过在telegram_agent目录中启动Claude Code Agent SDK会话来处理命令。
/metaWhat This Does
功能说明
Registers as a command handler that:
/meta- Takes the user's prompt after
/meta - Spawns a Claude Code Agent SDK session
- Sets working directory to
~/ai_projects/telegram_agent - Returns responses in Telegram
将注册为命令处理器,具体功能如下:
/meta- 获取后的用户提示词
/meta - 启动Claude Code Agent SDK会话
- 将工作目录设置为
~/ai_projects/telegram_agent - 在Telegram中返回响应
Implementation
实现方式
The actual command handler needs to be registered in the telegram bot codebase at:
- - Add meta command handler
src/bot/handlers/claude_commands.py - - Register the command
src/bot/bot.py
实际的命令处理器需要在Telegram机器人代码库中进行注册,位置如下:
- - 添加meta命令处理器
src/bot/handlers/claude_commands.py - - 注册该命令
src/bot/bot.py
Usage Pattern
使用模式
User types in Telegram:
/meta fix the rate limiting bug
/meta add better logging
/meta refactor authenticationBot spawns Claude Agent SDK with:
- Working directory:
~/ai_projects/telegram_agent - Prompt: User's text after
/meta - Same infrastructure as command
/claude
用户在Telegram中输入:
/meta fix the rate limiting bug
/meta add better logging
/meta refactor authentication机器人会启动Claude Agent SDK,配置如下:
- 工作目录:
~/ai_projects/telegram_agent - 提示词:用户在后输入的文本
/meta - 与命令使用相同的基础设施
/claude
Example User Requests
用户请求示例
/meta fix bug in message handler/meta add error recovery to file sending/meta refactor the session management/meta improve the keyboard layout
/meta fix bug in message handler/meta add error recovery to file sending/meta refactor the session management/meta improve the keyboard layout
Implementation Notes
实现注意事项
Must use with custom parameter:
ClaudeCodeServicecwdpython
service.execute_prompt(
prompt=user_prompt,
cwd="/Users/server/ai_projects/telegram_agent"
)必须使用带有自定义参数的:
cwdClaudeCodeServicepython
service.execute_prompt(
prompt=user_prompt,
cwd="/Users/server/ai_projects/telegram_agent"
)