harness:finishing-a-development-branch

Verify tests and present merge, PR, keep, or discard choices for Git branches.

3|1|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/huangbaixun/harness-engineering --skill harness-finishing-a-development-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harness:finishing-a-development-branch
Source: https://github.com/huangbaixun/harness-engineering/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/huangbaixun/harness-engineering --skill harness-finishing-a-development-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Finishing a feature safely is hard because teams must confirm correctness (tests), choose the right integration path (merge, PR, keep, or discard), and ensure required operational handoffs (feature status, progress sync, and archive) happen before completion.

Core Features & Use Cases

  • Test-gated completion: Verifies the project’s test suite before offering any integration or cleanup choices.
  • Environment-aware integration menu: Detects repo/worktree state (normal, worktree, detached HEAD) and presents exactly the allowed merge/PR/keep/discard options for that scenario.
  • Operational integrations on completion: Updates features.json status to done, mirrors outcomes into claude-progress.json, and requires invoking harness:archive before reporting completion.
  • Deployment-surface safeguard: Prompts the user about harness:canary when the change touches CI/CD or deployment-related surfaces, without auto-invoking it.

Quick Start

Use this skill when your implementation is complete and tests are passing, by telling the agent: "Complete this feature using harness:finishing-a-development-branch and propose the correct next integration option."

Frequently Asked Questions about harness:finishing-a-development-branch

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

FAQPage Schema
How do I safely finish a git development branch with test verification and cleanup?

To safely finish a git development branch, you must first verify that the project's test suite passes. After test verification succeeds, the workflow presents environment-appropriate integration choices like merge, pull request, keep, or discard to ensure safe completion.

What is the best way to handle a git branch completion in a detached HEAD state?

Handling a git branch completion in a detached HEAD state requires an environment-aware integration menu. The workflow detects the detached HEAD scenario and presents exactly the allowed merge, pull request, keep, or discard options valid for that specific worktree state.

How does finishing a feature branch update project tracking files like features.json?

Finishing a feature branch updates project tracking by setting the status to done in features.json. It mirrors these completion outcomes into claude-progress.json and requires invoking the archive process before reporting the feature as fully complete.

Do I need to run a canary deployment when my feature branch modifies CI/CD surfaces?

You do not automatically run a canary deployment when a feature branch modifies CI/CD surfaces. The completion workflow prompts you about the canary deployment option, allowing you to decide whether to invoke it without forcing the action.

Can I use this branch completion workflow for both standard worktrees and detached HEAD scenarios?

You can use this branch completion workflow for both standard worktrees and detached HEAD scenarios. It detects the current repository state and adjusts the available merge, pull request, keep, or discard options to match the specific Git environment.

Why does finishing a development branch require invoking an archive step?

Finishing a development branch requires invoking an archive step to ensure proper documentation and workspace cleanup. This operational integration guarantees that feature status syncing and archiving happen before the workflow reports the branch completion as finished.