/xonovex-integrations:gitlab-guidefrom xonovex-integrations
Guides GitLab workflow delivery and enforcement: issues, issue-board kanban, merge requests, durable context notes, and native CI/policy enforcement. Works with GitLab.com, Self-Managed, or Dedicated.
Ships in xonovex-integrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
How to realize tickets, kanban, merge-request delivery, durable context projections, and provider-native external enforcement on GitLab. The operations map finished artifacts and workflow intent onto GitLab-native resources.
The one thing to internalize: a project issue/work item, an issue-board list, a top-level Note, an inline discussion, and approval are separate objects. Most board cards are views over issue attributes, and review has no atomic object, so preserve every native identity and effect separately.
Before any write:
glab auth status and confirm the intended identity on the intended host: a stale env token silently acts as the wrong user./metadata and the actual resource/schema when version or tier changes the operation.DiffNote, never trust a 201 alone.glab on PATH, authenticated to the target host. First-time machine setup (install, glab auth login, protocol, clone, verify) is in references/first-time-setup.md; token types and exact per-operation scopes are in references/auth.md.read_api for read-only work or api (plus write_repository for git ops) for any write, carried by an identity with >= Developer role on the project (or the MR author).jq for reading API responses (verifying note type, merge status, discussion ids).glab mr create --source-branch <b> --target-branch main (-s defaults to current branch, -b to project default); glab addresses MRs by per-project iid. See references/create.md.git push -u origin HEAD first (see git-guide's push reference), then create; or pass --push. Always pass --yes in scripts or create hangs on the confirmation prompt. See references/create.md.glab mr note <iid> -m "## Summary..." (POST .../notes). See references/review-post.md.glab mr note create <iid> --file path --line N -m "...", or raw POST .../discussions with a position object carrying three SHAs and conditional line keys. Realizes code-review-guide's findings on GitLab. See references/review-post.md.REQUEST_CHANGES; gate by withholding /approve against approval rules or by leaving resolvable threads unresolved with only_allow_merge_if_all_discussions_are_resolved. See references/review-post.md.PUT .../discussions/:discussion_id?resolved=true (REST is enough on GitLab; no GraphQL needed); match by discussion id, never by line. See references/review-resolve.md.web_url; build <mr_url>#note_<note_id> from the returned note id. See references/review-post.md.api scope for writes (read_api reads), GITLAB_HOST targets self-managed, GITLAB_TOKEN is the general auth token. See references/auth.md.api scope (full read+write to every group/project the identity can reach, plus Git-over-HTTP). read_api is read-only and 403s on POST; write_repository covers only git push / repo files, NOT discussions. Use separate read vs write tokens; prefer a project access token scoped to one project.api-scoped token still 403s without the role: create MR / open a diff thread / resolve needs >= Developer (or MR author); approving needs being an eligible approver; unapprove / reset_approvals work only for bot users (humans 401). A 403 with api scope is usually a role or config problem, not a scope one.POST /discussions, verdict = a separate /approve. The batched "Submit review with summary" exists only in the UI / GraphQL; over REST you publish each piece immediately.base_sha/start_sha/head_sha or the wrong line key returns 201 but downgrades the DiffNote to a floating Note on the Overview tab. ALWAYS verify the response notes[0].type == "DiffNote"; re-fetch the three SHAs after every push; remember ADDED→new_line only, REMOVED→old_line only, UNCHANGED→both, with old_path AND new_path always required.create on the same source branch returns HTTP 409 "Another open merge request already exists for this source branch: !N". List first, then push commits to the existing MR (they attach automatically) or glab mr update <iid>.--description / description= overwrite the whole body (no append; read-modify-write); only labels have additive add_labels / remove_labels.glab mr note list / resolve / reopen) and may change or be removed, for stable scripted inline review and resolution drive the Discussions API via glab api instead.GITLAB_TOKEN / GITLAB_ACCESS_TOKEN / OAUTH_TOKEN) override stored config; self-managed needs --hostname / GITLAB_HOST or glab silently hits gitlab.com; git_protocol and api_protocol are separate per-host settings; the token sits in plaintext ~/.config/glab-cli/config.yml unless --use-keyring. Run glab auth status before every write.# 0. confirm identity + host before any write (a stale env token acts as the wrong user)
glab auth status
# 1. push the branch (see git-guide), then open the MR (--yes or it hangs in scripts)
git push -u origin HEAD
iid=$(glab mr create -R group/project \
--source-branch "$(git branch --show-current)" --target-branch main \
--title "feat: x" --description "<what/why/how, see pull-request-guide>" \
--reviewer alice --label backend --yes \
| grep -oE '!\d+' | tr -d '!')
# 2a. summary note (plain, non-anchored)
glab mr note "$iid" -R group/project -m "## Review summary
Two issues inline; withholding approval until addressed."
# 2b. inline comment on an added line (glab resolves the three SHAs for you)
glab mr note create "$iid" -R group/project \
--file src/api/users.go --line 42 \
-m "**issue (blocking):** unchecked error, see code-review-guide for labels"
# 2c. block by withholding approval (do NOT approve); verify gating
glab api "projects/group%2Fproject/merge_requests/$iid" | jq -r .detailed_merge_status
# 3. later: list threads, match by id, resolve, then approve to clear the gate
glab api "projects/group%2Fproject/merge_requests/$iid/discussions" \
| jq -r '.[] | select(.notes[0].position.new_path=="src/api/users.go") | .id'
glab api --method PUT \
"projects/group%2Fproject/merge_requests/$iid/discussions/<discussion_id>?resolved=true"
glab mr approve "$iid" -R group/project
Each reference is a trigger: read it only when the user's intent matches; do not preload everything.
glab auth login (web / device / stdin), choosing git_protocol vs api_protocol, cloning, and verifying with a read call.read_api vs api), targeting a self-managed host, storing it (keyring / CI), or rotating a leak.glab mr create flags, draft, reviewers / labels, issue-link / close semantics, the one-open-MR-per-branch 409, additive-body rules, and the raw REST equivalent.DiffNote, the blocking mechanism, and the #note_<id> deep-link.SOURCES.md (opens in a new tab)eval-queries.json (opens in a new tab)evals.json (opens in a new tab)moon.yml (opens in a new tab)references/auth.md (opens in a new tab)references/automation-and-enforcement.md (opens in a new tab)references/boards.md (opens in a new tab)references/context-notes.md (opens in a new tab)references/create.md (opens in a new tab)references/first-time-setup.md (opens in a new tab)references/issues.md (opens in a new tab)references/onboarding.md (opens in a new tab)references/provider-conformance.md (opens in a new tab)references/review-post.md (opens in a new tab)references/review-resolve.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub xonovex/platform --plugin xonovex-integrations