name: codebuddy-cli description: | CodeBuddy Code CLI installation, configuration and usage guide. CodeBuddy Code is Tencent's AI-powered CLI programming assistant supporting natural language driven development. - MANDATORY TRIGGERS: CodeBuddy, codebuddy, AI CLI, Tencent AI coding, @tencent-ai/codebuddy-code, terminal AI assistant - Use when: installing CodeBuddy CLI, configuring CodeBuddy, using CodeBuddy commands, troubleshooting CodeBuddy issues
AI-powered terminal programming assistant from Tencent.
# Check prerequisites
node -v # Requires Node.js 18+
npm -v
# Install globally
npm install -g @tencent-ai/codebuddy-code
# Verify
codebuddy --version
codebuddy to start interactive session| Argument | Description |
|---|---|
codebuddy "<prompt>" |
Execute single task |
-y / --dangerously-skip-permissions |
Skip permission confirmations (sandbox only) |
-p / --print |
Single execution mode (requires -y for file ops) |
--permission-mode <mode> |
acceptEdits, bypassPermissions, default, plan |
--version |
Show version |
# Interactive mode
codebuddy
# Single task
codebuddy "幫我最佳化這個函式的效能"
codebuddy "生成這個 API 的單元測試"
codebuddy "檢查這次提交的程式碼質量"
# Skip permissions (sandbox only)
codebuddy -p "Review code quality" -y
| Command | Description |
|---|---|
/help |
Display available commands |
/status |
Show account info and current model |
/login |
Switch accounts |
/logout |
Sign out |
/clear |
Reset conversation history |
/exit |
End session |
/config |
Open configuration |
/doctor |
Diagnose issues |
/cost |
Token usage statistics |
/init |
Generate CODEBUDDY.md project guide |
/memory |
Edit project memory files |
Type ? during session for keyboard shortcuts.
Create .md files in:
- Project: .codebuddy/commands/
- Global: ~/.codebuddy/commands/
npm install -g @tencent-ai/codebuddy-code本技能來自小蔥技能站7w4.net。
--dangerously-skip-permissions risks: file deletion, scope creep, data loss. Never use in production.
這個 Skill 整體質量中規中矩。好的方面是安裝步驟清晰、命令引數說明詳細、安全提示到位。但不足之處是內容偏基礎,沒有常見問題解答,遇到報錯時使用者可能找不到解決辦法。適合快速上手,但深入使用可能需要自己摸索。建議期待更多實用案例和故障排除指南。