Omnicreate gitlab
Skill nexiouscaliver/OmniForge/plugins/omniforge/skills/omnicreate-gitlab
OmniForge. Because merge requests deserve more than LGTM. 3 adversarial AI agents tear apart your code in isolated worktrees, auto-fix the findings, and forge MRs that actually have descriptions. One plugin to forge your MR lifecycle. Zero excuses.
npx -y skills add nexiouscaliver/OmniForge --skill omnicreate-gitlabAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when creating a GitLab merge request (OmniForge). Auto-populates title and description from commits, supports draft MRs, labels, assignees, reviewers, and issue linking
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.9 KB, as published. Nobody here has run it
GitLab Merge Request Creator
Context
- Current git status: !
git status --porcelain - Current branch: !
git branch --show-current - Recent commits: !
git log --oneline -5 - GitLab remote: !
git remote -v | grep gitlab | head -1 - glab version: !
glab version 2>/dev/null || echo "NOT_INSTALLED" - glab auth status: !
glab auth status 2>&1 || echo "NOT_AUTHENTICATED" - Unpushed commits: !
git log @{u}..HEAD --oneline 2>/dev/null || echo "NO_UPSTREAM" - Repo root: !
git rev-parse --show-toplevel 2>/dev/null || echo "NOT_A_GIT_REPO"
Your Task
Create a GitLab merge request using the mcp__omniforge__create_gitlab_mr MCP tool.
Why MCP instead of raw bash? The MCP tool validates all inputs, uses safe subprocess execution (no shell interpretation), and provides structured error output — making it safe for use by all models without risk of shell injection.
Prerequisites
- Verify
glabis installed. If not, inform the user:brew install glab # macOS - Verify the current directory is a git repository with a GitLab remote.
- Ensure there are commits to create an MR from (not on main/master without changes).
Pre-Flight Checklist
Before creating the MR, verify:
- glab is installed and authenticated
- Not on main/master branch
- Has commits to merge (not empty)
- No uncommitted changes (warn if present)
- Branch has upstream or can be pushed
MCP Tool: mcp__omniforge__create_gitlab_mr
Use this tool for all MR creation. It wraps glab mr create safely.
Required parameter:
repo_root: absolute path to the git repository root (fromgit rev-parse --show-toplevel)
Optional parameters (pass only what the user specified):
| Parameter | Type | Default | Description |
|---|---|---|---|
title | string | "" | Custom MR title (overrides fill) |
description | string | "" | Custom MR description (overrides fill) |
target_branch | string | "main" | Target branch for the MR |
source_branch | string | "" | Source branch (default: current branch) |
assignees | string | "" | Comma-separated usernames to assign |
reviewers | string | "" | Comma-separated usernames to request review from |
labels | string | "" | Comma-separated label names |
draft | bool | false | Mark as draft MR |
fill | bool | true | Auto-populate title/description from commits |
fill_commit_body | bool | true | Include commit bodies in description |
push | bool | true | Push branch if not already pushed |
related_issue | string | "" | Issue number to link MR to |
copy_issue_labels | bool | false | Copy labels from related issue |
remove_source_branch | bool | false | Delete source branch after merge |
squash_before_merge | bool | false | Squash commits when merging |
milestone | string | "" | Milestone ID or title |
web | bool | false | Open in browser for final editing |
Step-by-Step Execution
- Check environment: Verify glab is installed and authenticated, git repo has GitLab remote
- Check branch: If on main/master, inform user they need to create a feature branch first
- Check for changes: If no commits, inform user they need to commit changes first
- Warn about uncommitted changes: If working directory is dirty, warn user before proceeding
- Get repo root: Run
git rev-parse --show-toplevelto obtain the absolute path - Call MCP tool: Invoke
mcp__omniforge__create_gitlab_mrwithrepo_rootand any user-specified options - Report output: Show the MR URL, number, and any relevant details from the tool response
Common Patterns
Default MR (auto-filled from commits):
→ Call mcp__omniforge__create_gitlab_mr with just repo_root
MR for a specific target branch with assignee:
→ repo_root, target_branch="staging", assignees="john"
Draft MR with WIP label:
→ repo_root, draft=true, labels="WIP"
MR with custom title and description:
→ repo_root, title="Fix bug", description="Detailed description...", fill=false
MR linked to issue #42:
→ repo_root, related_issue="42", copy_issue_labels=true
Open in browser for editing:
→ repo_root, web=true
Common Errors and Solutions
| Error | Cause | Solution |
|---|---|---|
authentication required | Not logged in | Run glab auth login |
no upstream branch | Branch not pushed | The tool handles push automatically (push=true) |
branch already exists remotely | Push conflict | Pull and rebase, or force push with caution |
pipeline failed | CI checks failed | Fix failing tests before creating MR |
merge conflicts detected | Conflicts with target | Rebase onto target branch and resolve |
GLab requires authentication | Token expired | Run glab auth login --hostname <gitlab-host> |
Edge Cases to Handle
- Not a git repo: Inform user they need to be in a git repository
- No GitLab remote: Inform user the repo doesn't have a GitLab remote
- glab not installed: Provide installation instructions
- Not authenticated: Run
glab auth loginif needed - No commits: Inform user they need to commit changes first
- Already on main/master: Ask user which branch to create MR from
- Uncommitted changes: Warn user their working directory has changes not in the MR
Output Format
After the MCP tool returns, provide a summary like:
## Merge Request Created
- **MR**: !123
- **URL**: https://gitlab.com/group/repo/-/merge_requests/123
- **Branch**: feature-branch → main
- **Status**: Open
If the tool returns an error, explain it and suggest remediation steps.