finish

Verify tests, select merge, PR, keep, discard options, execute chosen Git workflow, and clean up worktrees.

15|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/duronext/jig --skill finish-duronext
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finish
Source: https://github.com/duronext/jig/tree/main/core/skills/finish
Command: npx skills add https://github.com/duronext/jig --skill finish-duronext

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch after all tasks are complete requires a structured, auditable decision process to integrate or remove work.

Core Features & Use Cases

  • Verify tests pass before any integration decision
  • Present deterministic options: merge locally, push PR, keep branch, or discard
  • Execute the chosen option and perform cleanup of worktrees and branches
  • Supports guidance for post-completion notes and handoffs in team workflows

Quick Start

Tell me that the development work is ready and choose one of: merge, PR, keep, or discard.

Frequently Asked Questions about finish

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

FAQPage Schema
How do I finish a git feature branch after development is complete?

Finishing a git feature branch requires verifying tests pass, determining the base branch, selecting merge, PR, keep, or discard, and executing cleanup of worktrees and branches.

What is the best workflow for cleaning up git worktrees after merging a pull request?

Cleaning up git worktrees uses a deterministic flow: verify tests pass, present options like merge or PR, execute the chosen integration action, and remove obsolete worktrees and branches.

Can I discard local changes instead of creating a pull request when finishing a branch?

Yes, you can discard changes. The workflow presents four options: merge locally, push PR, keep the branch, or discard, allowing you to bypass pull requests and remove the feature branch entirely.

Does finishing a development branch require tests to pass before merging?

Yes, finishing a development branch enforces test verification first. The guided decision flow mandates that tests pass before presenting integration options like merge, PR, keep, or discard.

What should I do if I want to keep a feature branch instead of merging it?

To keep a feature branch, select the keep option from the four choices. The workflow bypasses merging or PR creation and proceeds with worktree cleanup based on your decision to retain the branch.