From software-engineering
Automates Git workflow: push feature branch, create GitHub/GitLab MR/PR, wait for CI pipeline, merge (squash option), delete branch via auto-mr CLI. Use after feature completion.
How this skill is triggered — by the user, by Claude, or both
Slash command
/software-engineering:auto-mrThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Push the current branch, create a MR/PR on GitHub or GitLab, wait for the CI pipeline, merge, and clean up the branch — all via the `auto-mr` CLI.
Push the current branch, create a MR/PR on GitHub or GitLab, wait for the CI pipeline, merge, and clean up the branch — all via the auto-mr CLI.
Flags:
--labels string Comma-separated label names (e.g., "bug,enhancement")
--list-labels List all available labels and exit
-l, --log-level string Set log level (debug, info, warn, error) [default "info"]
--msg string Custom message for MR/PR (overrides commit message selection)
--no-squash Disable squash merge (default: squash enabled)
--pipeline-timeout string Pipeline/workflow timeout [default "30m"]
-v, --version Print version and exit
Verify auto-mr is installed:
auto-mr --version
If the command fails, abort with:
auto-mris not installed. Install it from https://github.com/sgaunet/auto-mr and ensure it is in your PATH.
Get current branch:
git rev-parse --abbrev-ref HEAD
If the branch is main, master, or develop, warn the user:
Warning: you are on a protected branch (
<branch>).auto-mris intended for feature branches.
Check for uncommitted changes:
git status --porcelain
If the working tree is dirty, warn the user:
Warning: you have uncommitted changes. Consider committing or stashing them before creating a MR/PR.
If --list-labels is present in the arguments:
auto-mr --list-labels
Display the output and return. Do not proceed further.
Base command: auto-mr
Append all provided flags verbatim (e.g., --squash, --msg "fix: ...", --labels "bug,help wanted").
If a working_directory context is provided, prefix with cd <working_directory> &&.
Display a summary to the user:
Branch: <current-branch>
Command: <assembled-command>
Ask the user to confirm via AskUserQuestion:
Proceed with the above command? (yes/no)
If the user declines, abort gracefully.
Run the assembled command. auto-mr handles the full flow:
On success: display the output (includes the MR/PR URL).
On failure: display the error output, then suggest the manual fallback:
git push -u origin <branch>
# Then open a MR/PR via the repository web UI
If a working_directory context is provided (e.g., a worktree path from feature-flow-w), prefix all commands with cd <working_directory> &&. Otherwise, use the current directory.
npx claudepluginhub sgaunet/claude-plugins --plugin software-engineeringAutomates Git workflow: creates new branch if on main, commits changes with concise message, pushes, creates GitLab MR, enables auto-merge on pipeline success. Use after code changes.
Publishes the current branch by validating changes, committing, pushing, and creating/updating a PR with optional automerge.
Automates GitLab Merge Requests to mergeable state: generates User Story docs with blob links, pushes branches, creates/updates MRs, polls CI pipelines via API, fixes failures, resolves conflicts until checks pass.