GI

gitlab-container

Manage and clean up GitLab container registry images and tags via CLI.

Install

mkdir -p .claude/skills/gitlab-container && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11809" && unzip -o skill.zip -d .claude/skills/gitlab-container && rm skill.zip

Installs to .claude/skills/gitlab-container

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

GitLab container registry management. Use for listing repositories, viewing and deleting image tags, and cleaning up old container images.
138 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • List container repositories in GitLab
  • Get details for a specific repository
  • List tags within a repository
  • Get details for a specific tag
  • Delete a specific container tag
  • Bulk delete tags by regex

How it works

The skill interacts with the GitLab API to manage container images, allowing users to list, inspect, and delete repositories and tags.

Inputs & outputs

You give it
GitLab project ID and repository/tag identifiers
You get back
List of repositories/tags or confirmation of deletion

When to use gitlab-container

  • List container images
  • Clean up old container tags
  • Delete a repository

About this skill

GitLab Container Registry Skill

Patterns

List container repositories

gitlab_api({ endpoint: "projects/:project/registry/repositories", project: "namespace/project" })

Get a specific repository

gitlab_api({ endpoint: "projects/:project/registry/repositories/:repo_id", project: "namespace/project" })

List tags in a repository

gitlab_api({ endpoint: "projects/:project/registry/repositories/:repo_id/tags", project: "namespace/project" })

Get tag details

gitlab_api({ endpoint: "projects/:project/registry/repositories/:repo_id/tags/:tag", project: "namespace/project" })

Delete a tag

gitlab_api({
  endpoint: "projects/:project/registry/repositories/:repo_id/tags/:tag",
  project: "namespace/project",
  method: "DELETE",
  confirm: true
})

Bulk delete tags by regex

gitlab_api({
  endpoint: "projects/:project/registry/repositories/:repo_id/tags",
  project: "namespace/project",
  method: "DELETE",
  body: { name_regex: ".*", keep_n: 5 },
  confirm: true
})

Delete entire repository

gitlab_api({
  endpoint: "projects/:project/registry/repositories/:repo_id",
  project: "namespace/project",
  method: "DELETE",
  confirm: true
})

Rules

  • Container deletion operations are destructive and irreversible — always confirm with the user before proceeding.
  • Use keep_n when bulk-deleting to preserve recent tags.
  • Repository and tag IDs are numeric; list first to find IDs.

When not to use it

  • Performing non-destructive operations without user confirmation
  • Deleting tags without specifying keep_n for bulk operations
  • Inferring repository or tag IDs without listing them first

Limitations

  • Container deletion operations are destructive and irreversible
  • Requires explicit confirmation for deletion operations
  • Repository and tag IDs must be known or listed first

How it compares

This skill provides specific API calls for GitLab container registry management, including destructive operations with explicit confirmation, unlike general repository browsing.

Compared to similar skills

gitlab-container side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
gitlab-container (this skill)02moNo flagsIntermediate
deployment-engineer44moNo flagsAdvanced
devops26moReviewIntermediate
k8s-kind16moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry