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
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a claude-codeWhat 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.ascto 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-code2Manually: put the files in place
~/.claude/skills/glab-gpg-key/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/glab-gpg-key/
1Skills CLI (Vercel)
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a codex2Manually: put the files in place
.agents/skills/glab-gpg-key/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a cursor2Manually: put the files in place
.cursor/skills/glab-gpg-key/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install vince-winkintel/gitlab-cli-skills glab-gpg-key2Manually: put the files in place
.github/skills/glab-gpg-key/SKILL.md1Skills CLI (Vercel)
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a gemini-cli2Platform CLI
gemini skills install https://github.com/vince-winkintel/gitlab-cli-skills --path glab-gpg-keyManually: put the files in place
.devin/skills/glab-gpg-key/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-gpg-key -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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