Help us improve
Share bugs, ideas, or general feedback.
From gitlab
Access GitLab REST and GraphQL APIs via glab with project placeholders. Query issues, merge requests, automate operations; handles pagination and nested payloads.
npx claudepluginhub bendrucker/claude --plugin gitlabHow this skill is triggered — by the user, by Claude, or both
Slash command
/gitlab:apiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
REST and GraphQL API access via `glab api`.
Guides using GitLab CLI (glab) to manage issues, merge requests, CI/CD pipelines, repositories, and other operations from the command line. For GitLab terminal workflows.
Discovers GraphQL schemas via introspection, constructs queries and mutations, and executes them from the command line using gh api or curl, with jq-based response parsing.
Reference GitLab CLI (glab) commands for authentication, issues, merge requests, pipelines, releases, repo management, labels, variables from terminal.
Share bugs, ideas, or general feedback.
REST and GraphQL API access via glab api.
Auto-resolve to current project values:
:fullpath - Full project path (e.g., group/project):id - Project ID:branch - Current branch:user / :username - Current userglab api projects/:fullpath/merge_requests
glab api projects/:id/issues # GET
glab api projects/:id/issues -X POST -f title="..." # POST with field
glab api projects/:id/issues --paginate # All pages
Pagination pitfall: --paginate concatenates JSON arrays across pages as ][, producing invalid JSON (e.g., [{...}][{...}]). Fix by replacing ][ with , before parsing: .replace(/\]\s*\[/g, ",").
Nested fields: -f and --raw-field silently drop bracket-nested keys like position[base_sha]=.... For nested objects, write JSON to a file and use --input:
echo '{"position":{"base_sha":"abc","head_sha":"def","old_path":"file.ts","new_path":"file.ts","position_type":"text","new_line":10}}' > /tmp/payload.json
glab api projects/:id/merge_requests/:iid/discussions -X POST -H "Content-Type: application/json" --input /tmp/payload.json
glab api graphql -f query='{ currentUser { username } }'
For pagination, accept $endCursor variable and fetch pageInfo { hasNextPage, endCursor }.
--output json (default) - Pretty-printed JSON--output ndjson - Newline-delimited, works with jq streaming/api/ in GitLab docs/api/graphql/reference/