glab-mr
Skill1 starsChanged 2 months agoMITView on GitHub
Assist with GitLab Merge Request operations including branch diff analysis, branch pushing, MR creation/updates, and description drafting. Uses glab CLI, follows branch conventions, and uses standard MR templates. Ideal for create-mr or update-mr commands.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- vince-winkintel/gitlab-cli-skillstheir own version, first seen Nov 4, 2026
- cormacc/dotagentstheir own version, first seen Nov 4, 2026
- arfar-x/agent-skillstheir own version, first seen Oct 13, 2026
- a-ng-d/claude-ui-color-palettetheir own version, first seen Apr 19, 2026
- akhy/agent-skillstheir own version, first seen Mar 4, 2026
Used with
Projects with it also use glab-alias, glab-api and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
a-ng-dSkillglab-alias
Create, list, and delete GitLab CLI command aliases and shortcuts. Use when creating custom glab commands, managing CLI shortcuts, or viewing existing aliases. Triggers on alias, shortcut, custom command, CLI alias.
Also in 3 projects that use this
a-ng-dSkillglab-api
Make direct GitLab REST API calls for advanced queries and operations not covered by other glab commands. Use when accessing GitLab API endpoints directly, making custom API requests, or fetching data in JSON format. Triggers on API call, REST API, GitLab API, JSON query, advanced query.
Also in 3 projects that use this
- +10 more from a-ng-d
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- vince-winkintel/gitlab-cli-skills★ 50same name
- arfar-x/agent-skills★ 14same name
- a-ng-d/claude-ui-color-palette★ 1same name
- akhy/agent-skills★ 1same name
- cormacc/dotagents★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- codebase-inventorySkill
- code-commentsSkill
- codex-goal-writerSkill
- generate-specSkill
- git-commitSkill
- glab-mr-reviewSkill
- handoff-auditSkill
- jira-apiSkill
- linear-task-lifecycleSkill
- reject-and-redoSkill
- setup-serenaSkill
- setup-skill-syncSkill
- subagent-goSkill
- wtSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read abbreviations.md first to understand terminology
- Distinctive: line 32
Create MRs via glab CLI
- Distinctive: line 33
Update existing MRs after follow-up commits
- Distinctive: line 86
Follow Conventional Commit format:
- Distinctive: line 220
When revising after review:
- Distinctive: line 224
Update MR description (Summary/測試/注意事項)
- Very specific: line 225
Use glab mr update to update title/description/labels/reviewers
- Distinctive: line 230
Before creating or updating an MR:
- Very specific: line 247
Keep MR scope reasonable (see mr-config.yaml → mr_size)
- Distinctive: line 249
Keep descriptions current after every push
- Distinctive: line 250
Use meaningful branch names
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitLab Merge Request Workflow
Standardized GitLab MR workflow for creating and updating Merge Requests.
References
This skill uses the following reference files:
references/commit-types.md: Conventional Commit type definitions (shared withgit-commit)references/abbreviations.md: Standard abbreviations (MR, MCP, etc.)references/context.md: Complete workflow guide and best practicesreferences/mr-config.yaml: Structured MR configuration data (scopes, branch patterns, project settings)
Loading strategy:
- Read
abbreviations.mdfirst to understand terminology - Consult
references/commit-types.mdwhen validating MR types - Consult
mr-config.yamlwhen validating scopes or branch names - Refer to
context.mdfor detailed workflow steps and guidelines
Scope
Focus on MR-related tasks:
- Analyze changes between current and target branches
- Push current branch to remote
- Create MRs via glab CLI
- Update existing MRs after follow-up commits
- Draft and maintain clear, complete MR descriptions
Core Principles
Analyze Before Acting
Always run branch diff analysis before creating/updating an MR:
# 1. List commits between target and HEAD
git log {target-branch}..HEAD --oneline
# 2. List changed files
git diff {target-branch}..HEAD --name-onlyBase MR descriptions strictly on actual changes. Never speculate.
Prohibited Items
❌ Never include:
- "Generated with Claude Code" tags
- AI-generated copyright notices
- Vague or meaningless descriptions
Standard Workflow
1. Run branch diff analysis
└─> git log {target}..HEAD --oneline
└─> git diff {target}..HEAD --name-only
2. Create MR with glab (automatically pushes branch)
└─> glab mr create --push --title "..." --description "..." --target-branch {target}
└─> --push flag ensures branch is pushed before MR creation
└─> Fill title and description based on template
4. Draft MR description (actual changes only)
└─> Use standard template from context.md
└─> Include: Summary, 相關連結, 如何測試, 注意事項
└─> Write in Traditional Chinese
5. Update existing MR (when needed)
└─> Re-run diff analysis after new commits
└─> Sync Summary/測試/注意事項 with latest state
└─> Use glab mr update
└─> Reply to review commentsMR Title Format
Follow Conventional Commit format:
<type>(<scope>): <subject>Consult references/commit-types.md for valid types (feat, fix, refactor, etc.).
Consult mr-config.yaml for valid scopes.
Rules:
- ✅ Keep under 50 characters
- ✅ Write subject in Traditional Chinese
- ✅ Describe what changed, not how
- ❌ No Jira IDs in title
MR Description Template
## Summary
<!-- Bullet major changes -->
## 相關連結
- Jira 連結:
## 如何測試
<!-- Verification steps, flows, expected outcomes -->
## 注意事項
<!-- Special configurations or impacts -->See context.md for detailed guidelines on each section.
Branch Naming
Consult mr-config.yaml → branch_patterns for prefix rules.
Examples:
feature/alert-component
fix/badge-style-issue
refactor/badge-variants
docs/update-readmeglab CLI Integration
Create MR
⚠️ IMPORTANT: Always use --push flag to ensure branch is pushed before MR creation.
Basic usage:
glab mr create \
--push \
--title "feat: 新增 XX 功能" \
--description "..." \
--target-branch developCommon options:
--push: [REQUIRED] Push branch before creating MR--title, -t: MR title (Conventional Commit format)--description, -d: MR description (use template)--target-branch, -b: Target branch (e.g., develop, main)--assignee, -a: Assign to user by username--reviewer: Request review from users--label, -l: Add labels (comma-separated)--draft: Mark as draft MR--remove-source-branch: Auto-remove branch after merge
Update MR
Update current branch's MR:
glab mr update \
--title "feat: 調整 XX 功能" \
--description "..."Update specific MR by ID or branch:
glab mr update 123 \
--title "..." \
--description "..."Common update options:
--title, -t: Update title--description, -d: Update description (use "-" to open editor)--assignee, -a: Update assignees (prefix with +/- to add/remove)--reviewer: Update reviewers (prefix with +/- to add/remove)--label, -l: Add labels--unlabel, -u: Remove labels--draft: Mark as draft--ready, -r: Mark as ready for review--target-branch: Change target branch
View MR
View current branch's MR:
glab mr viewView specific MR:
glab mr view 123
glab mr view feature/xxxView with details:
glab mr view --comments # Include comments
glab mr view --web # Open in browserUpdate Workflow
When revising after review:
- Re-run branch diff analysis
- Push new commits
- Update MR description (Summary/測試/注意事項)
- Use
glab mr updateto update title/description/labels/reviewers - Reply to each review comment
Quick Checklist
Before creating or updating an MR:
- Branch diff analyzed after latest commits
- Using
--pushflag withglab mr create(ensures branch is pushed) - Title follows Conventional Commit format (validate with mr-config.yaml)
- Description reflects current changes (Summary/測試/注意事項)
- Complete test plan included
- Description written in Traditional Chinese
- Special considerations documented
Common Issues
For troubleshooting (push rejected, missing upstream, invalid project ID, etc.), refer to context.md → "Common Issues & Fixes".
Best Practices
- Rebase frequently:
git rebase origin/develop - Keep MR scope reasonable (see
mr-config.yaml→mr_size) - Respond to reviews within 24 hours
- Keep descriptions current after every push
- Use meaningful branch names
For complete details, workflows, and examples, see context.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

