fgcz-gitlab

Manage issues, merge requests, and CI/CD pipelines on gitlab.bfabric.org using the glab CLI.

Updated May 28, 2026
One-click install
npx skills add https://github.com/cpanse/skills --skill fgcz-gitlab-cpanse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fgcz-gitlab
Source: https://github.com/cpanse/skills/tree/main/fgcz-infrastructure/skills/fgcz-gitlab
Command: npx skills add https://github.com/cpanse/skills --skill fgcz-gitlab-cpanse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? FGCZ's self-hosted GitLab at gitlab.bfabric.org requires PAT-based authentication because OAuth is unavailable, so generic GitLab workflows fail with authentication and host errors. This Skill configures and operates the glab CLI against the correct host so issues, merge requests, and pipelines work without manual troubleshooting. ## Core Features & Use Cases - Issue and MR Management: List, view, create, comment on, and close issues and merge requests, including resolving gitlab.bfabric.org URLs and work_items links directly. - Fix-from-URL Workflow: Fetch an issue from a shared link, clone the repo, create a fix branch, and open a merge request in one guided sequence. - Draft Code Reviews: Post line-specific pending draft notes on MR diffs via the GitLab API so AI-assisted reviews stay editable until the user submits them. - Use Case: A colleague shares https://gitlab.bfabric.org/group/project/-/issues/42 and asks you to fix it. The Skill fetches the issue, clones the project, creates a branch, and opens a merge request targeting main. ## Quick Start Ask the agent to view and fix the issue at a gitlab.bfabric.org URL, and it will authenticate glab, fetch the issue, and create a merge request.

Frequently Asked Questions about fgcz-gitlab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate glab with a self-hosted GitLab instance?

Create a Personal Access Token at the GitLab user settings page with api, write_repository, and read_repository scopes, then run glab auth login --hostname gitlab.bfabric.org --token YOUR_TOKEN. OAuth login is unavailable on self-hosted instances without a registered GitLab app.

How do I create a merge request from the command line with glab?

Run glab mr create --fill --target-branch main from your feature branch to auto-populate the title and description. For custom multi-line descriptions, pass --title and --description with a heredoc, or use --related-issue to link an issue.

Can glab open a GitLab issue directly from a URL?

Yes, glab issue view accepts full URLs such as https://gitlab.bfabric.org/group/project/-/issues/42. For work_items URLs, extract the project and ID and run glab issue view N -R group/project instead.

Why do GitLab draft notes post with a null position via glab api?

The glab api -f flag does not properly nest position[...] form keys, so the note posts with position: null. Send the request body as JSON via stdin with a Content-Type: application/json header, including base_sha, start_sha, and head_sha from the MR's diff_refs.

What should I do when glab commands fail with authentication errors?

Run the bundled check_glab_setup.sh diagnostic script to verify glab installation and authentication status for gitlab.bfabric.org. If unauthenticated, create a PAT and log in manually in a terminal, since token entry involves secrets that should not run through the agent.