Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gitlab

БесплатноЗапускает вложенные скриптыНе проверен

Manage GitLab merge requests and pipelines with a Python CLI

microsoftот microsoft★ 1 654 звезды на GitHub

Об этом скилле

GitLab Skill

Overview

Use this skill to inspect and update GitLab merge requests, notes, pipelines, and job logs against GitLab.com or self-managed GitLab instances.

This skill is the repository-local Python workflow for GitLab tasks. It is not the official GitLab MCP server integration surface.

This first hve-core implementation is Python-only. Run the CLI through python scripts/gitlab.py and prefer --fields for read operations to keep output concise.

Prerequisites

The skill requires Python 3.11 or later.

Set these environment variables before running any command:

Variable Required Example Purpose
GITLAB_URL Yes https://gitlab.com GitLab instance URL
GITLAB_AUTH_MODE Optional oauth oauth or explicit legacy-token compatibility mode
GITLAB_OAUTH_CLIENT_ID OAuth Application ID Non-confidential OAuth application ID; no client secret
GITLAB_TOKEN Legacy mode glpat-... PAT accepted only with GITLAB_AUTH_MODE=legacy-token
GITLAB_PROFILE No default Named OAuth profile
GITLAB_TOKEN_STORE No path OAuth store override; parent must be owner-only on POSIX
GITLAB_ALLOW_INSECURE No 1 Permit explicit loopback HTTP development endpoints only
XDG_DATA_HOME No path POSIX data root used for the default OAuth store
LOCALAPPDATA No path Reserved Windows data root; OAuth persistence currently fails closed on Windows
GITLAB_PROJECT No group/project Project path or numeric project ID

If GITLAB_PROJECT is not set, the script attempts to detect the project from git remote get-url origin. Set the variable explicitly when you are not in a git repository or when you want to target a different project.

Operational Variables

Variable Required Purpose
GITLAB_AUDIT_LOG No Path to a JSON Lines audit log. When set, every request is audited (see Audit Logging).
GITLAB_AUDIT_ACTOR No Overrides the recorded actor identity (for example, a CI service principal).
GITLAB_DEBUG No Set to 1 to print a redacted traceback on failure. Never disables redaction.

Audit Logging

When GITLAB_AUDIT_LOG is set, the script writes a structured JSON Lines audit trail for every REST API and OAuth form request. Auditing is fail-closed and write-ahead:

  • An attempt record is written before the request is sent. If the audit log cannot be written, the operation is aborted and nothing is sent to GitLab.
  • An outcome record (success or error, with HTTP status on failure) is written after the request completes.

REST records include a UTC timestamp, actor, auth mode, normalized origin, operation, HTTP method, and event. OAuth records use bounded operation and failure kinds without actor, origin, client, profile, code, body, or free-form error fields. Resource paths, queries, profile names, and profile contents are excluded. The optional audit sink is operationally sensitive because origins can identify tenants or internal hosts. Place it at an access-controlled path and retain it only as long as operations require. Tokens and authorization headers are never written. Audit failures after the request emit a warning without altering the result.

Credential Rotation

OAuth is the default. Register a non-confidential user-, group-, or self-managed instance-owned application with redirect URI http://127.0.0.1:8766/callback and the api scope. Set only GITLAB_URL and GITLAB_OAUTH_CLIENT_ID, then run auth login or the human-assisted auth device-login. Browser login requires a rotating refresh token; access tokens refresh before expiry and replacements are stored atomically. Device login can return an access-token-only profile and then requires another device login after expiry. A provider/local crash window can still require re-login.

The default store is `$XDG_DATA_HO

Полный SKILL.md на GitHub

Установить gitlab в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.mdpyproject.tomlscripts/_gitlab_credentials.pyscripts/_gitlab_oauth.pyscripts/gitlab.pyuv.lock

FAQ

Что делает скилл gitlab?

Manage GitLab merge requests and pipelines with a Python CLI

Как установить скилл gitlab?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gitlab запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить gitlab с