bk-finish-branch

Commit, verify, rebase, push, and prepare a pull request description.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dikini/knot --skill bk-finish-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bk-finish-branch
Source: https://github.com/dikini/knot/tree/main/.agents/skills/bk-finish-branch
Command: npx skills add https://github.com/dikini/knot --skill bk-finish-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of finalizing a development branch by automating commits, verification, PR preparation, and cleanup, ensuring a clean and efficient merge into the main codebase.

Core Features & Use Cases

  • Automated Workflow: Handles the entire branch completion process from final commit to cleanup.
  • Verification Integration: Ensures tests pass and code is verified before proceeding.
  • PR Preparation: Generates a structured PR description linking to relevant documentation and tasks.
  • Use Case: After completing a new feature, use this Skill to commit your changes, rebase onto the main branch, push, and get a ready-to-use PR description, saving significant manual effort.

Quick Start

Use bk-finish-branch to complete the current development branch and prepare a pull request.

Frequently Asked Questions about bk-finish-branch

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

FAQPage Schema
How do I automate git branch completion and pull request preparation?

Automate git branch completion by committing, verifying, rebasing, and pushing changes to prepare a structured pull request description. This ensures a clean merge into the main codebase after feature implementation is finished.

What is the best way to ensure a clean git merge after finishing a feature?

Ensuring a clean git merge requires verifying tests pass, rebasing onto the main branch, and preparing a structured pull request. Automating this workflow prevents manual errors and streamlines code completion into the main codebase.

Can I squash commits when finalizing a development branch?

Yes, you can squash commits when finalizing a development branch. The skill supports optional commit squashing alongside worktree management and pull request creation to ensure a clean and efficient merge history.

How do I generate a pull request description automatically from my code changes?

Generate a pull request description automatically by integrating workflow automation that links to relevant documentation and tasks. This structured PR preparation happens after verifying and pushing your completed development branch.

Does workflow automation support optional worktree management for branching?

Yes, workflow automation supports optional worktree management for branching. This feature handles the entire branch completion process from final commit to cleanup, including verification integration and pull request preparation.

Why should I use automated rebase before pushing a feature branch?

Use automated rebase before pushing a feature branch to ensure your code integrates cleanly with the main branch. This verification and rebase step prevents merge conflicts and prepares a clean pull request.