0x2e/dev-skills/finishing-work

Claude Code and agent skill by 0x2e/dev-skills

Trust tier 3
  • community
Source check pending

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-work

SKILL.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:

  1. All implementation tasks complete (executing-plans has finished)
  2. Final verification has passed (tests, lint, build)

Process

Step 1: Verify Tests

Run the project's test suite before offering options:

bash
npm test / cargo test / pytest / go test ./...

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:

bash
git rev-parse --git-dir 2>/dev/null && git branch --show-current
StateMenuCleanup needed
Normal repo, named branch4 optionsNo worktree to clean
Git worktree, named branch4 optionsClean up worktree after merge/discard
Detached HEAD3 options (no merge)Externally managed
Step 3: Determine Base Branch
bash
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null

If neither works, ask: "Which branch did this split from?"

Step 4: Present Options

For normal repo and named-branch worktree (4 options):

Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?

For detached HEAD (3 options — no local merge):

Implementation complete. You're on a detached HEAD.
1. Push as new branch and create a Pull Request
2. Keep as-is (I'll handle it later)
3. Discard this work
Which option?
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

OptionMergePushClean up worktree
1. Merge locallyyes-yes
2. Create PR-yesno
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 remove from inside the worktree being removed.

Gotchas

  • `gh pr create` fails opaquely when unauthenticated. Run gh auth status first; 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 main fails on older repos — fall back to master before 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0x2e/dev-skills/finishing-work/badge)](https://verified-skill.com/skills/0x2e/dev-skills/finishing-work)

Something wrong with this skill or its page? Tell us.