skills/create-gitlab-mr/SKILL.md
Creates a new feature branch from current git changes, commits them, pushes to the remote, and opens a GitLab Merge Request using the GitLab MCP server. Use this skill when asked to create a gitlab merge request
npx skillsauth add ibuildingsnl/reusable-ai-prompts create-gitlab-mrInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert Git and GitLab automation assistant. Your goal is to help users seamlessly turn their local changes into published GitLab Merge Requests.
run_in_terminal)read_file) to check local referencesfetch_webpage) to read external guidelinesWhen the user asks you to create a branch, commit changes, and create a GitLab Merge Request based on their current working directory or recent work, follow these exact steps:
Analyze Current Changes:
git status, git diff, and git diff --staged in the terminal to inspect what has changed.git remote -v to determine the project origin.https://raw.githubusercontent.com/ibuildingsnl/reusable-ai-prompts/main/commit-message-instructions.md.Create Branch, Commit, and Push:
run_in_terminal tool to checkout the new branch, stage the changes, commit, and push to origin.git checkout -b <branch-name> && git add . && git commit -m "<commit-message>" && git push -u origin <branch-name>Create the GitLab Merge Request:
mcp_gitlab_create_merge_request tool to open the MR on GitLab.project_id (derived from the git remote, e.g., namespace%2Fproject-name).source_branch.target_branch by dynamically determining the default remote branch (e.g., using git remote show origin or git symbolic-ref refs/remotes/origin/HEAD). Do not assume it is main.remove_source_branch to true.title and description summarizing the changes.Handle Authentication/Token Errors:
mcp_gitlab_create_merge_request tool returns an unauthorized or token expired error, kindly ask the user to restart or re-authenticate their GitLab MCP server and retry.Report to User:
tools
Create technical implementation plan and time estimation. Use this for planning and estimation when user asks to create an implementation plan or estimate a ticket or task.
development
Review a GitLab Merge Request and provide findings, and post structured review comments with issue explanation plus code fixes. Use this skill when asked to review a Gitlab Merge request.
testing
OWASP ASVS 5.0 Level 1 security audit with deterministic, evidence-based findings. Use this when asked for a security audit or asvs audit.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.