Place performance climb's worktrees under the configured worktree root
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 73/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, github, shell
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Đọc plugins/performance/skills/climb/SKILL.md, đặc biệt là mục 3 trong “Thiết lập trước lần thử đầu tiên” và phần dọn dẹp ở dòng 159, cùng với plugins/source-control/reference/worktree-root-convention.md. Cập nhật phần thiết lập và dọn dẹp để cả hai worktree sử dụng thư mục gốc đã cấu hình, và nếu chưa được đặt thì dùng thư mục tạm của hệ thống; xóa tùy chọn đặt trong thư mục bị bỏ qua. Thêm mục có phiên bản vào plugins/performance/CHANGELOG.md và tăng phiên bản plugin; công việc hoàn tất khi phần thiết lập vượt qua bước kiểm tra containment và phần dọn dẹp nhắm đến các worktree đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Shell
- Star
- 22
- Fork
- 2
- Merge trung bình
- 1 giờ 54 phút
- Pull request đã merge (30 ngày)
- 938
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của melodic-software/claude-code-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
melodic-software/claude-code-plugins#20573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Skip git-written Merge, Revert and fixup subjects in the guardrails PreToolUse convention guardĐang mởneeds-owner-decision
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melodic-software/claude-code-plugins#20538 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Replace attribution setup's "until the plugin migrates" sentence with what the plugin actually doesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
melodic-software/claude-code-plugins#20531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tighten bugs scan, setup and write wording on filing authority, migration phrasing and coaching textĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
melodic-software/claude-code-plugins#20530 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
melodic-software/claude-code-plugins#20526 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của melodic-software/claude-code-plugins
Issue tương tự
-
Battery "top up once" ends immediately when UPower reports fully-charged below 100%Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
omacom/omarchy#21286 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
libretro/libretro-super#2238 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type/documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
c-w-z/commit-decision-record#90 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
bmaltais/StartDrive#17 ·