finishing-a-development-branch

Run tests, merge branches, create pull requests, and clean up worktrees.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/rahulsc/forge --skill finishing-a-development-branch-rahulsc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/rahulsc/forge/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/rahulsc/forge --skill finishing-a-development-branch-rahulsc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of integrating completed development work back into the main codebase, ensuring code quality and project integrity.

Core Features & Use Cases

  • Verification Gate: Ensures all prior verification steps have passed before proceeding.
  • Test Verification: Runs the project's test suite to confirm code stability.
  • Integration Options: Provides clear choices for merging, creating a Pull Request, or keeping the branch as-is.
  • Knowledge Promotion: Captures and stores important discoveries made during development.
  • State & Worktree Cleanup: Manages project state and cleans up temporary worktrees.
  • Use Case: After completing a new feature, use this Skill to safely merge your changes, create a PR, or discard the work if necessary, while ensuring tests pass and valuable insights are preserved.

Quick Start

Use the finishing-a-development-branch skill to finalize your completed work.

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 finalize a git development branch before merging?

To safely finalize a git development branch, this Skill runs your project's test suite to verify code stability and ensures all prior verification gates are met before presenting clear integration options like merging or creating a pull request.

What is the best way to merge completed code changes or create a pull request?

The best way to merge completed code changes or create a pull request is to use a structured integration workflow that provides clear choices for merging locally, pushing for PR creation, keeping the branch, or discarding work entirely.

How do I clean up temporary worktrees and project state after code integration?

To clean up temporary worktrees and project state after code integration, this Skill manages the final stages of your work by handling robust confirmation and cleanup procedures once your chosen integration path is complete.

Can I discard work and delete a development branch if tests fail during integration?

Yes, you can discard work and handle branch cleanup if tests fail, because this Skill verifies code integrity through tests as a mandatory gate before proceeding with any merge, pull request, or branch deletion actions.

Does this branch integration process preserve knowledge discovered during development?

Yes, this branch integration process preserves knowledge discovered during development by capturing and promoting important findings, ensuring valuable insights are stored before any project state cleanup or worktree removal occurs.

What happens if prior verification steps are not met when finishing a branch?

If prior verification steps are not met when finishing a branch, the Skill halts the code integration process to prevent unstable merges, ensuring your project's test suite passes and code integrity is fully verified before proceeding.