finalizing-workflow

Merge the current pull request and reset the local workspace to main.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/lwndev/lwndev-marketplace --skill finalizing-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finalizing-workflow
Source: https://github.com/lwndev/lwndev-marketplace/tree/main/plugins/lwndev-sdlc/skills/finalizing-workflow
Command: npx skills add https://github.com/lwndev/lwndev-marketplace --skill finalizing-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, and includes scripts (resource) components.

What problem does it solve?

Merges the current PR, checks out main, fetches, and pulls — reducing the repetitive end-of-workflow sequence to a single slash command.

Core Features & Use Cases

  • End-to-end workflow for merging PRs and resetting the workspace to main after QA.
  • Handles pre-flight validation, idempotency checks, and bookkeeping as part of a unified command.
  • Works across feature, chore, and bug-fix chains to streamline SDLC operations.

Quick Start

Run the slash command finalize to merge the current PR and reset the repository to main.

Frequently Asked Questions about finalizing-workflow

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

FAQPage Schema
How do I merge a pull request and reset my local git workspace to main in one step?

You can merge a pull request and reset your local workspace to main by running a single finalize slash command. This script merges the PR, checks out main, fetches, and pulls to synchronize your repository.

Does this PR finalization workflow work with feature, chore, and bug-fix branches?

Yes, the PR finalization workflow works across feature, chore, and bug-fix branches. It streamlines end-to-end SDLC operations after QA by safely merging PRs and resetting the workspace to main.

What preflight checks are needed before merging a git pull request?

Preflight validation and idempotency checks are needed before merging a git pull request. This skill implements these checks within its script orchestration to ensure a safe merge, fetch, and checkout process.

Do I need gh and git installed to automate PR finalization?

Yes, you need gh and git installed to automate PR finalization. This skill relies on these dependencies to execute the merge, fetch, and checkout operations required to reset the local workspace to main.

Why does my local main branch stay out of sync after merging a PR?

Your local main branch stays out of sync after merging a PR if you do not fetch and pull. This finalization skill solves that by automating the checkout, fetch, and pull sequence immediately after the merge.

What is the best way to automate repetitive end-of-workflow git merge sequences?

The best way to automate repetitive end-of-workflow git merge sequences is using a unified slash command. This skill reduces the manual PR merge and workspace reset process to a single command.