glab-snippet

Manage GitLab code snippets with configurable visibility and metadata.

43|5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-snippet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-snippet
Source: https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-snippet
Command: npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-snippet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation, viewing, updating, and management of GitLab code snippets, making it easier to share code, create examples, and organize reusable code blocks.

Core Features & Use Cases

  • Create Snippets: Generate new code snippets with titles, filenames, and descriptions.
  • Manage Snippets: Update existing snippets and control their visibility (public, internal, private).
  • Use Case: Quickly create a public code snippet for a Stack Overflow answer, or a private snippet for a reusable piece of configuration.

Quick Start

Create a new snippet named "my-script" from the file "script.py" with the title "My Python Script".

Frequently Asked Questions about glab-snippet

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

FAQPage Schema
How do I create a GitLab code snippet with a title and file name?

To create a GitLab snippet, provide a title, filename, and description. This skill generates code snippets from specified files and supports personal or project-specific storage with configurable visibility settings.

What is the best way to manage code snippets on GitLab?

Managing GitLab snippets involves creating, viewing, and updating code gists. This skill integrates with the GitLab CLI to handle snippet visibility, filenames, and descriptions for reusable code blocks.

Can I set snippet visibility to private or public on GitLab?

Yes, you can set snippet visibility to public, internal, or private. Updating existing GitLab snippets allows you to control access permissions for sharing configuration files or examples.

Does the GitLab CLI support creating project-specific code snippets?

Yes, the GitLab CLI supports both personal and project-specific snippets. You can create and manage code gists deterministically by specifying titles, filenames, and descriptions.

When do I need to use GitLab snippets for code sharing?

GitLab snippets are needed when sharing reusable code blocks or creating examples for answers. They streamline organizing configuration files and code fragments for team collaboration or public sharing.