Mr logo

Mr

Community
domengabrovsek
mr

Create a merge request or pull request from the current branch: verify quality gates, enforce conventional commits, validate the title, and create it without a confirmation step. Use when the user says 'create MR', 'create PR', 'open a merge request', or 'raise a PR'.

Overview

Publisherdomengabrovsek
Repositoryagent-config
Skill namemr
Stars
22
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by domengabrovsek on GitHub. Read the source before you install it.

Installation

Install the Mr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/domengabrovsek/agent-config/tree/main/skills/mr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/domengabrovsek/agent-config.git /tmp/agent-config
mkdir -p .claude/skills
cp -r /tmp/agent-config/skills/mr .claude/skills/mr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Create Merge Request / Pull Request

Workflow

why-no-hook: skill workflow guidance; each step requires understanding the surrounding context (repo, task shape, prior state).

  1. Make sure the full gate passed at HEAD: hard-fail on any failure. Do not proceed to push, title generation, or PR ceremony if the gate fails (review-time: see section note)

    • Repo declares verify in package.json: skip the run when <git-dir>/verify-passed equals HEAD and the tree is clean. Otherwise run /verify-done, which runs npm run verify once. The PR-open hook blocks without that stamp (hook)
    • Otherwise run /verify-done. It pre-empts the most common CI failures before they cost a CI run (review-time: see section note)
  2. Detect VCS platform: check for .gitlab-ci.yml (-> glab) or .github/ (-> gh) (review-time: see section note)

  3. Determine base branch: (review-time: see section note)

    • GitHub: gh repo view --json defaultBranchRef --jq .defaultBranchRef.name (review-time: see section note)
    • GitLab: glab repo view --output json, field default_branch (review-time: see section note)
    • If the user specifies a different target, use that instead (review-time: see section note)
  4. Review all commits on the branch: run git log <base>..HEAD and git diff <base>...HEAD to understand the full changeset (review-time: see section note)

  5. Enforce conventional commits: every commit subject on the branch must pass is_conventional in hooks/lib/commit-msg.sh, which lists the allowed types in CONVENTIONAL_TYPES. If any commit fails, stop and ask the user to amend or rewrite the commit history. Do not proceed. (review-time: see section note)

  6. Check for env-specific values: scan diff for hard-coded URLs, credentials, environment names that look wrong for the target branch (review-time: see section note)

  7. Push branch with -u flag (review-time: see section note)

  8. Generate and validate the PR title: (review-time: see section note)

    • Compose a conventional-commit title summarizing the change (review-time: see section note)
    • Validate it with the same is_conventional check as commit subjects. hooks/pre-pr-test-gate.sh blocks a create whose title fails it (hook)
    • If the generated title fails the check, regenerate. Do not show the user a non-conforming title. (review-time: see section note)
  9. Create MR/PR using the template: (review-time: see section note)

    • If .github/pull_request_template.md or .gitlab/merge_request_templates/ exists, use that template (review-time: see section note)
    • Otherwise use ~/.agents/pull_request_template.md (review-time: see section note)
    • Fill in the description explaining what changed and why (review-time: see section note)
    • Keep the body under 150 words, in bullets, and revise it with write-plain before creating (review-time: see section note)
    • Add a "Not touched (intentionally)" list naming adjacent code left alone, when the reviewer could expect it changed; it proves scope discipline and surfaces known adjacent problems (review-time: see section note)
    • Check the relevant category box(es) - exactly one or more of: Bugfix, Feature, Refactor, Chore, CI/CD, Infrastructure (review-time: see section note)
    • Check "Changes have been tested locally" only if tests were actually run (review-time: see section note)
    • Check "No unnecessary changes outside the scope of this PR" only if true (review-time: see section note)
    • Check "Considered the security impact of these changes" - always check, we always consider it (review-time: see section note)
    • Check "No credentials or secrets in the code" only if verified (review-time: see section note)
    • Do NOT edit the template structure or wording. Fill in data and check boxes. The only added sections are "Not touched (intentionally)" and Blocked on me (review-time: see section note)
  10. Set dependencies for stacked MRs/PRs: (review-time: see section note) If the target branch is not the default branch (main/master/develop), check for a base MR/PR:

    GitLab:

    • Find the base MR: glab mr list --source-branch <target-branch> (review-time: see section note)

    • If found, create a blocking dependency after MR creation: (review-time: see section note)

      sh
      glab api --method POST "projects/<url-encoded-project-path>/merge_requests/<our-iid>/blocks" \
        -f "blocking_merge_request_iid=<base-mr-iid>"
    • HTTP 409 is fine - GitLab may auto-detect some dependencies (review-time: see section note)

    • Mention in description: > **Stacked MR**: depends on !<base-iid>. Retarget to main after !<base-iid> is merged. (review-time: see section note)

    GitHub:

    • Find the base PR: gh pr list --head <target-branch> --json number,title --jq '.[0]' (review-time: see section note)
    • GitHub has no native dependency enforcement. Instead, add Depends on #<base-pr-number> in the PR description (under Linked Issues or similar). This is a widely recognized convention that third-party apps (e.g., Dependent Issues, PR Dependencies) can enforce via status checks. (review-time: see section note)
    • Mention in description: > **Stacked PR**: depends on #<base-pr-number>. Retarget to main/develop after #<base-pr-number> is merged. (review-time: see section note)
  11. Report: print the MR/PR URL. If a dependency was set, mention it. (review-time: see section note)

  12. Watch the PR: drive it until ~/.agents/scripts/pr-ready.sh prints READY (CI green, mergeable, no unresolved thread) or WAITING_ON_HUMAN. hooks/post-pr-open-watch.sh injects the steps after gh pr create (hook)

Rules

  • Use CLI tools (gh pr create / glab mr create), not MCP tools or APIs (except glab api for MR dependencies - glab mr create has no dependency flag) (review-time: see section note)
  • Pass the body via HEREDOC for correct formatting (review-time: see section note)
  • If auth fails, stop and ask the user to authenticate - do not retry (review-time: see section note)
  • If the repo has a specific MR template, prefer it over the default (review-time: see section note)
  • Never reference local Claude artifacts (research notes, plans, session summaries under .claude/state/, etc.) in the MR/PR description - they only have value locally and mean nothing to reviewers (review-time: see section note)
  • Pass the title, body, and base explicitly so the create command never prompts (review-time: see section note)
  • Create the MR/PR without asking. The gate pass in step 1 is the checkpoint (review-time: see section note)
  • Never push to main or master. Every change reaches them through an MR/PR, even when the user approves a direct push (hook)
  • Never merge the MR/PR. The user merges (review-time: see section note)

Frequently asked questions

What does the Mr AI skill do?

Create a merge request or pull request from the current branch: verify quality gates, enforce conventional commits, validate the title, and create it without a confirmation step. Use when the user says 'create MR', 'create PR', 'open a merge request', or 'raise a PR'.

Why use Mr on TypingMind?

Because you install it once and use it with any model. Mr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/domengabrovsek/agent-config/tree/main/skills/mr. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mr?

As many as you like. As long as a model supports skills, you can use Mr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mr AI skill free?

It is published on GitHub by domengabrovsek. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇