Claude-skill-registry gitlab-environments
Manages GitLab environments. Use for creating, updating, deleting, or protecting deployment environments. Triggers: CI/CD environments, deployments.
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-environments" ~/.claude/skills/majiayu000-claude-skill-registry-gitlab-environments && rm -rf "$T"
manifest:
skills/data/gitlab-environments/SKILL.mdsource content
Overview
Covers environment lifecycle and protection.
Available Tools
: Retrieve a list of environments for a GitLab project, optionally filtered by name, search, or states or a single environment by id.get_environments- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[int]): Optional. - Environment IDenvironment_id
(Optional[str]): Optional. - Filter environments by exact namename
(Optional[str]): Optional. - Filter environments by search term in namesearch
(Optional[str]): Optional. - Filter environments by state (e.g., 'available', 'stopped')states
- Parameters:
: Create a new environment in a GitLab project with a specified name and optional external URL.create_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Name of the environmentname
(Optional[str]): Optional. - External URL for the environmentexternal_url
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Update an existing environment in a GitLab project with new name or external URL.update_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(int): Optional. - Environment IDenvironment_id
(Optional[str]): Optional. - New name for the environmentname
(Optional[str]): Optional. - New external URL for the environmentexternal_url
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Delete a specific environment in a GitLab project.delete_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(int): Optional. - Environment IDenvironment_id
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Stop a specific environment in a GitLab project.stop_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(int): Optional. - Environment IDenvironment_id
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Stop stale environments in a GitLab project, optionally filtered by older_than timestamp.stop_stale_environments- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[str]): Optional. - Filter environments older than this timestamp (ISO 8601 format)older_than
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Delete stopped review app environments in a GitLab project.delete_stopped_environments- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Retrieve protected environments in a GitLab project (list or single by name).get_protected_environments- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Name of the protected environmentname
- Parameters:
: Protect an environment in a GitLab project with optional approval count.protect_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Name of the environment to protectname
(Optional[int]): Optional. - Number of approvals required for deploymentrequired_approval_count
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Update a protected environment in a GitLab project with new approval count.update_protected_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Name of the protected environmentname
(Optional[int]): Optional. - New number of approvals required for deploymentrequired_approval_count
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Unprotect a specific environment in a GitLab project.unprotect_environment- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Name of the environment to unprotectname
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
Usage Instructions
- Use name and external_url for creation.
- Protection: Set required_approval_count.
Examples
- Create:
with project_id="123", name="prod", external_url="https://prod.example.com".create_environment - Protect:
with project_id="123", name="prod", required_approval_count=2.protect_environment
Error Handling
- State conflicts: Check status before ops.