Loading...
Loading...
Compare original and translation side by side
undefinedundefined
**If found:** Use that directory. If both exist, `.worktrees` wins.
**如果找到:** 使用该目录。如果两者都存在,优先使用`.worktrees`。grep -i "worktree.*director" CLAUDE.md 2>/dev/nullgrep -i "worktree.*director" CLAUDE.md 2>/dev/nullNo worktree directory found. Where should I create worktrees?
1. .worktrees/ (project-local, hidden)
2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
Which would you prefer?未找到工作树目录。我应该在哪里创建worktrees?
1. .worktrees/(项目本地,隐藏目录)
2. ~/.config/superpowers/worktrees/<project-name>/(全局位置)
您偏好哪一个?undefinedundefined
**If NOT ignored:**
Per Jesse's rule "Fix broken things immediately":
1. Add appropriate line to .gitignore
2. Commit the change
3. Proceed with worktree creation
**Why critical:** Prevents accidentally committing worktree contents to repository.
**如果未被忽略:**
遵循Jesse的规则“立即修复问题”:
1. 向.gitignore添加相应的行
2. 提交该更改
3. 继续创建worktree
**为什么这很关键:** 防止意外将worktree内容提交到仓库中。project=$(basename "$(git rev-parse --show-toplevel)")project=$(basename "$(git rev-parse --show-toplevel)")undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
**If tests fail:** Report failures, ask whether to proceed or investigate.
**If tests pass:** Report ready.
**如果测试失败:** 报告失败情况,询问是否继续或进行排查。
**如果测试通过:** 报告工作区已准备就绪。Worktree ready at <full-path>
Tests passing (<N> tests, 0 failures)
Ready to implement <feature-name>Worktree已在<完整路径>准备就绪
测试通过(共<N>个测试,0个失败)
已准备好实现<功能名称>| Situation | Action |
|---|---|
| Use it (verify ignored) |
| Use it (verify ignored) |
| Both exist | Use |
| Neither exists | Check CLAUDE.md → Ask user |
| Directory not ignored | Add to .gitignore + commit |
| Tests fail during baseline | Report failures + ask |
| No package.json/Cargo.toml | Skip dependency install |
| 场景 | 操作 |
|---|---|
| 使用该目录(验证是否被忽略) |
| 使用该目录(验证是否被忽略) |
| 两者都存在 | 使用 |
| 两者都不存在 | 检查CLAUDE.md → 询问用户 |
| 目录未被忽略 | 添加到.gitignore并提交 |
| 基线测试失败 | 报告失败并询问用户 |
| 无package.json/Cargo.toml | 跳过依赖安装 |
git check-ignoregit check-ignoreYou: I'm using the using-git-worktrees skill to set up an isolated workspace.
[Check .worktrees/ - exists]
[Verify ignored - git check-ignore confirms .worktrees/ is ignored]
[Create worktree: git worktree add .worktrees/auth -b feature/auth]
[Run npm install]
[Run npm test - 47 passing]
Worktree ready at /Users/jesse/myproject/.worktrees/auth
Tests passing (47 tests, 0 failures)
Ready to implement auth feature您:我正在使用using-git-worktrees技能来设置独立工作区。
[检查.worktrees/ - 已存在]
[验证是否被忽略 - git check-ignore确认.worktrees/已被忽略]
[创建worktree: git worktree add .worktrees/auth -b feature/auth]
[运行npm install]
[运行npm test - 47个测试全部通过]
Worktree已在/Users/jesse/myproject/.worktrees/auth准备就绪
测试通过(共47个测试,0个失败)
已准备好实现认证功能