Glab Deploy Token logo

Glab Deploy Token

Community
vince-winkintel
glab-deploy-token

Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including metadata, active inventory, expiry, scopes, and one-time secret handling. Use glab-token for personal, project, or group access-token rotation.

Overview

Publishervince-winkintel
Repositorygitlab-cli-skills
Skill nameglab-deploy-token
Stars
50
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by vince-winkintel on GitHub. Read the source before you install it.

Installation

Install the Glab Deploy Token AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-deploy-token
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vince-winkintel/gitlab-cli-skills.git /tmp/gitlab-cli-skills
mkdir -p .claude/skills
cp -r /tmp/gitlab-cli-skills/glab-deploy-token .claude/skills/glab-deploy-token
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Glab Deploy Token in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Glab Deploy Token on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Glab Deploy Token is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

glab deploy-token

Manage deploy-token metadata and explicitly approved creation or deletion for a project or group. Deploy tokens authenticate with a username/token pair and are separate from personal, project, and group access tokens.

Inspect metadata

list (alias ls) collects all API pages; --active filters out both revoked and expired tokens. get <token-id> selects one numeric ID from the inventory. Both commands clear the token value before JSON serialization; text output contains metadata only. Neither recovers a secret. --output json and --jq support structured metadata selection.

bash
# Credential-free discovery
glab deploy-token --help
glab deploy-token create --help
glab deploy-token get --help
glab deploy-token delete --help

Always select a nonempty explicit --repo <project-path-or-URL> or --group <group-id-or-path> for reads, creation, and deletion; these flags are mutually exclusive. Without either flag, GITLAB_GROUP selects group scope even inside a project checkout. An explicit --repo suppresses that environment fallback; an explicit --group selects that group instead. A checkout alone does not guarantee project scope.

Confirm the exact host, project/group, and actor before approving any operation. A full project URL pins the repository host. For group scope, a resolvable checkout can still determine the API host; outside a checkout, default/environment host selection applies. Review any configured API-host routing too. --group selects a group, not a host; do not assume it changes the host or that a default host overrides a checkout.

After approval for authenticated metadata reads on the selected host and targets:

bash
# Project inventory and one numeric ID from that inventory
glab deploy-token list --repo https://gitlab.example.com/group/project --active --output json
glab deploy-token get 42 --repo https://gitlab.example.com/group/project --output json

# Group reads: first verify the resolved host as described above
glab deploy-token list --group group/subgroup --active --output json
glab deploy-token get 42 --group group/subgroup --output json

Create with a protected secret handoff

create <name> requires at least one --scope (-S), repeated or comma-separated. The server validates granted scopes. --username defaults to gitlab+deploy-token-<id>; --expires-at (-E) accepts YYYY-MM-DD at midnight UTC or an RFC 3339 timestamp. Omitting expiry creates a non-expiring token. Prefer the minimum approved scopes and a bounded expiry. The special name gitlab-deploy-token can expose the pair to CI/CD as CI_DEPLOY_USER and CI_DEPLOY_PASSWORD; approve that distribution scope too.

Creation has no confirmation prompt and prints the one-time secret in both text and JSON output. It is excluded from glab's MCP tools. Before creation, obtain explicit approval for the host, project/group, actor, name, scopes, expiry, username, and secret destination. Arrange a trusted operator-controlled secret-manager handoff that keeps both output streams out of agent tool results, terminal recording, shell tracing, logs, artifacts, and repository files. If that path is unavailable, stop after help inspection and let the operator perform the approved creation privately. Never run creation as a connectivity test, echo a secret, put it in command arguments, or collect it into a task report.

Conceptual syntax only: glab deploy-token create <name> --scope <approved-scope> --expires-at <approved-expiry> --repo https://<approved-host>/<project-path>. The resulting <deploy-username> and <deploy-token-secret> are placeholders, not values to substitute into task output. The exact upstream help includes examples that print secrets; those are reference output, not permission to execute them. A lost secret cannot be retrieved with get; approve a separate credential replacement and dependent-system update instead of silently creating another token. This command group does not expose revoke or rotate.

Delete after approval and verify without secrets

delete <token-id> (alias del) permanently removes the selected deploy token and immediately breaks anything authenticating with it. This differs from the GitLab UI's revoke action: revoked tokens remain listed, while deleted tokens disappear. There is no CLI revoke or rotate operation.

First obtain approval for metadata reads and inspect the numeric ID using list/get on the explicit project or group. Confirm the host, actor, scope, token metadata, dependent systems, and any separately approved replacement before obtaining explicit deletion approval. Apply the same host-routing and GITLAB_GROUP precautions described above. Interactive deletion prompts; non-interactive deletion requires --yes. That flag skips the prompt, not the approval requirement.

bash
# Only after approval for this exact project, token ID, and impact
glab deploy-token delete 42 --repo https://gitlab.example.com/group/project --yes

# Group alternative: verify the resolved API host first and approve this target separately
glab deploy-token delete 42 --group group/subgroup --yes

After an approved deletion, rerun the full metadata list with the same explicit target and confirm that ID is absent. Do not use --active for this check: expired or revoked tokens are also absent from active-only output. A failed read does not prove deletion. Never verify by authenticating with the secret, printing credentials, or automatically creating a replacement.

See references/commands.md for complete captured parent, create, get, list, and delete help.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Glab Deploy Token AI skill do?

Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including metadata, active inventory, expiry, scopes, and one-time secret handling. Use glab-token for personal, project, or group access-token rotation.

Why use Glab Deploy Token on TypingMind?

Because you install it once and use it with any model. Glab Deploy Token is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Glab Deploy Token in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-deploy-token. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Glab Deploy Token?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Glab Deploy Token?

As many as you like. As long as a model supports skills, you can use Glab Deploy Token with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Glab Deploy Token AI skill free?

Yes. It is published on GitHub by vince-winkintel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇