branch-finish

Validate tests, diffs, and commits before merging or discarding branches.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/hbvg234/jnmt.vn --skill branch-finish-hbvg234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch-finish
Source: https://github.com/hbvg234/jnmt.vn/tree/main/Claude-code/.claude/skills/branch-finish
Command: npx skills add https://github.com/hbvg234/jnmt.vn --skill branch-finish-hbvg234

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verify that code is fully implemented and ready for merge/closure by enforcing tests, cleanliness, and protocol, preventing partial merges and repository pollution.

Core Features & Use Cases

  • Run automated checks: tests pass, no rogue files, clean diffs, and absence of debug artifacts.
  • Enforce conventional commits and merge readiness before pushing or creating PRs.
  • Handle user choices for finalizing or discarding branches in a safe, auditable manner.

Quick Start

Run the branch finish checklist to verify tests, status, and diffs, then choose to merge locally, push with a PR, keep the branch open, or discard.

Frequently Asked Questions about branch-finish

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

FAQPage Schema
How do I verify my git branch is ready for merge?

To verify a git branch is ready for merge, run automated checks to ensure tests pass, diffs are clean, and no rogue files exist. This validates merge readiness and prevents partial merges or repository pollution before pushing or creating a pull request.

What is the best way to finalize a feature branch before creating a pull request?

The best way to finalize a feature branch is enforcing a checklist that validates tests, status, and diffs. This ensures conventional commits are met and debug artifacts are absent, presenting options to push with a PR, merge locally, keep open, or discard safely.

Can I enforce conventional commits before merging a branch?

Yes, you can enforce conventional commits before merging a branch by running a finalization protocol. This checks commit messages against conventions and verifies code cleanliness, ensuring the branch meets repository standards before merge or closure.

How do I safely discard a branch after failing code quality checks?

To safely discard a branch after failing code quality checks, select the discard option from the finalization workflow. This handles branch closure in an auditable manner after automated checks detect rogue files or failing tests.

Why should I run a branch finish checklist instead of merging directly?

You should run a branch finish checklist instead of merging directly to prevent partial merges and repository pollution. It enforces deterministic checks like test validation and clean diffs, ensuring code readiness before finalizing the workflow.