mr-list
Skill2 starsChanged 41 days agoMITView on GitHub
List GitLab merge requests with status overview. Run only when the user explicitly asks for it.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 22
⚠️ Permission: Read-only command, NO permission required
- Distinctive: line 295
Check filter is correct
- Distinctive: line 297
Verify you have access to the project
- Very specific: line 301
Check token in ~/.config/glab-cli/config.yml
- Very specific: line 304
Use filters to narrow down: /mr-list mine
- Distinctive: line 310
Read-only command, safe to use anytime
- Very specific: line 313
Use --all flag to show all MRs (may be slow)
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/mr-list
Project resolution (project-agnostic)
This command works in any GitLab repo — nothing here is tied to a specific project. Resolve the target at runtime:
- Instance, project path, and IDs — auto-detected by
glabfrom the current repo's git remotes; never hardcode them.glabreadsorigin/upstreamdirectly. When a numeric id is needed:glab api projects/$(git remote get-url origin | sed -E 's#^[a-z]+://[^/]+/##; s#^.*@[^:]+:##; s#\.git$##' | sed 's#/#%2F#g') | jq -r '.id' - Fork vs single-repo — if both
originandupstreamremotes exist, treatoriginas your fork (push target) andupstreamas the MR/issue target; otherwise operate onorigin. - Optional extras — if
.claude/gitlab-config.jsonexists in the current repo, loaddevelopers(assignee/reviewer shortcuts) andlabels(auto-label rules) from it. If it is absent, those features degrade gracefully: ask the user for the assignee/reviewer/labels instead of resolving a shortcut.
All URLs, namespaces, and IDs in the examples below (
<GITLAB_URL>,<PROJECT_PATH>,projects/<FORK_ID>, etc.) are illustrative placeholders — resolve real values per the steps above.
Lists GitLab merge requests with comprehensive status overview for quick triage and prioritization.
⚠️ Permission: Read-only command, NO permission required
Usage
/mr-list [filter] [author]Arguments:
[filter]- Optional: Filter MRs (open, merged, closed, all, mine, draft)[author]- Optional: Filter by author username or shortcut
Examples:
/mr-list # Show all open MRs
/mr-list open # Show open MRs (default)
/mr-list merged # Show recently merged MRs
/mr-list closed # Show closed MRs
/mr-list all # Show all MRs
/mr-list mine # Show my MRs only
/mr-list draft # Show draft MRs
/mr-list alice # Show MRs by alice
/mr-list open dana # Show open MRs by danaWhat it shows
For each MR:
- MR number (clickable link)
- Title (with draft indicator)
- Author
- Assignee
- Reviewers (with approval status)
- Pipeline status
- Approvals count
- Conflicts indicator
- Created/updated time
Summary:
- Total count by status
- Action required count
- Ready to merge count
Example Output
Example 1: List all open MRs
📋 Open Merge Requests (5)
!1598 feat(shipments): add pickup details
👤 dana.lee → alice | 👥 alice ✓, bob ✓
✓ Passed | ✅ 2/2 | 📅 2 hours ago
!1597 fix(auth): token expiration handling
👤 dana.lee → None | 👥 bob (pending)
❌ Failed | ⚠️ 0/2 | 📅 5 hours ago | ⚠️ Has conflicts
!1596 refactor(orders): validation logic (DRAFT)
👤 dana.lee → carol | 👥 None
⏳ Running | 🚧 Draft | 📅 1 day ago
!1595 feat(payments): add refund support
👤 alice → bob | 👥 bob ✓, dana ✓
✓ Passed | ✅ 2/2 | 📅 3 days ago | ✅ Ready to merge
!1594 fix(shipping): carrier integration bug
👤 bob → alice | 👥 alice (pending)
⏳ Pending | ⚠️ 0/2 | 📅 1 week ago
─────────────────────────────────────────────────
Summary:
Total: 5 | Ready: 1 | Action Required: 2
✓ Passed: 2 | ❌ Failed: 1 | ⏳ Pending: 2Example 2: List my MRs only
📋 My Merge Requests (3)
!1598 feat(shipments): add pickup details
✓ Passed | ✅ 2/2 | Ready to merge ✅
!1597 fix(auth): token expiration handling
❌ Failed | ⚠️ 0/2 | Action required ⚠️
→ Fix failing tests, resolve conflicts
!1596 refactor(orders): validation logic (DRAFT)
⏳ Running | 🚧 Work in progress
─────────────────────────────────────────────────
Summary:
Total: 3 | Ready: 1 | Needs Attention: 1Example 3: List draft MRs
📋 Draft Merge Requests (2)
!1596 refactor(orders): validation logic
👤 dana.lee → carol
⏳ Running | 🚧 Draft | 📅 1 day ago
!1593 feat(analytics): dashboard improvements
👤 carol → dana
✓ Passed | 🚧 Draft | 📅 4 days ago
─────────────────────────────────────────────────
Summary: 2 draft MRsExample 4: Recently merged MRs
📋 Recently Merged (10 from last 7 days)
!1590 feat(orders): bulk export functionality
👤 dana.lee | Merged by: alice | ✓ Passed
Merged: 2 hours ago into dev
!1589 fix(api): rate limiting bypass
👤 bob | Merged by: dana | ✓ Passed
Merged: 1 day ago into dev
!1588 refactor(services): payment service cleanup
👤 alice | Merged by: bob | ✓ Passed
Merged: 2 days ago into dev
─────────────────────────────────────────────────
Summary: 10 merged in last 7 daysProcess
- Parse arguments: Extract filter and author
- Resolve shortcuts: Convert developer shortcuts to usernames
- Fetch MRs: Query GitLab API with filters
- Fetch status: Get pipeline, approvals, conflicts for each MR
- Sort MRs: By status, priority, and update time
- Format output: Display with status indicators
- Show summary: Total count, ready to merge, action required
GitLab API
Endpoints Used:
# List MRs
glab api "projects/2/merge_requests?state=opened"
# List by author
glab api "projects/<PROJECT_ID>/merge_requests?state=opened&author_username=<username>"
# List merged MRs (last 7 days)
glab api "projects/2/merge_requests?state=merged&updated_after=2025-12-20"
# List draft MRs
glab api "projects/2/merge_requests?state=opened&wip=yes"Example API Call:
# Get open MRs with pipeline status
glab api "projects/2/merge_requests?state=opened" | jq '.[] | {
iid,
title,
author: .author.username,
assignee: .assignee.username,
reviewers: [.reviewers[].username],
pipeline: .pipeline.status,
has_conflicts,
work_in_progress,
updated_at
}'Filters
| Filter | Description | API Parameter |
open | Open MRs (default) | state=opened |
merged | Recently merged MRs | state=merged |
closed | Closed MRs | state=closed |
all | All MRs | state=all |
mine | My MRs only | author_username={current_user} |
draft | Draft/WIP MRs | state=opened&wip=yes |
Sorting Priority
MRs are sorted by priority:
- Action Required (failed pipeline, conflicts, needs approvals)
- Ready to Merge (all approvals, pipeline passed, no conflicts)
- In Progress (pipeline running, draft)
- Recently Updated (most recent first)
Status Icons
| Icon | Meaning |
| ✓ | Pipeline passed / Approved |
| ❌ | Pipeline failed / Has conflicts |
| ⏳ | Pipeline running / Pending |
| ⚠️ | Action required / Needs attention |
| ✅ | Ready to merge |
| 🚧 | Draft / Work in progress |
| 📋 | List indicator |
| 👤 | Author → Assignee |
| 👥 | Reviewers |
| 📅 | Time |
Use Cases
Daily standup:
/mr-list mine
# Quick overview of your MRs:
# - What's ready to merge
# - What needs attention
# - What's in progressTeam triage:
/mr-list
# See all team MRs:
# - Which are blocked
# - Which need reviews
# - Which are ready to mergeCheck specific developer:
/mr-list alice
# See alice's MRs:
# - What he's working on
# - What needs your review
# - What's readyPre-merge check:
/mr-list mine
# Before creating new MR:
# - Merge ready MRs first
# - Clean up old MRs
# - Reduce WIPCompact vs Detailed Modes
Compact (default): One line per MR with key status
Detailed (--detailed): Full status including description, labels, milestones
/mr-list --detailed # Detailed view
/mr-list --compact # Compact view (default)Permissions
This command is READ-ONLY:
- ✅ No permission required
- ✅ No state changes
- ✅ Can run anytime
- ✅ Safe for automation
Related Commands
/mr-status <mr>- Detailed status for specific MR/mr-review-request <mr> <dev>- Request code review/mr-assign <mr> <dev>- Assign MR to developer/mr-approve <mr>- Approve MR/mr-merge <mr>- Merge MR (if ready)
Troubleshooting
"No MRs found"
- Check filter is correct
- Try
/mr-list allto see all MRs - Verify you have access to the project
"Permission denied"
- Your GitLab token needs
apiscope - Check token in
~/.config/glab-cli/config.yml
"Too many results"
- Use filters to narrow down:
/mr-list mine - Filter by author:
/mr-list alice - Filter by state:
/mr-list merged
Notes
- Read-only command, safe to use anytime
- Shows real-time status (not cached)
- Limited to 20 most recent MRs by default
- Use
--allflag to show all MRs (may be slow) - Useful for daily workflow and triage
Created: 2025-12-27
Last updated: 2025-12-27
Config file: .claude/gitlab-config.json
Other versions1 project uses a version of this.
Word for word · 1
- AhmedMerza/claude-skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository53 other files it gives its agents.
- animateSkill
- api-docs-completeSkill
- best-optionSkill
- browseSkill
- changelog-generateSkill
- checkpointSkill
- claimSkill
- commitSkill
- courtSkill
- design-driftSkill
- designSkill
- expandSkill
- explainSkill
- fix-reviewSkill
- grill-meSkill
- handover-listSkill
- handover-resumeSkill
- handover-saveSkill
- i18n-syncSkill
- issueSkill
- leadSkill
- mr-approveSkill
- mr-assignSkill
- mr-createSkill
- mr-guideSkill
- mr-mergeSkill
- mr-review-requestSkill
- mr-reviewSkill
- mr-statusSkill
- persona-walkthroughSkill
- ponytailSkill
- prove-the-testSkill
- qa-crawlSkill
- qa-sweepSkill
- reflectSkill
- reviewSkill
- root-causeSkill
- scoutSkill
- second-opinionSkill
- ship-checkSkill
- skill-auditSkill
- skill-compareSkill
- spinoffSkill
- story-siteSkill
- tool-compareSkill
- ui-auditSkill
- ui-polishSkill
- usage-weekSkill
- ux-auditSkill
- validate-planSkill
- video-teardownSkill
- wait-whatSkill
- where-were-weSkill
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.

