codebuddy-cli
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
Why use this skill?
Install the Tencent CodeBuddy CLI to streamline development with natural language tasks, automated testing, and intelligent code refactoring directly in your terminal.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/pmwalkercao/codebuddy-codeWhat This Skill Does
The CodeBuddy CLI skill provides an interface to Tencent's AI-powered programming assistant directly within your terminal. It leverages advanced language models to perform complex coding tasks, refactor existing logic, and debug errors through natural language prompts. By integrating seamlessly into your development workflow, it eliminates the need to context-switch between your code editor and a web-based AI interface. Whether you are generating boilerplate code, writing comprehensive unit tests, or auditing your project's security, this tool acts as an autonomous pair programmer residing in your shell.
Installation
To begin using CodeBuddy, ensure you have Node.js version 18 or higher installed. The installation is performed globally via npm, which registers the codebuddy command system-wide:
- Verify your Node.js environment:
node -v. - Install the package using:
npm install -g @tencent-ai/codebuddy-code. - Validate the installation by running
codebuddy --versionin your terminal.
Once installed, you can initialize a session by navigating to your project directory and typing codebuddy. You will be prompted to authenticate via Google/GitHub for international models or WeChat for China-specific DeepSeek models.
Use Cases
CodeBuddy is designed for developers who need on-the-fly assistance without leaving the CLI. Key use cases include:
- Automated Refactoring: Quickly optimize functions or improve code readability by providing a brief natural language request.
- Test Generation: Generate robust unit tests for new API endpoints or refactored legacy code modules.
- Project Analysis: Use the
/initcommand to generate automated project documentation or/doctorto diagnose workspace-specific environment issues. - CI/CD Integration: Streamline code quality checks before pushing commits by running inspection tasks directly from the terminal.
Example Prompts
- "Generate a suite of Jest unit tests for the user authentication service located in src/auth.ts."
- "Review the current directory for common security vulnerabilities and suggest a mitigation plan."
- "Refactor the database connection logic to use a connection pool instead of individual instances."
Tips & Limitations
- Security: The
--dangerously-skip-permissionsflag is provided for sandbox environments only. Never use this in production, as it permits the AI to perform file operations without your approval, which may lead to data loss or unwanted file deletion. - Memory: Utilize the
/memorycommand to provide the AI with context about your project architecture to improve response accuracy. - Customization: Extend the functionality by adding custom scripts to the
.codebuddy/commands/directory in your project folder, allowing for project-specific automation that persists across sessions.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-pmwalkercao-codebuddy-code": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, external-api, code-execution
Related Skills
mcdonald
麦当劳助手 - 查询/领取优惠券、活动日历、餐品营养信息、门店查询
codebuddy-cli
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