Skip to main content
skill CX Codex

glab-gpg-key — Claude Code skill: manage GPG keys on GitLab

glab-gpg-key — a skill for Claude Code that manages GPG keys on GitLab. Automates adding, listing, and deleting keys when setting up commit signing or verifying commit signatures.

MIT 118 installs ★ 51 updated 2026-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a claude-code
Open on GitHub

What glab-gpg-key does

This skill integrates the glab CLI to manage GPG keys linked to your GitLab account. It enables agents to execute operations such as add, list, delete, and get for keys, streamlining the setup of signed commits. The list and get operations support JSON output for better integration with automation scripts.

It requires an existing configuration of the glab CLI. The skill relies on your current authentication session with GitLab to perform these actions. Without an active user session in the underlying CLI, the skill cannot retrieve or modify account keys.

What it helps with

  • Add a new GPG key to a GitLab account
  • List all active GPG keys
  • Delete an old or compromised GPG key
  • Retrieve details of a specific key by ID

Example prompts for the agent

  • List my GPG keys in JSON format
  • Add the GPG key from my_key.asc to GitLab
  • Delete the GPG key with ID 12345

How to install glab-gpg-key

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

Copy the whole skill folder; for one project use .claude/skills/glab-gpg-key/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about glab-gpg-key

How to install glab-gpg-key in Claude Code?

Run npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a claude-code. Afterward, verify the installation by checking ~/.claude/skills/glab-gpg-key/SKILL.md.

What does glab-gpg-key do?

This skill enables the agent to manage GitLab GPG keys by providing commands to add, list, retrieve, and delete keys directly.

What is required to run glab-gpg-key?

You need the glab CLI installed and authenticated with your GitLab account, as the skill operates within your existing user session.

Source text

SKILL.md · MIT
---
name: glab-gpg-key
description: Manage GPG keys for commit signing including add, list, and delete operations. Use when setting up commit signing, managing GPG keys, or verifying signed commits. Triggers on GPG key, commit signing, signed commits, verify commits.
---

# glab gpg-key

## Overview

```

  Manage GPG keys registered with your GitLab account.
  USAGE
    glab gpg-key <command> [command] [--flags]
  COMMANDS
    add [key-file]   Add a GPG key to your GitLab account.
    delete <key-id>  Deletes a single GPG key specified by the ID.
    get <key-id>     Returns a single GPG key specified by the ID.
    list [--flags]   Get a list of GPG keys for the currently authenticated user.
  FLAGS
    -h --help        Show help for this command.
    -R --repo        Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.
```

## Quick start

```bash
glab gpg-key --help
```

## Structured output

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

```bash
# List GPG keys with JSON output
glab gpg-key list --output json
glab gpg-key list -F json

# Get a specific GPG key with JSON output
glab gpg-key get <key-id> --output json
glab gpg-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

Similar skills

All skills for Git and GitHub →

From the same set45

The whole set →
glab-token The glab-token Claude Code skill manages GitLab access tokens, including creating, revoking, and rotating them. The agent activates it for requests about PATs or API tokens. CX Codex +1 120installs glab-version glab-version — a small skill that reports which glab CLI build is installed. Useful when a command misbehaves and the version is the first thing to rule out. CX Codex +1 120installs glab-opentofu glab-opentofu — a Claude Code skill for managing OpenTofu and Terraform state in GitLab. It activates for backend setup and infrastructure-as-code tasks. CX Codex +1 119installs glab-label The glab-label Claude Code skill manages GitLab labels at project and group level. It responds to requests to create, inspect, edit, or remove labels for issues and merge requests. CX Codex +1 118installs glab-alias The glab-alias Claude Code skill manages aliases for the GitLab CLI, glab. Ask it to create, show, or remove a shortcut command. CX Codex +1 118installs glab-quick-actions The glab-quick-actions Claude Code skill sends GitLab quick actions through glab. It groups changes to an issue or merge request into a single comment. CX Codex +1 118installs glab-schedule The glab-schedule Claude Code skill manages GitLab CI/CD pipeline schedules. It activates for requests to create, inspect, change, delete, or run a scheduled pipeline. CX Codex +1 117installs glab-incident The glab-incident Claude Code skill manages GitLab incidents through glab. It activates for requests to create incidents, handle incident response, or connect incidents with issues. CX Codex +1 117installs

Project sponsors

Companies that keep this analytics open