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.zipInstalls 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.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
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_nwhen 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| gitlab-container (this skill) | 0 | 2mo | No flags | Intermediate |
| deployment-engineer | 4 | 4mo | No flags | Advanced |
| devops | 2 | 6mo | Review | Intermediate |
| k8s-kind | 1 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
deployment-engineer
sickn33
Expert deployment engineer specializing in modern CI/CD pipelines, GitOps workflows, and advanced deployment automation. Masters GitHub Actions, ArgoCD/Flux, progressive delivery, container security, and platform engineering. Handles zero-downtime deployments, security scanning, and developer experience optimization. Use PROACTIVELY for CI/CD design, GitOps implementation, or deployment automation.
devops
mrgoonie
Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.
k8s-kind
rohitg00
Manage kind (Kubernetes IN Docker) local clusters. Use when creating, testing, or developing with local Kubernetes clusters in Docker containers.
devops-engineer
Jeffallan
Use when setting up CI/CD pipelines, containerizing applications, or managing infrastructure as code. Invoke for pipelines, Docker, Kubernetes, cloud platforms, GitOps.
eks
itsmostafa
AWS EKS Kubernetes management for clusters, node groups, and workloads. Use when creating clusters, configuring IRSA, managing node groups, deploying applications, or integrating with AWS services.
devops-engineer
I-Synergy
DevOps and CI/CD specialist. Use for building pipelines, containerization, infrastructure as code, or deployment automation. User-invocable only for production deployments.