finishing-a-development-branch

Verify tests, then merge locally or create a pull request.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/maplin-co/ai-course --skill finishing-a-development-branch-maplin-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/maplin-co/ai-course/tree/main/.opencode/skill/finishing-a-development-branch
Command: npx skills add https://github.com/maplin-co/ai-course --skill finishing-a-development-branch-maplin-co

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of concluding development tasks by providing clear, actionable options for integrating completed work, ensuring a clean and efficient workflow.

Core Features & Use Cases

  • Test Verification: Automatically checks if all tests pass before proceeding.
  • Branch Integration Options: Offers choices for merging locally, creating a Pull Request, keeping the branch, or discarding work.
  • Worktree Management: Handles the cleanup of development worktrees to maintain a tidy environment.
  • Use Case: After finishing a new feature, you can use this Skill to verify your code, choose to merge it directly into the main branch, or create a PR for review, all while ensuring your local environment is cleaned up afterward.

Quick Start

Use the finishing-a-development-branch skill to merge the current branch into main after verifying tests.

Frequently Asked Questions about finishing-a-development-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely merge a development branch into the main branch?

To safely merge a development branch, the skill first verifies all tests pass, then offers options to merge locally into main or create a pull request for review. This ensures code integration happens only after validation.

What is the best way to manage git branch cleanup after finishing a feature?

Managing git branch cleanup is handled by automatically removing development worktrees after you choose to merge or discard your work. This keeps your local environment tidy without requiring manual git commands.

Can I create a pull request directly from my local git development workflow?

Yes, you can create a pull request directly from your local git development workflow by selecting the PR creation option when finishing your branch. The skill presents this alongside local merge options after tests pass.

Does this skill require passing tests before allowing a git merge?

Yes, test verification runs automatically before proceeding with any git merge or pull request creation. This prevents unverified code from being integrated into your main development cycle.

What options do I have if I want to discard work on a git branch?

If you want to discard work on a git branch, the skill provides a structured option to discard the changes entirely. It also allows you to keep the branch or proceed with integration if you change your mind.