use-glab

Installation
SKILL.md

glab

Essential Principles

  • Always squash commits via --squash-before-merge on create or --squash on merge
  • Always delete source branch via --remove-source-branch on create or -d on merge
  • Use MR templates when .gitlab/merge_request_templates/ exists in the repo
  • Comments go through glab mr note subcommands (create, list, resolve, update; glab 1.116+). create --reply threads a reply and create --file --line places an inline diff comment, so the position-JSON dance via glab api is only a fallback. GitLab marks these subcommands experimental - if a flag is missing on the installed version, use the glab api fallback shown under Comments
  • API path placeholder: Use :fullpath (not :id) for project reference in glab api calls
  • --input needs 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.

Installs
8
First Seen
Jun 2, 2026