Skip to content
Back to skills

Gitlab Branches

ASecurity

Manages GitLab branches. Use for listing, creating, deleting, or querying branches in projects. Triggers: branch operations, git branching.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
toolsgit

Works with

  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill gitlab-branches-knuckles-team-gitlab-api-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gitlab Branches?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gitlab Branches
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-gitlab-branches/badge)](https://www.skillsdirectory.com/skills/majiayu000-gitlab-branches)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gitlab-branches
description: "Manages GitLab branches. Use for listing, creating, deleting, or querying branches in projects. Triggers: branch operations, git branching."
---

### Overview
This skill handles branch-related tasks in GitLab via MCP tools. Focus on one operation per call for efficiency.

### Available Tools
- `get_branches`: Get branches in a GitLab project, optionally filtered.
  - **Parameters**:
    - `project_id` (str): Optional. - Project ID or path
    - `search` (Optional[str]): Optional. - Filter branches by name containing this term
    - `regex` (Optional[str]): Optional. - Filter branches by regex pattern on name
    - `branch` (Optional[str]): Optional. - Branch name
- `create_branch`: Create a new branch in a GitLab project from a reference.
  - **Parameters**:
    - `project_id` (str): Optional. - Project ID or path
    - `branch` (str): Optional. - New branch name
    - `ref` (str): Optional. - Reference to create from (branch/tag/commit SHA)
- `delete_branch`: Delete a branch or all merged branches in a GitLab project.
  - **Parameters**:
    - `project_id` (str): Optional. - Project ID or path
    - `branch` (Optional[str]): Optional. - Branch name to delete
    - `delete_merged_branches` (Optional[bool]): Optional. - Delete all merged branches (excluding protected)
    - `ctx` (Optional[Context]): Optional. - MCP context for progress

### Usage Instructions
1. Identify the project_id (e.g., from query or prior context).
2. Call the appropriate tool with minimal params.
3. Handle pagination if results exceed limits (use MCP's built-in support).

### Examples
- List branches: Call `get_branches` with project_id="my/project" and search="feature".
- Create: `create_branch` with project_id="123", branch="new-feature", ref="main".
- Delete merged: `delete_branch` with project_id="123", delete_merged_branches=true.

### Error Handling
- Missing params: Retry with required fields.
- 404: Branch/project not found—verify IDs.
- Rate limits: Wait and retry.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.