agentsclimarketplace

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.

Install
npx -y skills add nexiouscaliver/OmniForge --skill omnicreate-gitlab

Assembled 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

  1. Verify glab is installed. If not, inform the user:
    brew install glab  # macOS
    
  2. Verify the current directory is a git repository with a GitLab remote.
  3. 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 (from git rev-parse --show-toplevel)

Optional parameters (pass only what the user specified):

ParameterTypeDefaultDescription
titlestring""Custom MR title (overrides fill)
descriptionstring""Custom MR description (overrides fill)
target_branchstring"main"Target branch for the MR
source_branchstring""Source branch (default: current branch)
assigneesstring""Comma-separated usernames to assign
reviewersstring""Comma-separated usernames to request review from
labelsstring""Comma-separated label names
draftboolfalseMark as draft MR
fillbooltrueAuto-populate title/description from commits
fill_commit_bodybooltrueInclude commit bodies in description
pushbooltruePush branch if not already pushed
related_issuestring""Issue number to link MR to
copy_issue_labelsboolfalseCopy labels from related issue
remove_source_branchboolfalseDelete source branch after merge
squash_before_mergeboolfalseSquash commits when merging
milestonestring""Milestone ID or title
webboolfalseOpen in browser for final editing

Step-by-Step Execution

  1. Check environment: Verify glab is installed and authenticated, git repo has GitLab remote
  2. Check branch: If on main/master, inform user they need to create a feature branch first
  3. Check for changes: If no commits, inform user they need to commit changes first
  4. Warn about uncommitted changes: If working directory is dirty, warn user before proceeding
  5. Get repo root: Run git rev-parse --show-toplevel to obtain the absolute path
  6. Call MCP tool: Invoke mcp__omniforge__create_gitlab_mr with repo_root and any user-specified options
  7. 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

ErrorCauseSolution
authentication requiredNot logged inRun glab auth login
no upstream branchBranch not pushedThe tool handles push automatically (push=true)
branch already exists remotelyPush conflictPull and rebase, or force push with caution
pipeline failedCI checks failedFix failing tests before creating MR
merge conflicts detectedConflicts with targetRebase onto target branch and resolve
GLab requires authenticationToken expiredRun 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 login if 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.