close-build

Merge a completed development branch into main with cleanup and gate enforcement.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/marcusglee11/LifeOS --skill close-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: close-build
Source: https://github.com/marcusglee11/LifeOS/tree/main/.claude/skills/close-build
Command: npx skills add https://github.com/marcusglee11/LifeOS --skill close-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of merging completed branches into the main branch, performing necessary cleanup, and ensuring that all required gates (like tests and documentation) are met before closure.

Core Features & Use Cases

  • Automated Merging: Orchestrates the squash merge of a feature branch into the main branch.
  • Local Cleanup: Deletes the merged branch and clears the active context after a successful merge.
  • Gate Enforcement: Relies on pre-merge hooks to enforce closure gates, ensuring quality and completeness.
  • Use Case: After finishing a new feature and ensuring all tests pass, use this skill to seamlessly merge your code into the main development branch and clean up your local environment.

Quick Start

Run the close build script to merge the current branch to main and perform cleanup.

Frequently Asked Questions about close-build

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

FAQPage Schema
How do I automate merging a feature branch into main and clean up local branches?

You can automate merging a feature branch into main using a script that orchestrates a squash merge, deletes the merged branch locally, and clears the active context after successful integration.

What are closure gates in a git merge workflow and how do they work?

Closure gates in a git merge workflow are pre-merge hooks that enforce project-specific quality standards like passing tests and documentation before a branch is merged into main.

Can I enforce passing tests and documentation before merging a git branch?

Yes, you can enforce tests and documentation before merging a git branch by relying on pre-merge hooks that act as closure gates to ensure quality and completeness.

What is the best way to squash merge a development branch into the main branch?

The best way to squash merge a development branch into main is using an automated workflow that handles the merge, local cleanup, and gate enforcement in one clean, auditable operation.

Does merging branches with automated cleanup delete my local branch context?

Yes, merging branches with automated cleanup deletes the merged branch and clears the active local context after a successful merge to keep your development environment clean.

Why should I use an automated script for branch management instead of manual git merges?

Using an automated script for branch management ensures merge operations are clean, auditable, and adhere to quality standards, reducing human error compared to manual git merges.