/merge-request:create (no arguments — run on the branch you want a PR/MR for)from Merge Request
Open a ready pull/merge request for the current branch on whichever forge the repo uses (GitHub via gh, GitLab via glab), then hand the new PR/MR to the fix-monitoring loop. First runs /detect-source-control and hard-stops when the forge is unsupported. Use to create a PR/MR for the current branch, "open a PR", "raise an MR", or start the merge-request workflow.
Ships in Merge Request. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Open a ready-for-review pull/merge request for the current branch on the
repo's forge, stash the author's intent so the fix loop can read it across
sessions, then continue into /merge-request:fix <ID>.
This is an assistant-executed skill: you (the assistant) follow the steps
below. The deterministic git/CLI work (push, create, id capture, intent stash)
lives in scripts/create.sh; the /merge-request:fix handoff is your
continuation, not a shell call — a script cannot invoke a slash command.
Invoke the shared /detect-source-control skill and capture its stdout block
and exit code. Go through the skill rather than reaching into another
plugin's install path — the sibling directory is not a guaranteed-stable layout.
(A direct bash "${CLAUDE_PLUGIN_ROOT}/../detect-source-control/scripts/detect.sh"
is only a last-resort fallback if the skill is unavailable.)
Then apply the fn-8 hard-stop contract (see ../../README.md):
git missing). Stop
and report; nothing was changed.0 and supported=false (i.e. forge=unsupported) → a successful
detection of an unsupported forge. Stop with a message that names the detected
forge/host, e.g.:
This repository's forge is not supported (
forge=unsupported,host=bitbucket.org)./merge-request:createworks only with GitHub and GitLab. Nothing was changed.
0 and supported=true → proceed. Remember forge (github or
gitlab) for Step 3.Never key the unsupported stop off a non-zero exit — forge=unsupported is a
normal exit-0 result.
Before creating, write the author's stated intent for this change — the "why", from the current session — to a scratch file so the script can stash it:
cat > /tmp/mr-intent.$$ <<'EOF'
<one short paragraph: what this branch is trying to accomplish and why>
EOF
If the session has no explicit stated intent, skip this file — the script
writes [TODO] Intent not provided as a defined placeholder, and preserves any
existing intent on a resume. Do not invent intent the author never expressed.
Run the helper with the resolved forge:
bash "${CLAUDE_PLUGIN_ROOT}/skills/create/scripts/create.sh" \
--forge <github|gitlab> \
--intent-file /tmp/mr-intent.$$ # omit --intent-file when Step 2 was skipped
The script, deterministically:
git push -u when the branch has no
upstream; pushes the unpushed commits when the upstream is behind; no-ops
when already up to date.Merge <source-branch> into <target-branch>, with a minimal body
(gh pr create / glab mr create, not draft).gh pr view --json number /
glab mr view --output json; only if that JSON path fails does it fall back
to parsing the trailing number from the create-command URL.view path) and refreshes the
stash instead of erroring, so a re-run is safe..data/merge/<ID>.md — a ## Intent block
(your Step-2 text, or the [TODO] placeholder / preserved prior intent) plus
a ## Change scope section from git log <target>..HEAD --oneline and
git diff --stat <target>...HEAD.It prints a machine-readable tail you parse:
MR_ID=<number>
MR_FORGE=<github|gitlab>
MR_SOURCE=<source-branch>
MR_TARGET=<target-branch>
MR_STATE=<created|existing>
MR_STASH=<.data/merge/<ID>.md>
Read MR_ID from that output. Clean up the scratch intent file
(rm -f /tmp/mr-intent.$$).
If the script exits non-zero, surface its stderr message and stop — do not attempt the handoff without a confirmed id.
With the captured id, continue into /merge-request:fix <MR_ID> — this is an
assistant-level continuation: immediately proceed to run that skill with the id
you captured (e.g. /merge-request:fix 128). Report to the user what was opened
(id, title, MR_STATE) before continuing.
Merge <source> into <target>; keep creation
zero-friction and predictable..data/merge/<ID>.md stash is how
/merge-request:fix recovers the author's intent after a resumed session
(fn-10 reads its ## Intent); a re-run never clobbers a real intent with the
placeholder.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/fixmerge-request:fixMonitor an open pull/merge request (by id) and, as feedback arrives, gather every actionable item — human + bot/AI review comments and MR-attributable CI failures — deduplicated against a durable ledger so nothing is handled twice. Polls on an adaptive scheduled-wakeup cadence until the PR/MR closes. First runs /detect-source-control and hard-stops when the forge is unsupported. Use as "watch the PR", "monitor the MR for feedback", "fix review feedback on <id>", or the continuation of /merge-request:create./post-findingsmerge-request:post-findingsTake the findings staged by /merge-request:review in .data/merge/<ID>.md and, with per-finding approval, post the approved ones to the forge as inline comments (general-comment fallback when a finding has no valid diff location) — or formally sign off a clean PR/MR with a single "Looks good." First runs /detect-source-control and hard-stops when the forge is unsupported. Nothing reaches the forge except through the bundled scripts. Also runs a propose-then-confirm learned-preferences loop that teaches /merge-request:review what you value (Don't-raise / Wording / Confirmed-valued), and records skipped findings to the artifact's/reviewmerge-request:reviewReview a pull/merge request (by id) or batch-review every open one against Chris's own engineering standards, staging high-signal findings to .data/merge/<ID>.md for later posting. Fetches head SHAs and applies the "Reviewed at commit" skip check BEFORE any checkout, resolves the head fork-safely, builds/tests it in a dedicated worktree, and treats a failing build/checkout as the top blocking finding. First runs /detect-source-control and hard-stops when the forge is unsupported. Use as "review the PR", "review the open MRs", "any PRs need my eyes", "review <id>".npx claudepluginhub softwareassassin2/plugins --plugin merge-request