moliboy5000/.claude/skill-finish-branch
Claude Code and agent skill by moliboy5000/.claude
- community
Checking that the SKILL.md file is still in the repository.
Wrap up a branch — run tests, create PR, merge or discard — use when implementation is done. Use when: AUTOMATICALLY ACTIVATE when user requests task completion with git operations:. \"commit and push\" or \"git commit and push\". \"complete all tasks and commit and push\"
Install
npx vskill@latest install moliboy5000/.claude/skill-finish-branchSKILL.md
Finishing a Development Branch
Your first output line MUST be: 🐙 **CLAUDE OCTOPUS ACTIVATED** - Branch Completion
Overview
Guide completion of development work with clear options and safe execution.
Core principle: Verify tests → Present options → Execute choice → Clean up.
The Process
Step 1: Verify Tests Pass
Before presenting options, verify tests pass:
If tests fail:
STOP. Do not proceed to Step 2.
If tests pass: Continue to Step 2.
Step 2: Determine Base Branch
If unclear, ask: "This branch split from main - is that correct?"
Step 3: Present Options
Present exactly these 4 options:
Keep options concise. Don't add explanations unless asked.
Step 4: Execute Choice
Option 1: Merge Locally
Report:
Option 2: Create PR
Report:
Option 3: Keep As-Is
Do NOT clean up anything.
Option 4: Discard
Confirm first (REQUIRED):
Wait for exact confirmation: `discard`
If confirmed:
Report:
Step 5: Cleanup (If Using Worktrees)
For Options 1, 2, 4: Check if in a worktree and clean up:
For Option 3: Keep worktree intact.
Quick Reference
| Option | Merge | Push | Keep Branch | Cleanup | |
|---|---|---|---|---|---|
| 1. Merge locally | ✓ | - | Delete | ✓ | |
| 2. Create PR | - | ✓ | Keep | - | |
| 3. Keep as-is | - | - | Keep | - | |
| 4. Discard | - | - | Delete | ✓ |
Integration with Claude Octopus
After completing octopus workflows, use this skill:
With Octopus Validation
Red Flags - Never Do
| Action | Why It's Dangerous | |
|---|---|---|
| Merge without testing | Ships broken code | |
| Skip confirmation for discard | Loses work permanently | |
| Force-push without asking | Destroys history | |
| Delete remote branch silently | Affects collaborators | |
| Proceed when tests fail | Corrupts main branch |
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| Offering options before testing | Always verify tests FIRST | |
| Auto-merging without asking | Present 4 options, let user choose | |
| Deleting without confirmation | Require typed "discard" | |
| Cleaning up worktree on "keep" | Only cleanup for options 1, 2, 4 |
The Bottom Line
Verify tests. Present options. Execute safely. Clean up appropriately.
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 repositoryCheckingplugins/cache/nyldn-plugins/octo/9.30.0/skills/skill-finish-branch/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/moliboy5000/.claude/skill-finish-branch)