com um clique
source-command-ccg-worktree
管理 Git Worktree:在 ../.ccg/项目名/ 目录创建,支持 IDE 集成和内容迁移
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
管理 Git Worktree:在 ../.ccg/项目名/ 目录创建,支持 IDE 集成和内容迁移
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Django testing strategies with pytest-django, TDD methodology, factory_boy, mocking, coverage, and testing Django REST Framework APIs.
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
为网页应用快速接入 OpenClaw 通道配置,自动输出可直接复制的 Webhook URL 与 Token。用于用户说“帮我配置 OpenClaw 通道”“给我 Webhook 和 Token”“一键生成接入参数”“OpenClaw 对话接入配置”这类场景,支持外部网页与本地网页两种模式,减少手工查配置和复制错误。
基于 AI 自动生成高质量 PPT 图片和视频,支持智能转场和交互式播放。
Enforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.
| name | source-command-ccg-worktree |
| description | 管理 Git Worktree:在 ../.ccg/项目名/ 目录创建,支持 IDE 集成和内容迁移 |
Use this skill when the user asks to run the migrated source command ccg-worktree.
在结构化目录管理 Git worktree,支持智能默认和 IDE 集成。
/worktree <add|list|remove|prune|migrate> [options]
| 命令 | 说明 |
|---|---|
add <path> | 创建新 worktree |
list | 列出所有 worktree |
remove <path> | 删除指定 worktree |
prune | 清理无效引用 |
migrate <target> | 迁移内容到目标 worktree |
| 选项 | 说明 |
|---|---|
-b <branch> | 创建新分支 |
-o, --open | 创建后用 IDE 打开 |
--from <source> | 迁移源路径 |
--stash | 迁移 stash 内容 |
--track | 跟踪远程分支 |
--detach | 分离 HEAD |
--lock | 锁定 worktree |
parent-directory/
├── your-project/ # 主项目
│ ├── .git/
│ └── src/
└── .ccg/ # worktree 管理目录
└── your-project/
├── feature-ui/ # 功能分支
├── hotfix/ # 修复分支
└── debug/ # 调试 worktree
[模式:创建]
../.ccg/项目名/<path>.env 等)[模式:迁移]
# 基本创建
/worktree add feature-ui
# 创建并用 IDE 打开
/worktree add feature-ui -o
# 创建指定分支
/worktree add hotfix -b fix/login -o
# 迁移未提交内容
/worktree migrate feature-ui --from main
# 迁移 stash 内容
/worktree migrate feature-ui --stash
# 管理操作
/worktree list
/worktree remove feature-ui
/worktree prune
✅ Worktree created at ../.ccg/项目名/feature-ui
✅ 已复制 .env
✅ 已复制 .env.local
📋 已从 .gitignore 复制 2 个环境文件
🖥️ 是否在 IDE 中打开?[y/n]: y
🚀 正在用 VS Code 打开...
.gitignore 中的 .env 文件.git 目录,节省磁盘空间git cherry-pick