Skip to content

Commit c38bc79

Browse files
feat(install): add CodeBuddy(Tencent) adaptation with installation scripts (anomalyco#1038)
* feat(install): add CodeBuddy(Tencent) adaptation with installation scripts * fix: add codebuddy to SUPPORTED_INSTALL_TARGETS * fix(codebuddy): resolve installer path issues, unused vars, and uninstall safety
1 parent 477d23a commit c38bc79

13 files changed

Lines changed: 1418 additions & 21 deletions

‎.codebuddy/README.md‎

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Everything Claude Code for CodeBuddy
2+
3+
Bring Everything Claude Code (ECC) workflows to CodeBuddy IDE. This repository provides custom commands, agents, skills, and rules that can be installed into any CodeBuddy project using the unified Target Adapter architecture.
4+
5+
## Quick Start (Recommended)
6+
7+
Use the unified install system for full lifecycle management:
8+
9+
```bash
10+
# Install with default profile
11+
node scripts/install-apply.js --target codebuddy --profile developer
12+
13+
# Install with full profile (all modules)
14+
node scripts/install-apply.js --target codebuddy --profile full
15+
16+
# Dry-run to preview changes
17+
node scripts/install-apply.js --target codebuddy --profile full --dry-run
18+
```
19+
20+
## Management Commands
21+
22+
```bash
23+
# Check installation health
24+
node scripts/doctor.js --target codebuddy
25+
26+
# Repair installation
27+
node scripts/repair.js --target codebuddy
28+
29+
# Uninstall cleanly (tracked via install-state)
30+
node scripts/uninstall.js --target codebuddy
31+
```
32+
33+
## Shell Script (Legacy)
34+
35+
The legacy shell scripts are still available for quick setup:
36+
37+
```bash
38+
# Install to current project
39+
cd /path/to/your/project
40+
.codebuddy/install.sh
41+
42+
# Install globally
43+
.codebuddy/install.sh ~
44+
```
45+
46+
## What's Included
47+
48+
### Commands
49+
50+
Commands are on-demand workflows invocable via the `/` menu in CodeBuddy chat. All commands are reused directly from the project root's `commands/` folder.
51+
52+
### Agents
53+
54+
Agents are specialized AI assistants with specific tool configurations. All agents are reused directly from the project root's `agents/` folder.
55+
56+
### Skills
57+
58+
Skills are on-demand workflows invocable via the `/` menu in chat. All skills are reused directly from the project's `skills/` folder.
59+
60+
### Rules
61+
62+
Rules provide always-on rules and context that shape how the agent works with your code. Rules are flattened into namespaced files (e.g., `common-coding-style.md`) for CodeBuddy compatibility.
63+
64+
## Project Structure
65+
66+
```
67+
.codebuddy/
68+
├── commands/ # Command files (reused from project root)
69+
├── agents/ # Agent files (reused from project root)
70+
├── skills/ # Skill files (reused from skills/)
71+
├── rules/ # Rule files (flattened from rules/)
72+
├── ecc-install-state.json # Install state tracking
73+
├── install.sh # Legacy install script
74+
├── uninstall.sh # Legacy uninstall script
75+
└── README.md # This file
76+
```
77+
78+
## Benefits of Target Adapter Install
79+
80+
- **Install-state tracking**: Safe uninstall that only removes ECC-managed files
81+
- **Doctor checks**: Verify installation health and detect drift
82+
- **Repair**: Auto-fix broken installations
83+
- **Selective install**: Choose specific modules via profiles
84+
- **Cross-platform**: Node.js-based, works on Windows/macOS/Linux
85+
86+
## Recommended Workflow
87+
88+
1. **Start with planning**: Use `/plan` command to break down complex features
89+
2. **Write tests first**: Invoke `/tdd` command before implementing
90+
3. **Review your code**: Use `/code-review` after writing code
91+
4. **Check security**: Use `/code-review` again for auth, API endpoints, or sensitive data handling
92+
5. **Fix build errors**: Use `/build-fix` if there are build errors
93+
94+
## Next Steps
95+
96+
- Open your project in CodeBuddy
97+
- Type `/` to see available commands
98+
- Enjoy the ECC workflows!

‎.codebuddy/README.zh-CN.md‎

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Everything Claude Code for CodeBuddy
2+
3+
为 CodeBuddy IDE 带来 Everything Claude Code (ECC) 工作流。此仓库提供自定义命令、智能体、技能和规则,可以通过统一的 Target Adapter 架构安装到任何 CodeBuddy 项目中。
4+
5+
## 快速开始(推荐)
6+
7+
使用统一安装系统,获得完整的生命周期管理:
8+
9+
```bash
10+
# 使用默认配置安装
11+
node scripts/install-apply.js --target codebuddy --profile developer
12+
13+
# 使用完整配置安装(所有模块)
14+
node scripts/install-apply.js --target codebuddy --profile full
15+
16+
# 预览模式查看变更
17+
node scripts/install-apply.js --target codebuddy --profile full --dry-run
18+
```
19+
20+
## 管理命令
21+
22+
```bash
23+
# 检查安装健康状态
24+
node scripts/doctor.js --target codebuddy
25+
26+
# 修复安装
27+
node scripts/repair.js --target codebuddy
28+
29+
# 清洁卸载(通过 install-state 跟踪)
30+
node scripts/uninstall.js --target codebuddy
31+
```
32+
33+
## Shell 脚本(旧版)
34+
35+
旧版 Shell 脚本仍然可用于快速设置:
36+
37+
```bash
38+
# 安装到当前项目
39+
cd /path/to/your/project
40+
.codebuddy/install.sh
41+
42+
# 全局安装
43+
.codebuddy/install.sh ~
44+
```
45+
46+
## 包含的内容
47+
48+
### 命令
49+
50+
命令是通过 CodeBuddy 聊天中的 `/` 菜单调用的按需工作流。所有命令都直接复用自项目根目录的 `commands/` 文件夹。
51+
52+
### 智能体
53+
54+
智能体是具有特定工具配置的专门 AI 助手。所有智能体都直接复用自项目根目录的 `agents/` 文件夹。
55+
56+
### 技能
57+
58+
技能是通过聊天中的 `/` 菜单调用的按需工作流。所有技能都直接复用自项目的 `skills/` 文件夹。
59+
60+
### 规则
61+
62+
规则提供始终适用的规则和上下文,塑造智能体处理代码的方式。规则会被扁平化为命名空间文件(如 `common-coding-style.md`)以兼容 CodeBuddy。
63+
64+
## 项目结构
65+
66+
```
67+
.codebuddy/
68+
├── commands/ # 命令文件(复用自项目根目录)
69+
├── agents/ # 智能体文件(复用自项目根目录)
70+
├── skills/ # 技能文件(复用自 skills/)
71+
├── rules/ # 规则文件(从 rules/ 扁平化)
72+
├── ecc-install-state.json # 安装状态跟踪
73+
├── install.sh # 旧版安装脚本
74+
├── uninstall.sh # 旧版卸载脚本
75+
└── README.zh-CN.md # 此文件
76+
```
77+
78+
## Target Adapter 安装的优势
79+
80+
- **安装状态跟踪**:安全卸载,仅删除 ECC 管理的文件
81+
- **Doctor 检查**:验证安装健康状态并检测偏移
82+
- **修复**:自动修复损坏的安装
83+
- **选择性安装**:通过配置文件选择特定模块
84+
- **跨平台**:基于 Node.js,支持 Windows/macOS/Linux
85+
86+
## 推荐的工作流
87+
88+
1. **从计划开始**:使用 `/plan` 命令分解复杂功能
89+
2. **先写测试**:在实现之前调用 `/tdd` 命令
90+
3. **审查您的代码**:编写代码后使用 `/code-review`
91+
4. **检查安全性**:对于身份验证、API 端点或敏感数据处理,再次使用 `/code-review`
92+
5. **修复构建错误**:如果有构建错误,使用 `/build-fix`
93+
94+
## 下一步
95+
96+
- 在 CodeBuddy 中打开您的项目
97+
- 输入 `/` 以查看可用命令
98+
- 享受 ECC 工作流!

0 commit comments

Comments
 (0)