Load mr context

From TheBushidoCollective/han · View interactive version

Load mr context is an AI agent skill from the GitHub repository TheBushidoCollective/han. Load MR context for the current branch using GitLab MCP tools

How to use this skill

Skill file

Load MR Context

Name

gitlab:load-mr-context - Load merge request context for the current branch

Synopsis

/load-mr-context [project-path] [branch]

Description

Loads the full context of an open merge request for the given branch, including description, changes, pipeline status, and review comments. Uses GitLab MCP tools for structured data access.

Implementation

Given project-path and branch arguments:

  1. Use mcp__plugin_gitlab_gitlab__list_merge_requests with project_id: "PROJECT_PATH", source_branch: "BRANCH", state: "opened" to find the MR
  2. If no MR is found, report that no open MR exists for this branch and stop
  3. If an MR exists, gather context silently (do not narrate each step):
  1. Present a concise summary:

Example Interaction

User: /load-mr-context my-group/my-project feat/mr-context

Claude: ## MR !42: Add MR context detection hooks

- **Status**: Open, 1 review pending
- **Description**: Adds SessionStart hooks to GitLab plugin that detect open MRs on the current branch
- **Changes**: 4 files (+120, -8)
- **Pipeline**: All stages passing
- **Reviews**: 1 approved, 1 pending from @reviewer

Ready to assist with this MR.

Arguments

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.