/flc-skills:glab-clifrom flc-skills
Runs and explains GitLab CLI commands for repositories, merge requests, issues, CI/CD, releases, and API operations across GitLab.com and self-managed instances with context-aware host detection.
Ships in flc-skills. 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.
Use glab with host-aware defaults instead of hardcoding gitlab.com.
Follow this order unless the user explicitly asks for a single command.
glab use the current context by defaultDo not run host detection by default.
In a Git repository, prefer:
glab <command>
Only add GITLAB_HOST, --hostname, or -R when the task targets another repo or another instance, or when glab resolves the wrong context.
Check git remote -v only when:
glab resolves to the wrong instanceRules:
gitlab.com, treat the platform as gitlab.com.self-managed-or-dedicated.git remote -v, treat the result as ambiguous and confirm before any write operation.GITLAB_HOST is already set, let it override the remote-derived host.If git remote -v does not show a GitLab remote:
gitlab.com for a private installationIf multiple GitLab hosts are present in git remote -v, do not silently pick one for write operations. Confirm the target or set GITLAB_HOST explicitly first.
For repository-scoped commands, prefer one of these patterns:
glab <command>
GITLAB_HOST="$host" glab <command>
glab <command> -R "$repo"
GITLAB_HOST="$host" glab <command> -R "$repo"
Decision rules:
glab commands.-R "$repo".GITLAB_HOST="$host" and add -R "$repo" when the command is repository-scoped.glab api, prefer --hostname "$host" when calling an instance other than the current repository context.glab context is chosenCheck auth:
glab auth status
glab auth status --hostname "$host"
glab auth status --all
Sign in:
glab auth login
glab auth login --hostname "$host"
glab auth login --stdin < token.txt
glab auth login --hostname "$host" --token "$TOKEN"
Notes:
glab auth login in an interactive Git repository can detect GitLab instances from Git remotes.GITLAB_TOKEN, GITLAB_ACCESS_TOKEN, and OAUTH_TOKEN override stored credentials.--hostname for self-managed or dedicated instances instead of relying on defaults.Use these command families.
glab repo view
glab repo view "$repo"
glab repo clone "$repo"
GITLAB_HOST="$host" glab repo clone "$repo"
glab mr create --fill --yes
glab mr create -t "title" -d "description" -b main -s feature-branch
glab mr list
glab mr view 123
glab mr diff 123
glab mr checkout 123
glab mr note 123 -m "Looks good to me"
glab mr update 123 --label needs-review --reviewer alice
glab mr merge 123
glab issue list
glab issue view 123
glab issue create -t "title" -d "description"
glab issue create -t "title" -l bug -a alice --web
glab issue note 123 -m "Can you share repro steps?"
glab issue update 123 --label triage --assignee alice
glab ci list
glab ci status
glab ci view
glab ci trace 12345
glab ci run
glab release create v1.2.3 --notes "release notes"
glab release create v1.2.3 --notes-file CHANGELOG.md
glab release view v1.2.3
glab api projects/:fullpath
glab api projects/:fullpath/merge_requests --paginate
glab api graphql -f query='query { currentUser { username } }'
glab api --hostname "$host" projects/:fullpath
For checked command syntax and doc links, read references/verified-commands.md.
Many glab commands accept -R/--repo with:
OWNER/REPOGROUP/NAMESPACE/REPOUse the repository path form when you already have repo from the detection step. It is shorter and easier to compose.
GITLAB_HOST for cross-instance adaptationFor most CLI commands, GITLAB_HOST="$host" is the simplest host override.
Example:
GITLAB_HOST="$host" glab repo clone "$repo"
GITLAB_HOST="$host" glab issue list -R "$repo"
For glab api, --hostname "$host" is usually clearer than relying only on environment.
glab apiWhen running glab api inside a GitLab repository, placeholders such as :fullpath, :branch, :namespace, and :repo resolve from the current repository.
Prefer them when they remove brittle manual encoding:
glab api projects/:fullpath
glab api projects/:fullpath/repository/branches/:branch
Stop and reassess if:
gitlab.com URLsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gitlab-cli, gitlab-workflow, merge-requests, ci-cd, self-managed-gitlab
npx claudepluginhub flc1125/skills --plugin flc-skills31 skills in this plugin
/asyncLaunch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference./code-reviewRequest or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding./create-planCreate and maintain repository-aware technical plans, implementation plans, refactor proposals, design drafts, and migration plans. Use when Codex is asked to investigate a codebase and propose a solution before implementation; write or update a durable plan file; produce a 方案、实施计划或重构计划; split engineering work into phases or pull requests; document scope, non-goals, API and behavior decisions, breaking changes, migrations, risks, testing, or validation; or transition a plan through draft, planned, in-progress, blocked, and completed states./design-workflow-graphsDesign, transform, review, and evolve graph-based workflows with explicit state, nodes, edges, routing, concurrency, joins, loops, approvals, recovery, termination, side effects, and observability. Use when Codex needs to decide whether graph orchestration fits a process; turn requirements, a linear workflow, or an agent loop into a workflow graph; audit an existing DAG or state graph; or produce a framework-neutral graph specification before implementation./eli5Create a simple, picture-first explanation of a topic, defaulting to self-contained HTML. Use when the user says ELI5, asks to explain something like they are five, or wants a visual explanation with very few words; do not use for ordinary concise explanations that do not ask for this style./engineering-backend-architectDesign backend system architecture for new products, large features, platform refactors, API and database design, microservices decomposition, event-driven systems, scaling, reliability, observability, and cloud deployment.Other plugins' skills for the same job