Place performance climb's worktrees under the configured worktree root
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 73/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- git, github, shell
研究方向
閱讀 plugins/performance/skills/climb/SKILL.md,尤其是「首次嘗試前的設定」第 3 項和第 159 行的清理說明,並一併閱讀 plugins/source-control/reference/worktree-root-convention.md。更新設定和清理邏輯,讓兩個 worktree 都使用已設定的根目錄;若未設定,則退回使用系統暫存目錄;移除放置於忽略目錄中的選項。在 plugins/performance/CHANGELOG.md 新增附有版本號的項目,並提升外掛程式版本;設定通過 containment 檢查且清理目標指向這些 worktree 後,即代表完成。
由索引模型根據 Issue 內容生成。
描述
Steps to reproduce
- Enable both
performanceandsource-control(itsworktree-add-containment-gate.shhook is on by default). - Run
/performance:climband let it followplugins/performance/skills/climb/SKILL.md:52-58, which allows its two worktrees "outside your checkout or in a directory its.gitignoreignores", for example<checkout>/.work/climb-a. - The skill runs
git worktree add -b climb/<goal-slug> <climb-path> <start-sha>with that in-checkout path.
Expected behavior
climb places both worktrees where the session's worktree convention says, by default under the root the worktreeroot.path git key names, and the setup step succeeds.
Actual behavior
The containment gate blocks the command: plugins/source-control/hooks/worktree-add-containment-gate.sh (repo_enclosing and check_segment) blocks any git worktree add target that resolves inside a git working tree, and it has no exemption for an ignored directory (no ignore handling anywhere in the hook). So one of the two placements climb offers is always denied when source-control is enabled. Even the allowed placement ("outside your checkout") leaves the location to the model, so worktrees land outside the user's configured root.
Verified this pass by reading both files on origin/main; not reproduced in a live session (no live probe was run).
Severity
Medium.
Severity justification
climb's setup step fails or improvises its worktree location for every user with source-control enabled; no data is at risk.
Suggested fix location
plugins/performance/skills/climb/SKILL.md, "Set up, before the first attempt", item 3, and the cleanup at :159.
- Resolve the root as
git -C <checkout> config --get-all --type=path worktreeroot.path | tail -n 1(gate onrev-parse --git-dir; never scope the read without--includes), citingplugins/source-control/reference/worktree-root-convention.mdby pointer. Put both worktrees under it. With the key unset, fall back to the system temp directory, never the checkout. - Drop "or in a directory its
.gitignoreignores". - Owner decision (
needs-decision): the audit (2026-12-01 prompt audit, claude-api prompt-audit procedure, verifier upheld as a flag) also asked to let the user name an existing or pinned branch instead of always creatingclimb/<goal-slug>. The skill has a real reason for its own branch (:54,:82,:194: it is the verify target), so this is a choice, not a defect. Recommendation (judgment): keepclimb/<goal-slug>as the default; add a branch argument only if a user asks again. - Add a versioned
plugins/performance/CHANGELOG.mdentry and bump the plugin version per the repository's release convention.
Left out: the Low lane flag on "A copy of ratchet.py from before plugin 0.5.0 exits 2" (skills/protect/SKILL.md:39-41, skills/snapshot/SKILL.md:119-120). It concerns this plugin's own vendored copies, not an upstream fact, and still guides a user with an old copy.
Environment
Read on melodic-software/claude-code-plugins origin/main, 2026-12-02. Audit target was performance 0.17.11. Related: the same worktree-root gap in instruction-placement, #20540. Source: local handoff item 20261201-165522-performance-prompt-audit-findings.md (retired into this issue).
- 主要語言
- Shell
- 星號
- 22
- 分支
- 2
- 平均合併
- 1 小時 54 分鐘
- 30 天內合併 PR
- 938
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
melodic-software/claude-code-plugins 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
melodic-software/claude-code-plugins#20573 ·
維護者通常 1 天內回覆
-
needs-owner-decision
難度 2/5 1-3 小時 新手友好度 76/100
melodic-software/claude-code-plugins#20538 ·
維護者通常 1 天內回覆
-
Replace attribution setup's "until the plugin migrates" sentence with what the plugin actually does未關閉
難度 2/5 1-3 小時 新手友好度 82/100
melodic-software/claude-code-plugins#20531 ·
維護者通常 1 天內回覆
-
Tighten bugs scan, setup and write wording on filing authority, migration phrasing and coaching text未關閉
難度 2/5 1-3 小時 新手友好度 78/100
melodic-software/claude-code-plugins#20530 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
melodic-software/claude-code-plugins#20526 ·
維護者通常 1 天內回覆
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
bug good first issue help wanted
難度 2/5 1-3 小時 新手友好度 78/100
getsotto/sotto-authenticator#139 ·
維護者通常 1 天內回覆
-
Battery "top up once" ends immediately when UPower reports fully-charged below 100%可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
omacom/omarchy#21286 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
libretro/libretro-super#2238 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
ChurchCRM/docs.churchcrm.io#328 ·
維護者通常 1 天內回覆