Claude-skill-registry gitlab-branches
Manages GitLab branches. Use for listing, creating, deleting, or querying branches in projects. Triggers: branch operations, git branching.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/gitlab-branches" ~/.claude/skills/majiayu000-claude-skill-registry-gitlab-branches && rm -rf "$T"
manifest:
skills/data/gitlab-branches/SKILL.mdsource content
Overview
This skill handles branch-related tasks in GitLab via MCP tools. Focus on one operation per call for efficiency.
Available Tools
: Get branches in a GitLab project, optionally filtered.get_branches- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[str]): Optional. - Filter branches by name containing this termsearch
(Optional[str]): Optional. - Filter branches by regex pattern on nameregex
(Optional[str]): Optional. - Branch namebranch
- Parameters:
: Create a new branch in a GitLab project from a reference.create_branch- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - New branch namebranch
(str): Optional. - Reference to create from (branch/tag/commit SHA)ref
- Parameters:
: Delete a branch or all merged branches in a GitLab project.delete_branch- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[str]): Optional. - Branch name to deletebranch
(Optional[bool]): Optional. - Delete all merged branches (excluding protected)delete_merged_branches
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
Usage Instructions
- Identify the project_id (e.g., from query or prior context).
- Call the appropriate tool with minimal params.
- Handle pagination if results exceed limits (use MCP's built-in support).
Examples
- List branches: Call
with project_id="my/project" and search="feature".get_branches - Create:
with project_id="123", branch="new-feature", ref="main".create_branch - Delete merged:
with project_id="123", delete_merged_branches=true.delete_branch
Error Handling
- Missing params: Retry with required fields.
- 404: Branch/project not found—verify IDs.
- Rate limits: Wait and retry.