Glab Deploy Tokenのロゴ

Glab Deploy Token

コミュニティ
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.

概要

公開者vince-winkintel
リポジトリgitlab-cli-skills
スキル名glab-deploy-token
スター
50
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    vince-winkintelがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Glab Deploy Token」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-deploy-token
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGlab Deploy Tokenを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGlab Deploy Tokenを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Glab Deploy Tokenは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでGlab Deploy Tokenを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Glab Deploy Tokenはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGlab Deploy Tokenをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-deploy-tokenを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Glab Deploy Tokenを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Glab Deploy Tokenで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGlab Deploy Tokenを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Glab Deploy Token」は無料ですか?

はい。vince-winkintelがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇