gitlab-branches

Lists, creates, and deletes GitLab branches by project_id, name, and reference.

11|1|Updated Oct 31, 2022
One-click install
npx skills add https://github.com/Knuckles-Team/gitlab-api --skill gitlab-branches
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitlab-branches
Source: https://github.com/Knuckles-Team/gitlab-api/tree/main/gitlab_api/skills/gitlab-branches
Command: npx skills add https://github.com/Knuckles-Team/gitlab-api --skill gitlab-branches

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines GitLab branch management by enabling programmatic listing, creation, and deletion of branches within projects, reducing manual workflows.

Core Features & Use Cases

  • Branch Listing: Retrieve branches for a project with optional filters like name search and regex.
  • Branch Creation: Create a new branch from a given ref (branch, tag, or commit SHA).
  • Branch Deletion: Remove a branch or delete all merged branches (with options to protect certain branches).

Quick Start

Use the gitlab-branches skill to list branches for project_id "my/project" or to create, or delete a specific branch using the corresponding tool.

Frequently Asked Questions about gitlab-branches

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

FAQPage Schema
How do I automate GitLab branch management across multiple projects?

You can automate GitLab branch management by using this Skill to programmatically list, create, and delete branches across projects. It enables safe, scripted branch lifecycle operations with filtering by project_id, branch name, and reference.

Can I create a GitLab branch from a specific commit SHA or tag?

Yes, you can create a new GitLab branch from a given reference, which can be an existing branch, tag, or commit SHA. This allows precise control over the starting point of your new branch within the project.

How do I delete all merged branches in GitLab while protecting certain ones?

You can remove merged branches in a GitLab project with options to protect certain branches from deletion. This feature streamlines repository cleanup by safely removing merged references without risking critical branch integrity.

What is the best way to list and filter GitLab branches programmatically?

To list and filter GitLab branches programmatically, retrieve branches for a specific project_id using optional filters like name search and regex. This enables targeted branch discovery within automated workflows.

Do I need any specific dependencies to manage GitLab branches with MCP?

No specific dependencies are required to manage GitLab branches with this Skill. It operates independently as an MCP tool, allowing you to integrate branch lifecycle management into your workflows without additional component installations.