finish-feature

1. Verify Current Branch

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "finish-feature" with this command: npx skills add otrebu/agents/otrebu-agents-finish-feature

Finish Feature

Process

  1. Verify Current Branch

Run git branch --show-current :

  • If main/master: Ask which feature branch to merge

  • If feature branch: Confirm this branch

  1. Check Working Directory

Run git status :

  • Uncommitted changes? Ask: commit or stash?

  • Clean? Proceed

  1. Store Feature Branch Name

FEATURE_BRANCH=$(git branch --show-current)

  1. Switch to Main

Determine main branch (git branch --list main master ), then:

git checkout main # or master

  1. Pull Latest

git pull origin main # or master

  1. Merge Feature Branch

git merge $FEATURE_BRANCH

Conflicts? List files via git status , wait for user resolution: git add .

  • git commit
  1. Push

git push origin main # or master

  1. Delete Feature Branch?

Ask user:

Local:

git branch -d $FEATURE_BRANCH

Remote:

git push origin --delete $FEATURE_BRANCH

  1. Confirm Completion

Output:

  • Merged branch: <feature-branch-name>

  • Push status

  • Deletion status (if applicable)

Constraints

  • Pull main before merge

  • Verify clean working dir before branch switch

  • Never force push to main

  • User resolves conflicts

  • Always ask before deleting branches

Example

User: "Finish user-auth feature"

  • On feature/user-auth , git status clean

  • git checkout main && git pull origin main

  • git merge feature/user-auth && git push origin main

  • Ask: Delete branch? → User confirms

  • Output: "Feature 'user-auth' merged to main, pushed, branch deleted"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

web-to-markdown

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

fix-eslint

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

readwise-api

No summary provided by upstream source.

Repository SourceNeeds Review