worktree-pr
Decide whether a task deserves its own git worktree and, if chosen, run it end to end: branch from the integration branch rather than the current tree, keep…
Skill by scarletkc
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/scarletkc-worktree-pr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/worktree-pr
What's inside
- Skill name
worktree-pr- Description
- Decide whether a task deserves its own git worktree and, if chosen, run it end to end: branch from the integration branch rather than the current tree, keep the main working copy untouched while the task runs, compare the result against the untouched baseline before declaring it done, and prepare it for a pull request instead of merging. Use when a request says to do the work in a new worktree or branch, when a change is large or risky enough that the main tree should stay usable, when several tasks need to run in parallel on one repository, when a result has to be diffed against current behavior, and when deciding where screenshots, builds, and other artifacts produced in a worktree should end up.
- License
- Apache-2.0
- Metadata
- author: scarletkc · source: https://github.com/scarletkc/agents · summary: Optionally run a task in its own worktree: branch from the integration branch, compare against the baseline, and prepare it for a PR.
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Worktree & PR A worktree buys two things: the main working copy stays usable while the task runs, and the untouched copy remains available as a baseline to compare against. Both are worth real setup cost, and neither applies to every change. This covers the isolation mechanics. How large the change itself should be is [`scoped-change`](https://github.com/scarletkc/agents/blob/main/skills/scoped-change/SKILL.md), and it applies inside a worktree exactly as it does anywhere else. ## Deciding Consider a worktree when at least one holds: the task is large enough that a half-finished state would block other work, several tasks need to progress on the same repository at once, the result has to be compared against current behavior, or the change is risky enough that abandoning it should cost nothing. Skip it when the change is small, self-contained, and reviewable in one pass. Setting up an isolated copy for a typo fix or a one-line config edit costs more than it saves, and the extra branch, directory, and PR are all overhead that someone pays later. When the requester says to work directly on the current branch, that decision is already made. ## Running - **Branch from the integration branch, not from whatever is checked out.** The point of the isolated copy is a clean starting state; inheriting unrelated in-progress edits forfeits it and makes the eventual diff unreadable. Fetch first so the base is current, not a stale local ref. - **Leave the main working copy alone while the task runs.** Editing both defeats the isolation and destroys the baseline. If the task turns out to need a change in the main tree, stop and say so rather than reaching across. - **Parallel worktrees stay independent only while they stay disjoint.** Two copies of one repository editing the same files converge into a conflict nobody scheduled, and the cost lands at merge time rather than now. Before opening a second one, check what the first is touching. - **Name the artifacts' destination explicitly.** Screenshots, builds, and exports produced inside a worktree vanish with it. Anything the requester needs to see must be written somewhere durable, or attached to the PR, and the location has to be stated rather than assumed. ## Before declaring it done - **Compare against the untouched baseline, not against expectation.** The reason to keep a clean copy is to run both and see the difference. For behavior changes this means exercising the old path and the new one; for visual changes it means the same view captured twice. "Should be equivalent" is a claim, and the baseline is right there to check it. - **Account for what the tooling added.** Generated output, formatter churn, and dependency lock updates accumulate in an isolated copy without anyone choosing them, and they are indistinguishable from intent once merged. Either explain why each belongs in this branch, or drop it. ## Landing Follow the user's established authorization preferences. If committing, pushing, or opening a pull request requires explicit authorization, complete and validate the local changes, then hand over the exact commands until authorized. When authorized, push the branch and open a pull request describing motivation, the commands exercised, and anything reviewers must check by hand; leave merging to the repository owner unless told otherwise. Say plainly which parts are done, which are unverified, and which were deliberately left out, since a worktree's isolation makes it easy to report an untested result as finished. Once the branch has landed, remove the worktree; a stale copy of a merged branch is a trap for the next session that opens it.
From scarletkc/agents, Apache-2.0.
More from scarletkc/agents
- 0.798score
devin-cli
scarletkc
Delegate bounded coding tasks to the local Devin CLI over ACP from a supervising agent such as Claude Code or Codex.
SkillAFreshness: A★ 225Claude Code +9 - 0.794score
talk-like-scarletkc
scarletkc
按 scarletkc 本人的自然表达习惯代写、改写、润色和翻译文本,适用于推文、评论、聊天消息、模型或工具体验文、项目介绍、GitHub 文本和正式通信。用户要求撰写可直接使用的成稿、去除 AI 腔,或在翻译中保留本人语气和立场时使用,无需明确点名本 skill。单纯的事实问答、技术分析、代码审查和任务讨论不触发。
SkillAFreshness: A★ 225Claude Code +9 - 0.794score
x-content
scarletkc
为 X(Twitter)寻找值得发的素材、筛选选题、撰写和改进帖文或串,并从读者视角重读,改善吸引力、阅读连贯性和真实讨论空间。用户问 X 最近有什么可以发、想写一条有流量的帖文,或反馈 X 帖文太复杂、读不下去时使用。只调整个人语气或忠实翻译已有文本时不触发。
SkillAFreshness: A★ 225Claude Code +9 - 0.752score
grok-cli
scarletkc
Delegate bounded tasks to Grok Build from a supervising agent such as Codex.
SkillBFreshness: B★ 225Claude Code +9 - 0.748score
antigravity-cli
scarletkc
Delegate bounded investigation, review, or implementation tasks to Antigravity CLI from a supervising agent.
SkillBFreshness: B★ 225Claude Code +9 - 0.746score
ux-writing
scarletkc
Judgment rules for user-facing text and docs: CLI and diagnostic output, error and help text, README and docs structure, code comments, titles, and generated…
SkillBFreshness: B★ 225Claude Code +9 - 0.746score
ask-to-plan
scarletkc
Guide a user from an unclear idea to an actionable plan through the agent harness's native ask tool and clickable choices.
SkillBFreshness: B★ 225Claude Code +9 - 0.746score
codex-cli
scarletkc
When handing work to the Codex CLI earns its cost, and how to size the run: second-model review, bounded implementation hand-offs, sandbox permissions, model…
SkillBFreshness: B★ 225Claude Code +9 - 0.746score
marketing-copy
scarletkc
Write outbound promotional copy for a product or project: launch and update posts for community platforms and social media, store page descriptions and short…
SkillBFreshness: B★ 225Claude Code +9 - 0.746score
scoped-change
scarletkc
Judgment rules for locating the correct boundary of a requested change: staying inert outside it while completing every required site inside it.
SkillBFreshness: B★ 225Claude Code +9 - 0.742score
product-writing
scarletkc
Write, edit, or review UI copy, CLI messages, help text, code comments, and technical documentation covering product behavior, errors, status, setup…
SkillBFreshness: B★ 225Claude Code +9
Signals
- Stars
- 225
- Forks
- 12
- Open issues
- 1
- Last commit (this folder)
- Aug 24, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/scarletkc/agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from scarletkc
- 0.798score
devin-cli
scarletkc
Delegate bounded coding tasks to the local Devin CLI over ACP from a supervising agent such as Claude Code or Codex.
SkillAFreshness: A★ 225Claude Code +9 - 0.795score
vexor-cli
scarletkc
Semantic file discovery via `vexor`.
SkillAFreshness: A★ 246Claude Code +9 - 0.794score
x-content
scarletkc
为 X(Twitter)寻找值得发的素材、筛选选题、撰写和改进帖文或串,并从读者视角重读,改善吸引力、阅读连贯性和真实讨论空间。用户问 X 最近有什么可以发、想写一条有流量的帖文,或反馈 X 帖文太复杂、读不下去时使用。只调整个人语气或忠实翻译已有文本时不触发。
SkillAFreshness: A★ 225Claude Code +9 - 0.794score
talk-like-scarletkc
scarletkc
按 scarletkc 本人的自然表达习惯代写、改写、润色和翻译文本,适用于推文、评论、聊天消息、模型或工具体验文、项目介绍、GitHub 文本和正式通信。用户要求撰写可直接使用的成稿、去除 AI 腔,或在翻译中保留本人语气和立场时使用,无需明确点名本 skill。单纯的事实问答、技术分析、代码审查和任务讨论不触发。
SkillAFreshness: A★ 225Claude Code +9 - 0.770score
Vexor
scarletkc
A semantic search engine for files and code.
ConnectorAFreshness: ALocal★ 246↓ 123/wkClaude Code +5 - 0.752score
grok-cli
scarletkc
Delegate bounded tasks to Grok Build from a supervising agent such as Codex.
SkillBFreshness: B★ 225Claude Code +9
Cite this page
worktree-pr skill. Agent Mart. https://agentmart.dev/skills/scarletkc-worktree-pr (last updated 2026-10-24)