openagent-finishing-a-development-branch

Automate branch completion with approval gates and test verification.

Updated Sep 16, 2025
One-click install
npx skills add https://github.com/SvenMarcus/.dotfiles --skill openagent-finishing-a-development-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openagent-finishing-a-development-branch
Source: https://github.com/SvenMarcus/.dotfiles/tree/main/opencode/.config/opencode/skills/custom/openagent-finishing-a-development-branch
Command: npx skills add https://github.com/SvenMarcus/.dotfiles --skill openagent-finishing-a-development-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures safe, governed completion of development work by enforcing approval gates at each decision point.

Core Features & Use Cases

  • Verify tests before proposing completion options.
  • Present four deterministic options for finishing work: merge locally, push and PR, keep as-is, or discard.
  • Execute user-approved actions with safety checks and optional worktree cleanup.

Quick Start

Verify tests first, then present the four completion options with approval gates and follow the chosen path.

Frequently Asked Questions about openagent-finishing-a-development-branch

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

FAQPage Schema
How do I safely merge a git development branch after tests pass?

To safely merge a git development branch, use a gated completion process that verifies tests first, then presents deterministic options—merge locally, push and PR, keep, or discard—behind sequential approval gates before executing the approved action.

What is the best way to automate pull request creation with approval gates?

Automating pull request creation with approval gates requires sequential approvals before test verification, then presenting completion options including push and PR, executing only after explicit user approval to ensure governed branch completion.

Can I discard a git worktree automatically after branch completion?

Yes, you can discard a git worktree automatically after branch completion by enabling optional worktree cleanup during the execution phase, which triggers after the approved completion action passes its final approval gate.

What are my options for finishing a development branch without losing uncommitted work?

Options for finishing a development branch safely include merging locally, pushing to create a pull request, keeping the branch as-is, or discarding changes, all presented as deterministic choices after test verification and gated approvals.

Do I need to run tests before presenting branch completion options?

Yes, you need to run tests before presenting branch completion options, as the gated workflow mandates test verification as the initial step before evaluating and presenting the four deterministic completion paths for user approval.