gitlab-packages

List, publish, and download GitLab repository packages by project and type.

11|1|Updated Oct 31, 2022
One-click install
npx skills add https://github.com/Knuckles-Team/gitlab-api --skill gitlab-packages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitlab-packages
Source: https://github.com/Knuckles-Team/gitlab-api/tree/main/gitlab_api/skills/gitlab-packages
Command: npx skills add https://github.com/Knuckles-Team/gitlab-api --skill gitlab-packages

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing GitLab packages across projects can be tedious without automation, including listing, publishing, and downloading artifacts from the package registry.

Core Features & Use Cases

  • get_repository_packages: Retrieve a list of repository packages for a specific GitLab project, optionally filtered by package type (e.g., npm, maven).
  • publish_repository_package: Publish a repository package to a specific GitLab project.
  • download_repository_package: Download a repository package from a specific GitLab project.
  • Use Case: A DevOps engineer wants to publish an npm package to a project and then publish it across environments or fetch the latest package for deployment.

Quick Start

Use the gitlab-packages skill to list packages for project_id="123" with package_type="npm", then publish_repository_package with package_name="my-lib" and package_version="1.0.0", or download a package by file_name.

Frequently Asked Questions about gitlab-packages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate listing packages in a GitLab project repository?

To list GitLab packages, use the get_repository_packages function with a specific project_id and an optional package_type filter. This retrieves all repository packages for that GitLab project.

What is the best way to publish a package to a GitLab project registry?

Publishing a GitLab package requires the publish_repository_package function, utilizing parameters like project_id, package_name, and package_version to push artifacts to the project repository.

Can I filter GitLab repository packages by type when downloading?

Yes, you can filter repository packages by package_type, such as npm or maven, when listing them. Downloading a package specifically requires the project_id, package_name, package_version, and file_name.

Does this package management automation work across multiple GitLab projects?

Yes, the automation applies to scenarios involving listing, publishing, and downloading repository packages across GitLab projects by targeting each project using its unique project_id parameter.

How do I download a specific package version from GitLab?

To download a GitLab package, use the download_repository_package function with the project_id, package_name, package_version, and file_name parameters to retrieve the exact artifact file.