finish-feature

Merge a feature branch into main with conflict handling and push.

4|Updated Oct 6, 2025
One-click install
npx skills add https://github.com/otrebu/agents --skill finish-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finish-feature
Source: https://github.com/otrebu/agents/tree/main/skills/finish-feature
Command: npx skills add https://github.com/otrebu/agents --skill finish-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solves? Merging feature branches back into the main development line can be a meticulous and error-prone process, involving multiple Git commands, status checks, and conflict resolutions. This Skill automates the entire workflow, ensuring a smooth and reliable merge.

Core Features & Use Cases

  • Automated Merge Workflow: Guides you through verifying the current branch, checking the working directory, switching to main, pulling the latest changes, merging the feature branch, and pushing to the remote.
  • Conflict Handling: Intelligently detects merge conflicts, notifies you, and lists conflicting files, allowing for focused manual resolution when necessary.
  • Optional Branch Deletion: Offers to clean up by deleting the feature branch both locally and remotely after a successful merge.
  • Use Case: After completing a feature, simply tell Claude "finish the user-auth feature." It will handle all the Git operations, from pulling the latest main to merging and pushing, ensuring your main branch is up-to-date and your feature branch is cleanly integrated.

Quick Start

Finish the current feature branch and merge it into the main branch, then push the changes.

Frequently Asked Questions about finish-feature

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

FAQPage Schema
How do I merge a feature branch back to main in Git?

Merging a feature branch to main involves switching to main, pulling the latest changes, merging your feature branch, resolving any conflicts, and pushing updates. This Skill automates that entire workflow, handling verification, conflict detection, and optional branch cleanup to ensure a safe integration.

What should I do if Git merge conflicts occur during branch integration?

Merge conflicts happen when changes in your feature branch conflict with main. This Skill detects conflicts, identifies the conflicting files, and prompts you to resolve them manually. Once resolved, it completes the merge and push automatically.

Can I automatically delete my feature branch after merging to main?

Yes. After a successful merge, this Skill offers to delete the feature branch both locally and remotely, cleaning up your repository and keeping your version control workspace organized.

How do I ensure my working directory is clean before merging?

Before merging, uncommitted changes can cause failures. This Skill verifies your working directory is clean and confirms you're on the correct branch, preventing accidental data loss or incomplete merges.

What's the best way to integrate a completed feature into the main development line?

Feature integration requires pulling latest main changes, merging your branch, handling conflicts, and pushing safely. This Skill automates the entire workflow end-to-end, reducing errors and ensuring your main branch stays up-to-date.