一键导入
commands
Register bot commands with Telegram so they appear in the command menu
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Register bot commands with Telegram so they appear in the command menu
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rebuild miniclaw and restart the background service
Interactive setup wizard for new miniclaw users who just forked the repo
Summarise recent conversations across all threads into auto memory (MEMORY.md + topic files)
Analyse chat history to update voice and typing style guide (voice.md in auto memory)
Create a semver release with changelog, git tag, and GitHub release
Review git diff and suggest how to group and commit changes
| name | commands |
| description | Register bot commands with Telegram so they appear in the command menu |
| allowed-tools | Bash(curl *), Bash(ls *) |
Read all available skills and register them as Telegram bot commands via the setMyCommands API. This is idempotent. Running it multiple times just overwrites the command list.
List skill directories from both the repo and personal locations:
ls -1 ../.claude/skills/
ls -1 ~/.claude/skills/
For each directory found in either location, read its SKILL.md file using the Read tool. Extract the name, description, and disable-model-invocation fields from the YAML frontmatter. If a skill exists in both locations, the personal one (~/.claude) takes precedence. Skip any skill that has disable-model-invocation: true.
Combine the discovered skills with these hardcoded commands that don't have SKILL.md files:
chatid: "Get your Telegram chat ID"cancel: "Cancel the current request"compact: "Compact conversation context to free up space"effort: "View or set the effort level (low, medium, high, max, default)"logs: "Cycle status updates: off, text only, verbose"simplify: "Review changed code for reuse, quality, and efficiency"usage: "Show context window usage and cumulative cost"clear: "Clear chat history and context window for this thread"Telegram command descriptions have a 256-character limit. Truncate any descriptions that exceed this.
Build a JSON array of {"command": "name", "description": "desc"} objects and call the Telegram API:
curl -s https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/setMyCommands \
-H "Content-Type: application/json" \
-d '{"commands": [...]}'
The response should contain {"ok": true}. If it doesn't, report the error.
List all registered commands with their descriptions and confirm success.