finishing-a-dev-branch

Finalize a development branch by verifying tests and choosing an integration option.

4|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/aaaa47080/stock_agent --skill finishing-a-dev-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-dev-branch
Source: https://github.com/aaaa47080/stock_agent/tree/main/.opencode/skills/finishing-a-dev-branch
Command: npx skills add https://github.com/aaaa47080/stock_agent --skill finishing-a-dev-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch requires a clear path after tests pass: deciding how to integrate, clean up, and finalize the work without ambiguity.

Core Features & Use Cases

  • End-of-branch decision workflow: validate tests, determine base branch, and select an appropriate integration option.
  • Branch housekeeping: clean up worktrees and finalize branch state according to the chosen path.
  • Use Case: When a feature branch is complete and verified, use this skill to decide whether to merge locally, push a PR, keep the branch for future work, or discard it.

Quick Start

Finalize your development branch by verifying tests, choosing an integration path, and performing the corresponding git operations.

Frequently Asked Questions about finishing-a-dev-branch

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

FAQPage Schema
How do I clean up a git branch after tests pass?

To clean up a git branch after tests pass, you must resolve the base branch and choose to merge locally, push a pull request, keep, or discard the branch. The workflow enforces test verification before executing any cleanup commands.

What is the best way to finalize a completed feature branch?

Finalizing a completed feature branch requires a deterministic workflow that validates tests, resolves the base branch, and prompts you to select an integration path like merging or discarding. This ensures branch housekeeping is handled without ambiguity.

Can I push a pull request instead of merging locally when finishing a dev branch?

Yes, when finishing a dev branch you can select to push a pull request instead of merging locally. The workflow provides multiple integration options after test verification, letting you choose between local merge, PR, keeping, or discarding.

Does this branch management workflow require test verification before merging?

Yes, this branch management workflow enforces test verification before allowing any merge or discard actions. Automating the finalization of a development branch requires passing tests to ensure the feature is verified before integration.

When should I discard a feature branch instead of keeping it?

You should discard a feature branch during the finalization workflow if the work is no longer needed or you want to abandon the changes entirely. After tests pass, the option selection step explicitly allows discarding the branch for cleanup.

How do I resolve the base branch before merging a dev branch?

Resolving the base branch is a required step in the dev workflow before selecting your integration path. The branch finalization process automates base-branch resolution to ensure local merges or pull requests target the correct branch.