0x2e/dev-skills/finishing-work
Claude Code and agent skill by 0x2e/dev-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work — presents structured options for merge, PR, or cleanup
Install
npx vskill@latest install 0x2e/dev-skills/finishing-workSKILL.md
The same SKILL.md was published earlier as 0x2e/dev-skills/finishing-work.
Finishing Work
Guide completion of development work by verifying tests, presenting clear options, and executing the chosen workflow.
Preconditions
Before starting, you must have:
- All implementation tasks complete (executing-plans has finished)
- Final verification has passed (tests, lint, build)
Process
Step 1: Verify Tests
Run the project's test suite before offering options:
If tests fail: report failures. Cannot proceed with merge/PR until tests pass. Stop.
If tests pass: continue to Step 2.
Step 2: Detect Environment
Determine the workspace state:
| State | Menu | Cleanup needed | |
|---|---|---|---|
| Normal repo, named branch | 4 options | No worktree to clean | |
| Git worktree, named branch | 4 options | Clean up worktree after merge/discard | |
| Detached HEAD | 3 options (no merge) | Externally managed |
Step 3: Determine Base Branch
If neither works, ask: "Which branch did this split from?"
Step 4: Present Options
For normal repo and named-branch worktree (4 options):
For detached HEAD (3 options — no local merge):
Step 5: Execute Choice
Option 1: Merge Locally
Return to main repo root, checkout <base-branch>, pull, merge <feature-branch>. Verify tests on the merged result. Only after merge succeeds: clean up worktree (if applicable), then git branch -d <feature-branch>.
Option 2: Push and Create PR
git push -u origin <feature-branch> && gh pr create. Do NOT clean up worktree — the user needs it for PR iteration.
Option 3: Keep As-Is
Report: "Keeping branch <name>. No changes made."
Option 4: Discard
Ask for confirmation first. If confirmed: return to main repo root, checkout <base-branch>, git branch -D <feature-branch>, clean up worktree (if applicable).
Step 6: Clean Up Worktree (Options 1 & 4 only, if applicable)
Only if in a git worktree: return to main repo root, run git worktree remove <path> && git worktree prune. Do NOT run worktree remove from inside the worktree itself.
Quick Reference
| Option | Merge | Push | Clean up worktree | |
|---|---|---|---|---|
| 1. Merge locally | yes | - | yes | |
| 2. Create PR | - | yes | no | |
| 3. Keep as-is | - | - | no | |
| 4. Discard | - | - | yes |
Red Flags
- Never proceed with failing tests.
- Never merge without verifying tests on the merged result.
- Never delete work without typed "discard" confirmation.
- Never clean up worktree for Option 2 (user needs it for PR iteration).
- Never run
git worktree removefrom inside the worktree being removed.
Gotchas
- `gh pr create` fails opaquely when unauthenticated. Run
gh auth statusfirst; an auth problem surfaces as a vague error rather than a clear "log in" prompt. - Base branch can be `main` or `master`.
git merge-base HEAD mainfails on older repos — fall back tomasterbefore asking the user.
This is the terminal phase of the workflow chain. After completion, report the outcome to the user. No further skill is invoked.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/finishing-work/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0x2e/dev-skills/finishing-work)