К основному содержанию
скилл CX Codex

glab-ssh-key — скилл для Claude Code: управление SSH-ключами

Скилл glab-ssh-key для Claude Code управляет SSH-ключами аккаунта GitLab. Запускается при настройке Git по SSH и добавлении, просмотре или удалении ключей.

MIT 115 установок ★ 51 обновлён 2026-10-20

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-ssh-key -a claude-code
Открыть на GitHub

Что делает glab-ssh-key

Скилл помогает добавлять SSH-ключи в аккаунт GitLab, получать сведения об отдельном ключе, выводить список и удалять ключи. Для этих действий используются команды glab ssh-key add, get, list и delete; списки и отдельные ключи можно получать в JSON.

Для работы нужны glab и авторизованный аккаунт GitLab. Команда добавления должна получать публичный ключ, например ~/.ssh/id_ed25519.pub: загрузка приватного ключа раскрывает учётные данные. Команда --replace удаляет ключ с совпадающим отпечатком до добавления нового; если добавление завершится ошибкой, прежний ключ уже будет удалён.

Какие задачи решает

  • добавить публичный SSH-ключ в аккаунт GitLab
  • посмотреть список ключей аккаунта
  • получить сведения о ключе по ID
  • удалить ключ по ID
  • вывести ключи в формате JSON

Примеры запросов агенту

  • Добавь в GitLab публичный ключ из ~/.ssh/id_ed25519.pub с названием «Ноутбук».
  • Покажи список SSH-ключей моего аккаунта GitLab в формате JSON.
  • Получи сведения о ключе GitLab с ID 123.

Как установить glab-ssh-key

1Через Skills CLI (Vercel)

npx skills add vince-winkintel/gitlab-cli-skills --skill glab-ssh-key -a claude-code

2Вручную: положить файлы

~/.claude/skills/glab-ssh-key/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/glab-ssh-key/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о glab-ssh-key

Как установить glab-ssh-key в Claude Code?

Выполни npx skills add vince-winkintel/gitlab-cli-skills --skill glab-ssh-key -a claude-code. Файл скилла находится по пути ~/.claude/skills/glab-ssh-key/SKILL.md.

Что делает glab-ssh-key?

Скилл помогает добавлять, просматривать и удалять SSH-ключи аккаунта GitLab. Команды list и get поддерживают вывод в JSON.

Что нужно для работы glab-ssh-key?

Нужны glab и авторизованный аккаунт GitLab. Для добавления загружается публичный ключ; приватный ключ раскрывает учётные данные.

Исходный текст

SKILL.md · MIT
---
name: glab-ssh-key
description: Manage SSH keys for GitLab account including add, list, and delete operations. Use when setting up SSH authentication, managing SSH keys, or configuring Git over SSH. Triggers on SSH key, add SSH key, SSH authentication, Git SSH.
---

# glab ssh-key

> **Help provenance.** Each adjacent marker selects its matching source commit and archive SHA-256 below (checksum-verified official macOS arm64 binary). Preserve complete help bytes except trailing spaces/tabs, including casing, spelling, blank lines, indentation, examples, wrapping, and truncation. Historical keys do not override current markers.
> - `2e352a17e`: `2e352a17e7e00bef420b0f38e0ce9ab4e1a38e5d`; `017b14c9bb8d54ba1ea2007607f86dbde0352ad8dea566e2647e9c1bae86bcac`.

## Overview

<!-- help-capture: 2e352a17e:2a3d30b813c3 -->

```text

  Add, list, get, and delete the SSH keys associated with your account.

  GitLab uses SSH keys to authenticate Git operations over SSH, and,
  depending on each key's usage type, to verify signed commits.


  USAGE

    glab ssh-key <command> [command] [--flags]

  COMMANDS

    add [key-file] [--flags]     Add an SSH key to your GitLab account.
    delete [<key-id>] [--flags]  Deletes a single SSH key specified by the ID.
    get [<key-id>] [--flags]     Returns a single SSH key specified by the ID.
    list [--flags]               Get a list of SSH keys for the currently authenticated user.

  FLAGS

    -h --help                    Show help for this command.
    -R --repo                    Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

```

## ⚠️ Security Warning: Public Keys Only

**Always verify you are uploading a PUBLIC key, not a private key.**

- ✅ Public keys: `~/.ssh/id_rsa.pub`, `~/.ssh/id_ed25519.pub` (`.pub` extension)
- ❌ Private keys: `~/.ssh/id_rsa`, `~/.ssh/id_ed25519` (no extension — NEVER upload these)

Uploading a private key to GitLab would expose your credentials. Double-check the filename before running `glab ssh-key add`.

```bash
# ✅ Safe — public key
glab ssh-key add ~/.ssh/id_ed25519.pub --title "My Laptop"

# ❌ NEVER do this — private key
# glab ssh-key add ~/.ssh/id_ed25519 --title "My Laptop"
```

**Before uploading, verify your key is public:**
```bash
# Should start with 'ssh-rsa', 'ssh-ed25519', 'ecdsa-sha2-*', etc.
head -c 20 ~/.ssh/id_ed25519.pub
```

## Quick start

```bash
glab ssh-key --help
```

## Replace an existing key

GitLab rejects duplicate public-key fingerprints even when the registered key has expired. After confirming the authenticated account and the key to replace, use:

```bash
glab ssh-key add ~/.ssh/id_ed25519.pub --title "My Laptop" --expires-at 2027-01-01 --replace
```

`--expires-at` accepts both a date-only value such as `2027-01-01` (midnight UTC) and a full RFC 3339 timestamp such as `2027-01-01T00:00:00Z`. The flag help shows the full timestamp form; the date-only example above is also accepted by the CLI parser.

`--replace` parses the public key, searches the current user's keys across pages for the same SHA256 fingerprint, deletes the match, and adds the supplied key with the requested title, usage type, and expiration. With no match it adds the key normally. There is no replacement confirmation prompt or rollback: if adding fails after deletion, the old key is already gone. Review the matching key before using this flag and keep another authorized access method available. This re-registers the same public key; it does not generate or rotate key material.

## Shell completion

`ssh-key get` and `delete` complete the first argument with current-account key IDs and titles through an authenticated API lookup. Completion is therefore not offline discovery or authorization to delete a key. `add` completes file paths without restricting them to `.pub`; verify that the selected file is a public key before uploading. `--usage-type` completes `auth`, `signing`, and `auth_and_signing`. Help inspection does not exercise those completions.

## Structured output

`glab ssh-key list` and `glab ssh-key get` support `--output json` / `-F json` for structured output, which is useful for agent automation.

```bash
# List SSH keys with JSON output
glab ssh-key list --output json
glab ssh-key list -F json

# Get a specific SSH key with JSON output
glab ssh-key get <key-id> --output json
glab ssh-key get <key-id> -F json
```

## Subcommands

See [references/commands.md](references/commands.md) for full `--help` output.

© vince-winkintel · MIT · vince-winkintel/gitlab-cli-skills

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

Все скиллы по теме «DevOps и инфраструктура» →
linear-release-setup linear Скилл linear-release-setup помогает настроить пайплайны Linear Release в GitHub Actions, GitLab CI или CircleCI. Проводит по шагам от выбора модели веток до добавления секретов. CX Codex +1 15 400установок conventional-git samber Скилл conventional-git задаёт правила именования веток и коммитов по стандарту Conventional Commits v1.0.0. Помогает поддерживать чистую историю проекта в GitHub и GitLab. CX Codex +1 5 400установок gh-switch sentimony Скилл gh-switch для Claude Code переключает активный аккаунт GitHub CLI под текущий репозиторий перед запуском команд gh. Проверка выполняется перед операциями с репозиториями и API GitLab. CX Codex +1 2 200установок gitlab-mcp-skill zereight Помогает работать с инструментами GitLab MCP. Подключается к задачам с merge request, issues, репозиториями и CI-пайплайнами. CX Codex +1 1 400установок shepherd chrisbanes Скилл shepherd отслеживает открытые pull request и merge request, разбирает замечания ревьюеров и падения CI, а также готовит правки к пушу. CX Codex +1 1 400установок ci-cd-integration kindlmann Скилл ci-cd-integration для Claude Code проектирует CI/CD-пайплайны под тест-сьюты. Генерирует шаблоны GitHub Actions и GitLab CI с шардингом, карантином нестабильных тестов и гейтами покрытия. CX Codex +1 1 400установок

Из того же набора45

Весь набор →
glab-completion Скилл glab-completion для Claude Code создаёт скрипты автодополнения glab для bash, zsh, fish и PowerShell. Он включается при настройке подсказок команд в оболочке. CX Codex +1 117установок glab-orbit Скилл glab-orbit для Claude Code управляет Orbit CLI через glab. Он включается для запросов к удалённому графу GitLab и поиска по локальному графу кода. CX Codex +1 117установок glab-duo Скилл glab-duo для Claude Code помогает устанавливать и запускать GitLab Duo CLI через glab. Он включается при работе с GitLab Duo Agent Platform из терминала, в интерактивном режиме или с ограниченной целью без диалога. CX Codex +1 116установок glab-deploy-key Скилл glab-deploy-key для Claude Code управляет SSH-ключами развёртывания проектов GitLab. Включается при настройке доступа для CI/CD или работе с ключами проекта. CX Codex +1 116установок glab-snippet Скилл glab-snippet для Claude Code создаёт сниппеты GitLab из файлов или текста из stdin. Запускается по просьбе поделиться кодом или текстом. CX Codex +1 115установок glab-todo Скилл glab-todo для Claude Code управляет списком задач GitLab через CLI. Он показывает назначенные и упомянутые задачи, а также отмечает их выполненными. CX Codex +1 115установок glab-milestone Скилл glab-milestone для Claude Code управляет вехами GitLab: создаёт, показывает, редактирует, перечисляет и удаляет их. Агент подключает его при планировании релиза и работе с прогрессом вех. CX Codex +1 114установок glab-iteration Скилл glab-iteration для Claude Code и Codex помогает управлять итерациями GitLab. Включается при планировании спринтов, назначении задач и просмотре прогресса. CX Codex +1 114установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой