finish-worktree
Exits a git worktree, prepares a draft PR from the diff, applies project PR templates, and outputs copy-pasteable markdown. Use when a task in a worktree is complete.
- License 许可
- GPL-3.0
- 最近更新
- 2026-10-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- finish-worktree
- description
- Exits a git worktree, prepares a draft PR from the diff, applies project PR templates, and outputs copy-pasteable markdown. Use when a task in a worktree is complete.
03 SKILL.md 正文
Finish Git Worktree
Use this skill to finalize work in a git worktree and prepare a draft PR without using the GitHub CLI (gh).
1. Verify and Commit
- Ensure all relevant changes are committed in the worktree (
git status). - Review the diff against the base branch (
git diff main...HEAD).
2. Format PR Markdown
- Look for the project's PR template (e.g.,
.github/pull_request_template.md). - Generate the final PR content in Markdown format, filling out the template based on the diff and task context.
- Show the full PR markdown content to the user in a code block so they can copy/paste it into GitHub.
- DO NOT use
gh pr createor any CLI integrations to post the PR directly.
3. Update Checkpoint Doc
- Overwrite the checkpoint doc at
~/.claude/projects/<project-key>/draft-prs/<jira-ticket>_<short-slug>.mdwith the final PR content you just generated.
04 同仓库更多 Skills
good-skill
A well-formed fixture skill.
some-other-name
Name does not match its directory.
no-desc
暂无简介
summon-profile
Synchronizes the local Gemini profile (~/.gemini) with a remote machine via scp.
start-worktree
Creates a new isolated git worktree for a JIRA ticket, generates a draft PR checkpoint doc, and sets up the branch following user conventions. Use when starting a new task or feature.
specialist
Orchestrates expert reviews by delegating analysis to specialized sub-agents. Use this when the user asks for a "/specialist" review, a deep technical audit, or specific feedback on code, architecture, security, design, documentation, testing, or devops.