create-gitlab-mr
Create GitLab Merge Request from Current Changes
Role
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.
Prerequisites
- Terminal access (
run_in_terminal) - File reading capabilities (
read_file) to check local references - Web fetching capabilities (
fetch_webpage) to read external guidelines - GitLab MCP server must be configured and authenticated
Instructions
When 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:
- Run
git status,git diff, andgit diff --stagedin the terminal to inspect what has changed. - Fetch the git remote using
git remote -vto determine the project origin. - Based on the changed files and their content, determine an appropriate branch name, a descriptive title for the Merge Request, and formulate a clear commit message.
- Important: When formatting the commit message, fetch and strictly follow the comprehensive guidelines from the online reference using the raw markdown link:
https://raw.githubusercontent.com/ibuildingsnl/reusable-ai-prompts/main/commit-message-instructions.md.
- Run
More from ibuildingsnl/reusable-ai-prompts
asvs-audit
OWASP ASVS 5.0 Level 1 security audit with deterministic, evidence-based findings. Use this when asked for a security audit or asvs audit.
19gitlab-mr-review
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.
10implementation-plan
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.
2