🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Parallel Coding

by @hunwenpinghao

使用 git worktree + 编码智能体实现多任务并行开发。当需要同时处理多个开发任务、避免串行等待、或需要在多个分支间快速切换时触发。支持 Claude Code、Codex 等编码智能体的并行调度。

Versionv1.0.0
📋 Tips & Best Practices

Q: worktree 会复制整个仓库吗?

不会。worktree 共享 .git 目录,只有工作目录是独立的。磁盘开销主要来自工作文件和编译产物。

Q: 可以基于已有分支创建 worktree 吗?

# 基于已有分支
git worktree add ../project-feature existing-branch

基于新分支

git worktree add -b new-branch ../project-new main

Q: worktree 之间可以合并吗?

可以,但通常走 PR 流程。直接合并:

cd ../project-main
git merge feature-a

Q: 忘记删除 worktree 怎么办?

git worktree list          # 查看所有 worktree
git worktree prune         # 清理已删除目录的引用

View on ClawHub
TERMINAL
clawhub install parallel-coding

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →