finishing-work
Skill1 starsChanged 5 months agoMITView on GitHub
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
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- MorganOnGitHub/tackletheir own version, first seen Sep 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- MorganOnGitHub/tackle★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyzing-over-engineeringSkill
- brainstormingSkill
- curating-docsSkill
- executing-plansSkill
- planningSkill
- reviewing-codeSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-devflowSkill
- verifying-completionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Before starting, you must have:
- Distinctive: line 13
All implementation tasks complete (executing-plans has finished)
- Distinctive: line 20
Run the project's test suite before offering options:
- Distinctive: line 26
If tests fail: report failures.
- Distinctive: line 28
If tests pass: continue to Step 2.
- Distinctive: line 50
If neither works, ask: "Which branch did this split from?"
- Very specific: line 95
Ask for confirmation first.
- Very specific: line 99
Only if in a git worktree: return to main repo root, run git worktree remove <path> && git worktree prune.
- Distinctive: line 112
Never proceed with failing tests.
- Distinctive: line 113
Never merge without verifying tests on the merged result.
- Distinctive: line 114
Never delete work without typed "discard" confirmation.
- Distinctive: line 115
Never clean up worktree for Option 2 (user needs it for PR iteration).
- Distinctive: line 116
Never run git worktree remove from inside the worktree being removed.
- Very specific: line 120
gh pr createfails opaquely when unauthenticated: Run gh auth status first; an auth problem surfaces as a vague error rather than a clear …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
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:
git rev-parse --git-dir 2>/dev/null && git branch --show-current| 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
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/nullIf 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
| 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 createfails opaquely when unauthenticated. Rungh auth statusfirst; an auth problem surfaces as a vague error rather than a clear "log in" prompt.- Base branch can be
mainormaster.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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

