finishing-work
Skill19 starsChanged 8 months agoMITView on GitHub
Structured completion workflow for implementation work. Use when implementation is complete, all tests pass, and you need to decide how to integrate the work. Guides merge, PR creation, or cleanup decisions.
- Deletes or force-pushes
- 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- brainstormingSkill
- documenting-decisionsSkill
- git-worktreesSkill
- implementing-plansSkill
- parallel-agentsSkill
- receiving-code-reviewSkill
- researching-codebaseSkill
- research-plan-implementSkill
- reviewing-codeSkill
- security-reviewSkill
- synthesizing-researchSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 17 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Verify tests, present options, execute chosen workflow, clean up.
- Distinctive: line 21
Before using this skill, verify:
- Distinctive: line 23
All implementation steps completed
- Distinctive: line 34
Run the full test suite:
- Distinctive: line 41
If tests fail: Stop. Do not proceed until tests pass.
- Distinctive: line 55
Check git configuration or ask if unclear.
- Distinctive: line 63
Keep for later: - Leave branch as-is to continue later
- Distinctive: line 64
Discard work: - Delete branch and changes
- Distinctive: line 66
Use AskUserQuestion to get user's choice.
- Distinctive: line 109
Do NOT delete the branch after creating PR.
- Distinctive: line 126
Do NOT delete the branch.
- Distinctive: line 157
If work was done in a git worktree:
- Distinctive: line 170
Only remove worktree for merge (Option 1) and discard (Option 4).
- Distinctive: line 223
After completing the chosen option, report:
- Distinctive: line 248
Right: Run tests, then merge only if passing
- Distinctive: line 257
Wrong: Delete branch immediately when user says "discard"
- Distinctive: line 268
Right: Use safe alternatives or coordinate with team
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Verify tests, present options, execute chosen workflow, clean up.
Purpose
Implementation without proper completion leaves work in limbo. This skill provides structured options for finishing work: merge locally, create PR, defer for later, or discard. Each option has specific procedures and cleanup requirements.
Prerequisites
Before using this skill, verify:
- All implementation steps completed
- All verifications passed
- Code review completed (if applicable)
- Security review completed (if applicable)
Do not proceed with failing tests. Fix them first.
The Completion Workflow
Step 1: Verify Tests Pass
Run the full test suite:
Run: [project test command]
Verify: Exit code 0, all tests passIf tests fail: Stop. Do not proceed until tests pass.
Step 2: Identify Base Branch
Determine the target branch for integration:
Common targets:
- main (most common)
- master (legacy naming)
- develop (gitflow)
- [feature-branch] (nested features)Check git configuration or ask if unclear.
Step 3: Present Options
Present exactly four options without elaboration:
- Merge locally - Merge to base branch on local machine
- Create pull request - Push and open PR for review
- Keep for later - Leave branch as-is to continue later
- Discard work - Delete branch and changes
Use AskUserQuestion to get user's choice.
Step 4: Execute Chosen Option
Option 1: Merge Locally
1. Checkout base branch
git checkout [base-branch]
2. Pull latest changes
git pull origin [base-branch]
3. Merge feature branch
git merge [feature-branch]
4. Run tests on merged result
[project test command]
5. If tests pass, push
git push origin [base-branch]
6. Delete feature branch
git branch -d [feature-branch]
git push origin --delete [feature-branch]Never merge without verifying tests pass on the result.
Option 2: Create Pull Request
1. Push feature branch
git push -u origin [feature-branch]
2. Create PR using gh CLI
gh pr create --title "[title]" --body "[description]"
3. Report PR URL to user
4. Keep branch active for PR reviewDo NOT delete the branch after creating PR.
Option 3: Keep for Later
1. Commit any uncommitted changes
git add -A && git commit -m "WIP: [description]"
2. Push to remote (backup)
git push -u origin [feature-branch]
3. Note current state for later
- Branch name
- What's done
- What remainsDo NOT delete the branch.
Option 4: Discard Work
1. Confirm with user (require typed confirmation)
"Type 'DISCARD' to confirm deletion of all changes"
2. If confirmed:
git checkout [base-branch]
git branch -D [feature-branch]
git push origin --delete [feature-branch] (if pushed)
3. Clean up any worktree if applicableRequire explicit confirmation. This is destructive.
Step 5: Clean Up
Cleanup depends on the chosen option:
| Option | Cleanup Action |
| Merge locally | Delete feature branch, remove worktree if used |
| Create PR | Keep branch, keep worktree if used |
| Keep for later | Keep branch, keep worktree if used |
| Discard work | Delete branch, remove worktree if used |
Worktree Cleanup (if applicable)
If work was done in a git worktree:
1. Exit the worktree directory
cd [main-repository]
2. Remove the worktree
git worktree remove [worktree-path]
3. Verify removal
git worktree listOnly remove worktree for merge (Option 1) and discard (Option 4).
Integration with Implement Phase
This skill is the natural endpoint of the implement phase:
Implementation complete
→ Code review passed
→ Security review passed
→ Use finishing-work skill
→ Choose completion option
→ Execute and clean upSafety Guardrails
Never Merge with Failing Tests
If tests fail after merge:
1. Do NOT push
2. Reset the merge: git merge --abort
3. Investigate failures
4. Fix before attempting merge againNever Force Push to Shared Branches
Avoid: git push --force origin main
This rewrites history and breaks collaborators.
If needed, use: git push --force-with-lease
This fails if remote has new commits.Confirm Before Discarding
Discard is permanent. Require typed confirmation:
"Type 'DISCARD' to confirm"
Do not accept:
- "yes"
- "y"
- "confirm"
Only exact match: "DISCARD"Status Reporting
After completing the chosen option, report:
Option 1 (Merge):
"Merged [feature-branch] to [base-branch].
Branch deleted. [N] commits integrated."
Option 2 (PR):
"Pull request created: [PR-URL]
Branch [feature-branch] pushed to origin."
Option 3 (Keep):
"Branch [feature-branch] saved for later.
Pushed to origin as backup."
Option 4 (Discard):
"Branch [feature-branch] deleted.
All changes discarded."Anti-Patterns
Merging Without Tests
Wrong: Merge and hope tests pass Right: Run tests, then merge only if passing
Leaving Branches Dangling
Wrong: Finish work, forget to clean up branches Right: Execute appropriate cleanup for chosen option
Skipping Confirmation for Discard
Wrong: Delete branch immediately when user says "discard" Right: Require explicit "DISCARD" confirmation
Merging Unreviewed Code
Wrong: Merge without code review Right: Complete review process before finishing
Force Pushing to Shared Branches
Wrong: Force push to fix mistakes Right: Use safe alternatives or coordinate with team
Checklist Before Finishing
- All implementation steps complete
- All tests pass
- Code review completed (if required)
- Security review completed (if required)
- Base branch identified
- Option chosen by user
- Tests pass after merge (if merging)
- Appropriate cleanup performed
- Status reported to user
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.

