Simplify the worktree-claim.sh source-control plugin code
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 plugins/source-control/scripts/worktree-claim.sh 开始,根据 issue 中列出的四项检查审查该脚本:复用 helper、简化、效率和抽象。保持其输出、退出码、写入的文件、打印的文本、标志和导出的名称不变。issue 没有指定具体测试,因此编辑前请检查相关调用方或检查项。完成标准是:所列脚本更短、更清晰且行为不变,并且 source-control 的 changelog fragment 中包含指定的 ### Changed 条目。
由索引模型根据 Issue 内容生成。
描述
Agent Brief
Type: Task
Summary: Simplify these 1 files without changing their behavior (part of the /simplify epic).
Current behavior:
The files below work as they do on main. Their code changes; what they do does not.
Desired behavior:
Review the files through /simplify's four checks (reuse of existing helpers, simplification, efficiency, right level of abstraction), using subagents if useful, and apply the fixes. The files end up shorter and clearer, and whatever runs them gets the same results.
Files:
plugins/source-control/scripts/worktree-claim.sh
Key interfaces:
- Outputs, exit codes, written files and printed messages of these files: unchanged.
- Command-line flags, exported names and anything another file calls: unchanged.
Acceptance criteria:
- Behavior is unchanged: same outputs, exit codes, written files, printed text, command-line flags and exported names; no listed file renamed, moved or deleted.
- The diff edits only the listed files, the lines of a test that assert on them when the change breaks that assertion, and changelog fragments.
- The pull request stays within 400 changed lines and 15 hand-edited files (generated shared copies and changelog fragments not counted); anything beyond goes under
## Follow-upsin the pull request body. - ci-status is green.
- Each touched plugin (
source-control) has a fragment fromscripts/new-changelog-fragment.sh <plugin> patchwhose body is### Changedand the line "Internal simplification, no behavior change."
Out of scope:
- Moving code between files or deduping across them: the sub-epic's restructuring pass does that after these chunks merge.
- Tests beyond the asserted lines a change breaks, eval cases, fixtures, and skill and agent text.
- Files listed in other chunks.
- These eval and fixture files, which read the listed files' names, flags or printed text; the behavior rule keeps them accurate:
plugins/source-control/evals/worktree-enter-runs-claim-gate/graders/claim-gate-ran.md
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 1 小时 5 分钟
- 30 天内合并 PR
- 969
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
status: ready
难度 2/5 1-3 小时 新手友好度 64/100
melodic-software/claude-code-plugins#15008 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
melodic-software/claude-code-plugins#14993 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#14946 · 6 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
melodic-software/claude-code-plugins#14922 · 7 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#14919 · 7 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 60/100
-
low-priority
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
nxtg-ai/forge-orchestrator#105 ·
维护者通常 1 天内回复
-
bug CLI
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
LucasSantana-Dev/Lucky#2983 · 1 条评论 ·
维护者通常 1 天内回复