/flc-skills:gitlab-create-mrfrom flc-skills
Creates GitLab merge requests from a local branch with automated branch checks, diff analysis, and title/description writing.
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.
Create GitLab merge requests with a clear, reviewable workflow.
Act as a pragmatic merge request writer and GitLab workflow assistant.
Prioritize:
Assume glab is installed and already authenticated unless local evidence shows otherwise.
For exact command names and commonly used flags, read references/verified-commands.md.
Follow this sequence unless the user asks for only one part of the process.
Check:
Use commands such as:
git status
git branch --show-current
git log <base>..HEAD --oneline
If there are uncommitted changes that should be part of the merge request, stop creation and handle commits first.
If the branch is stale, diverged, or mixes unrelated work, call that out before opening the merge request.
Review the commits and diff that will land in the merge request.
Use commands such as:
git log <base>..HEAD
git diff <base>...HEAD
Extract:
Build a change-impact inventory before drafting:
Use the base-to-head diff, current code, and tests as the primary evidence. Treat commit messages, plans, and earlier design notes as secondary context because they may describe ideas that were later revised or removed.
Do not write the merge request until the scope is understood.
Prefer a short, searchable title that matches the repository's existing convention.
If the repository uses conventional-commit style titles, follow that pattern:
feat(scope): add token refreshfix(api): handle null responserefactor(auth): extract validation logicUse the conventional-commit ! marker when the change is actually incompatible, for example refactor(auth)!: replace token storage. Do not use ! merely because a diff is large or heavily refactored.
If no convention is visible, use a plain imperative summary.
Use the default MR body conventions in references/mr-body-conventions.md unless the user explicitly asks for another format.
When the change is incompatible, or the user asks for breaking changes, before-and-after comparisons, upgrade notes, or migration guidance, also read and apply references/breaking-change-conventions.md. Add only the sections supported by the actual change; do not emit empty headings.
Prefer explicit title and description over relying only on autofill. Build the description from references/mr-body-conventions.md:
glab mr create --title "<title>" --description "<description>" --target-branch "<base>" --source-branch "<branch>" --yes
Use --draft when the branch is intentionally not ready for full review.
If the target repository or GitLab host is not the current context, complete step 6 first and then run the step-5 commands with -R "$repo" and/or GITLAB_HOST="$host" as needed.
Before creating a new merge request, check whether the source branch already has one:
glab mr list --source-branch "$branch"
GITLAB_HOST="$host" glab mr list --source-branch "$branch" -R "$repo"
If an existing merge request is already associated with the branch, inspect it with glab mr view <iid> and update it with glab mr update <iid> --title "<title>" --description "<description>" instead of creating another one.
Prefer bare glab commands when the current directory is already the target repository.
Only inspect git remote -v, set GITLAB_HOST, or use -R "$repo" when:
glab resolves to the wrong instanceglab command fails due to host or auth contextRules:
git remote -v, do not silently choose one for write operations.GITLAB_HOST is already set, let it override remote-derived host detection.glab <command> -R "$repo" only when the target repository is not the current one.GITLAB_HOST="$host" only when the target instance is not the current default.If write commands fail because of auth or host context, then verify with commands such as:
glab auth status
glab auth status --hostname "$host"
glab repo view
GITLAB_HOST="$host" glab repo view
When the user asks for help drafting a merge request, provide:
# MR Draft
## Title
<proposed MR title>
## Description
<proposed MR description>
Add Notes only when there is important reviewer context, a blocker, or a useful command to call out.
If the user asks to open the merge request directly, still summarize the final title, description, target branch, and any host assumptions after running the command.
Stop and reassess if:
What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job