finishing-a-development-branch

Validate tests and guide merge, PR, keep, or discard decisions for development branches.

1|1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/SkogAI/skillsandknowledge --skill finishing-a-development-branch-skogai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/SkogAI/skillsandknowledge/tree/main/actions/finishing-a-development-branch
Command: npx skills add https://github.com/SkogAI/skillsandknowledge --skill finishing-a-development-branch-skogai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides teams to finish development work by validating tests and presenting a concise set of options for merging, creating a PR, keeping the branch, or discarding the work.

Core Features & Use Cases

  • Verify tests pass before proceeding with integration.
  • Determine the appropriate base branch to merge into.
  • Present exactly four options for completing the work and execute the chosen path.
  • Cleanup the worktree and feature branch according to the selected option.

Quick Start

Use the finishing-a-development-branch skill to guide completing a feature branch by verifying tests, choosing an integration path, and cleaning up after the decision.

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 finish a git feature branch and merge it?

To safely finish a git feature branch, verify tests pass, determine the base branch, and select an integration path like merging, creating a pull request, keeping, or discarding the work.

What is the best way to clean up a git worktree after merging a branch?

The best way to clean up a git worktree after merging is to execute a finalization path that removes the feature branch and worktree automatically after the integration decision.

What steps are required to merge a development branch into a base branch?

Required steps to merge a development branch include validating tests, determining the target base branch, executing the merge, and cleaning up the feature worktree.

Should I run tests before creating a pull request from my feature branch?

Yes, you must run tests before creating a pull request. Validating tests ensures the development branch is stable and ready for integration before presenting PR creation options.

What are my options for finishing a development branch if tests fail?

If tests fail, you can choose to keep the branch to fix issues later or discard the work entirely. Validating tests is required before proceeding with any merge or pull request integration.