Logo: Glab Quick Actions

Glab Quick Actions

Communautéit
vince-winkintel
glab-quick-actions

Use GitLab quick actions — text-based slash commands in comments, descriptions, and MR/issue bodies — via glab CLI. Quick actions execute automatically when saved. Multiple commands can be combined in one comment, making them powerful for batching state changes in a single API call. Triggers on quick actions, slash commands, batch update, /assign, /label, /merge, /approve, /close, /estimate.

Iwwersiicht

Editeurvince-winkintel
Repositorygitlab-cli-skills
Skill-Nummglab-quick-actions
Stären
50
Forks
6
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    vince-winkintel huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Glab Quick Actions an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-quick-actions
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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-quick-actions .claude/skills/glab-quick-actions
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Glab Quick Actions an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Glab Quick Actions automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Glab Quick Actions net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

glab quick-actions

Use GitLab quick actions (slash commands) via the glab CLI to batch multiple state changes in a single API call.

Quick start

bash
# Post a single quick action on an issue
glab issue note 123 -m "/assign @alice"

# Batch multiple quick actions in one comment
glab issue note 123 -m "/assign @alice
/label ~bug ~priority::high
/milestone %\"Sprint 5\""

# Post quick actions on a merge request
glab mr note 456 -m "/assign_reviewer @bob
/label ~needs-review
/estimate 2h"

Key concept: batching via CLI

While glab has native commands for many individual operations (glab issue update, glab mr update, etc.), posting quick actions via glab issue note or glab mr note lets you batch multiple state changes atomically in a single API call.

bash
# Native commands — 3 separate API calls
glab issue update 123 --assignee @alice
glab issue update 123 --label bug,priority::high
glab issue update 123 --milestone "Sprint 5"

# Quick actions — 1 API call, same result
glab issue note 123 -m "/assign @alice
/label ~bug ~priority::high
/milestone %\"Sprint 5\""

When batching is the right choice:

  • Applying 3+ changes to a single issue/MR
  • Scripting triage workflows across multiple items
  • Triggering actions not exposed by glab update flags (e.g., /spend, /epic, /promote_to)

Syntax rules

RuleDetail
PrefixEvery quick action starts with /
CaseCase-insensitive (/Assign = /assign)
PlacementOne command per line; can appear anywhere in a comment/description
ParametersSeparated by space after the command name
LabelsPrefix with ~ (e.g., ~bug, ~"priority::high")
MilestonesPrefix with % (e.g., %"Sprint 5")
UsersPrefix with @ (e.g., @alice, @me)
MR/Issue refsPrefix with # for same-project, group/project#IID for cross-project
EpicsPrefix with & (e.g., &42)
QuotingUse quotes for multi-word values: ~"priority::high", %"Sprint 5"
Ignored textNon-quick-action lines are posted as normal comment text

Issue quick actions

Assignment

CommandParametersDescription
/assign@user [@user2 ...]Assign one or more users
/unassign@user [@user2 ...] or noneRemove specific assignees or clear all
/reassign@user [@user2 ...]Replace all assignees with given users
bash
glab issue note 123 -m "/assign @alice @bob"
glab issue note 123 -m "/reassign @charlie"
glab issue note 123 -m "/unassign"

Labels

CommandParametersDescription
/label~label1 ~label2 ...Add labels
/unlabel~label1 ... or noneRemove specific labels or clear all
/relabel~label1 ...Replace all labels with given ones
bash
glab issue note 123 -m "/label ~bug ~\"priority::high\""
glab issue note 123 -m "/relabel ~\"type::feature\""
glab issue note 123 -m "/unlabel ~needs-triage"

Milestone & scheduling

CommandParametersDescription
/milestone%milestoneSet milestone
/remove_milestone—Remove milestone
/due<date>Set due date (YYYY-MM-DD, tomorrow, next week)
/remove_due_date—Remove due date
bash
glab issue note 123 -m "/milestone %\"Sprint 5\""
glab issue note 123 -m "/due 2024-03-31"
glab issue note 123 -m "/due next week"

Time tracking

CommandParametersDescription
/estimate<time>Set time estimate (e.g., 1h30m, 3d)
/remove_estimate—Remove time estimate
/spend<time> [<date>]Log time spent (e.g., 2h, -30m to subtract)
/remove_time_spent—Remove all time spent
bash
glab issue note 123 -m "/estimate 4h"
glab issue note 123 -m "/spend 1h30m 2024-03-15"
glab issue note 123 -m "/spend -30m"

State changes

CommandParametersDescription
/close—Close the issue
/reopen—Reopen a closed issue
/confidential—Make issue confidential
/done—Mark as done (for todos)
/todo—Add to your to-do list
bash
glab issue note 123 -m "/close"
glab issue note 123 -m "/reopen"

Relations

CommandParametersDescription
/duplicate#issueMark as duplicate of another issue
/relate#issue [#issue2 ...]Add related issue links
/blocks#issue [#issue2 ...]This issue blocks others
/blocked_by#issue [#issue2 ...]This issue is blocked by others
/unrelate#issueRemove relation to another issue
bash
glab issue note 123 -m "/duplicate #456"
glab issue note 123 -m "/relate #789 #790"
glab issue note 123 -m "/blocks #800"

Planning & hierarchy

CommandParametersDescription
/epic&epic or group&epicAdd to epic
/remove_epic—Remove from epic
/iteration*iteration:"name"Set iteration/sprint
/remove_iteration—Remove iteration
/weight<number>Set issue weight
/clear_weight—Clear issue weight
/health_statuson_track, needs_attention, at_riskSet health status
/clear_health_status—Remove health status
/board_move~list-labelMove issue to board list
bash
glab issue note 123 -m "/epic &42"
glab issue note 123 -m "/iteration *iteration:\"Sprint 7\""
glab issue note 123 -m "/weight 3"
glab issue note 123 -m "/health_status on_track"

Advanced

CommandParametersDescription
/copy_metadata#issue or !mrCopy labels and milestone from another item
/clone[path/to/project]Clone issue to another project
/movepath/to/projectMove issue to another project
/create_merge_request[branch-name]Create MR from this issue
/promote_toincident or epicPromote issue to another type
bash
glab issue note 123 -m "/copy_metadata #456"
glab issue note 123 -m "/move group/other-project"
glab issue note 123 -m "/create_merge_request 123-my-feature"
glab issue note 123 -m "/promote_to incident"

MR quick actions

Approval

CommandParametersDescription
/approve—Approve the MR
/unapprove—Remove your approval
bash
glab mr note 456 -m "/approve"

Assignment

CommandParametersDescription
/assign@user [@user2 ...]Assign MR to one or more users
/unassign@user ... or noneRemove assignees
/reassign@user ...Replace all assignees
/assign_reviewer@user [@user2 ...]Add reviewer(s)
/unassign_reviewer@user ... or noneRemove reviewer(s)
/reassign_reviewer@user ...Replace all reviewers
/request_review@user [@user2 ...]Request review from user(s)
bash
glab mr note 456 -m "/assign_reviewer @alice @bob
/label ~needs-review"

Labels & milestone

CommandParametersDescription
/label~label1 ...Add labels
/unlabel~label1 ... or noneRemove labels
/relabel~label1 ...Replace all labels
/milestone%milestoneSet milestone
/remove_milestone—Remove milestone

Time tracking

CommandParametersDescription
/estimate<time>Set time estimate
/remove_estimate—Remove time estimate
/spend<time> [<date>]Log time spent
/remove_time_spent—Remove all time spent

Merge control

CommandParametersDescription
/merge—Merge when pipeline succeeds
/draft—Mark MR as draft
/ready—Mark MR as ready for review
/rebase—Rebase source branch on target
/squash—Enable squash on merge
/target_branch<branch>Change target branch
bash
glab mr note 456 -m "/approve
/merge"

glab mr note 456 -m "/draft"
glab mr note 456 -m "/ready
/assign_reviewer @lead"

State & other

CommandParametersDescription
/close—Close the MR
/reopen—Reopen a closed MR
/copy_metadata#issue or !mrCopy labels and milestone from another item
/react:emoji:Add emoji reaction
/title<new title>Change MR title
/todo—Add to your to-do list
/done—Mark todo as done
/subscribe—Subscribe to MR notifications
/unsubscribe—Unsubscribe from MR notifications
/relate#issue [#issue2 ...]Add related issue links
/blocks#issue [#issue2 ...]This MR blocks issues
/blocked_by#issue [#issue2 ...]This MR is blocked by issues

When to use quick actions vs native glab commands

ScenarioRecommended approach
Single field updateglab issue update / glab mr update (explicit flags)
3+ changes at onceQuick actions batch in one comment
Action not in update flagsQuick actions (e.g., /spend, /epic, /promote_to, /rebase)
Scripting triage of many itemsLoop with glab issue note quick actions
Need flag autocompleteNative glab update commands
Audit trail via commentQuick actions (visible in activity feed)
Approve + merge atomically/approve then /merge in same comment

Decision guide

Do you need to update a single field?
├─ Yes → Use native glab command (e.g., glab issue update --label)
│
├─ No, multiple fields at once?
│   ├─ 2-3 fields supported by --flags → native glab update
│   └─ 3+ fields OR unsupported fields → quick actions batch
│
└─ Is the action not available in glab update?
    └─ Yes → Quick actions only (e.g., /spend, /epic, /promote_to, /rebase, /merge)

Automation examples

Triage script: label + assign + milestone in one pass

bash
#!/usr/bin/env bash
# triage-issues.sh — apply triage metadata to a list of issue IDs
# Usage: ./triage-issues.sh 123 456 789

ASSIGNEE="${ASSIGNEE:-@me}"
LABEL="${LABEL:-~needs-triage}"
MILESTONE="${MILESTONE:-%\"Sprint 5\"}"

for IID in "$@"; do
  glab issue note "$IID" -m "/assign $ASSIGNEE
/label $LABEL
/milestone $MILESTONE"
  echo "Triaged #$IID"
done

Bulk close stale issues

bash
#!/usr/bin/env bash
# close-stale.sh — close all issues with label ~stale
glab issue list --label stale --state opened --output json \
  | jq -r '.[].iid' \
  | while read -r IID; do
      glab issue note "$IID" -m "/close
/unlabel ~stale"
      echo "Closed #$IID"
    done

MR ready for review + assign reviewer

bash
#!/usr/bin/env bash
# ready-for-review.sh — mark current branch MR ready and request review
MR_IID=$(glab mr list --source-branch "$(git branch --show-current)" --output json | jq -r '.[0].iid')

glab mr note "$MR_IID" -m "/ready
/assign_reviewer @team-lead
/label ~needs-review"
echo "MR !$MR_IID marked ready"

Time tracking: log spent time from CLI

bash
#!/usr/bin/env bash
# log-time.sh — log time spent on an issue
# Usage: ./log-time.sh 123 2h30m "2024-03-15"
IID="$1"
TIME="$2"
DATE="${3:-}"

if [[ -n "$DATE" ]]; then
  glab issue note "$IID" -m "/spend $TIME $DATE"
else
  glab issue note "$IID" -m "/spend $TIME"
fi
echo "Logged $TIME on #$IID"

Sprint rotation: move issues to next milestone

bash
#!/usr/bin/env bash
# rotate-sprint.sh — move open issues from one milestone to the next
OLD_MILESTONE="Sprint 5"
NEW_MILESTONE="Sprint 6"

glab issue list --milestone "$OLD_MILESTONE" --state opened --output json \
  | jq -r '.[].iid' \
  | while read -r IID; do
      glab issue note "$IID" -m "/milestone %\"$NEW_MILESTONE\""
      echo "Moved #$IID to $NEW_MILESTONE"
    done

Approve and queue merge

bash
# Approve an MR and queue it to merge when pipeline passes
glab mr note 456 -m "/approve
/merge"

Notes & limitations

  • Quick actions that require specific permissions (e.g., /merge, /approve) will silently fail if you lack the role.
  • /merge queues the MR to merge when the pipeline succeeds — it does not force-merge immediately.
  • Quick actions in issue/MR descriptions are processed on creation and on edit.
  • Some quick actions are only available on specific GitLab tiers (e.g., /epic, /iteration, /weight, /health_status require GitLab Premium or Ultimate).
  • Quick actions posted as comments are not editable after the fact — post a corrective comment if needed.
  • The glab CLI does not validate quick action syntax before posting — check for typos in user/label names.

Related sub-skills

  • glab-issue — native issue create/update/close commands
  • glab-mr — native MR create/update/approve/merge commands
  • glab-label — manage labels before using /label
  • glab-milestone — manage milestones before using /milestone
  • glab-iteration — manage iterations before using /iteration

References

Heefeg gestallte Froen

Wat mécht de KI-Skill Glab Quick Actions?

Use GitLab quick actions — text-based slash commands in comments, descriptions, and MR/issue bodies — via glab CLI. Quick actions execute automatically when saved. Multiple commands can be combined in one comment, making them powerful for batching state changes in a single API call. Triggers on quick actions, slash commands, batch update, /assign, /label, /merge, /approve, /close, /estimate.

Firwat Glab Quick Actions op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Glab Quick Actions besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Glab Quick Actions an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-quick-actions an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Glab Quick Actions benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Glab Quick Actions benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Glab Quick Actions domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Glab Quick Actions gratis?

Jo. vince-winkintel huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇