use-glab
Installation
SKILL.md
glab
Essential Principles
- Always squash commits via
--squash-before-mergeon create or--squashon merge - Always delete source branch via
--remove-source-branchon create or-don merge - Use MR templates when
.gitlab/merge_request_templates/exists in the repo - Comments go through
glab mr notesubcommands (create,list,resolve,update; glab 1.116+).create --replythreads a reply andcreate --file --lineplaces an inline diff comment, so the position-JSON dance viaglab apiis only a fallback. GitLab marks these subcommands experimental - if a flag is missing on the installed version, use theglab apifallback shown under Comments - API path placeholder: Use
:fullpath(not:id) for project reference inglab apicalls --inputneeds an explicit-H "Content-Type: application/json"— without it the API returns 415
Prerequisites
command -v glab >/dev/null 2>&1
If not found: brew install glab.