# Manage GitLab MRs and Issues

GitLab issue and merge request work often needs exact CLI commands and consistent descriptions. This skill guides Claude, Codex, and Claude Code through glab workflows for viewing, creating, and updating GitLab items.

## Install

```bash
npx skillstore add dcjanus/gitlab-mr-issue
```

## Metadata

- Status: approved
- Slug: dcjanus-gitlab-mr-issue
- Skillstore revision: r1
- Version status: missing
- Tree hash: 9238d32b96c35200ec10e7911958b0fc7d05a3b103db0765d2ff23bcea05d3b8
- Author: DCjanus
- GitHub username: DCjanus
- License: MIT
- Repository: https://github.com/DCjanus/prompts/tree/master/skills/gitlab-mr-issue
- Ref: 7e9e368dc1a370f2040369ebcd0db06d90cb48e5
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, filesystem
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/dcjanus-gitlab-mr-issue
- Manifest: https://skillstore.pages.dev/api/skills/dcjanus-gitlab-mr-issue/manifest

## Capabilities

- Checks GitLab CLI authentication and current user context.
- Views GitLab issues with optional comments and system logs.
- Lists open issues with pagination, project selection, and label filters.
- Views merge request metadata, diffs, related issues, and raw patches.
- Creates or updates merge requests and issues with non-interactive glab commands.
- Provides a structured merge request description format with summary, changes, testing, and notes.

## Use Cases

- Prepare a Merge Request: Draft a non-interactive GitLab merge request with a clear title, formatted description, labels, and source branch.
- Review MR Context: Inspect merge request details, linked issues, comments, and diffs before review or follow-up changes.
- Triage GitLab Issues: List, view, comment on, and update issues across a GitLab project with consistent CLI commands.

## Prompt Templates

### View an Issue

```
Use this skill to view GitLab issue 123 with comments. Summarize the current status and any requested follow-up.
```

### Inspect a Merge Request

```
Use this skill to inspect merge request 45. Include the title, state, author, related issues, and the main diff themes.
```

### Create a Merge Request

```
Use this skill to create a GitLab merge request from the current branch to main. Draft a semantic title and a concise description with summary, key changes, constraints, and testing.
```

### Update an Existing MR

```
Use this skill to update merge request 45. Read the current title and description first, then propose the exact title and description changes before applying them.
```

## Limitations

- Requires a working glab installation and valid GitLab authentication.
- Some commands depend on jq, git, and the current repository state.
- It does not verify repository permissions or project policy before commands run.
- Create and update actions can modify remote GitLab data.

## Best Practices

- Confirm the GitLab host, project, and current user before creating or updating remote items.
- Read the current issue or merge request content before changing titles, descriptions, or labels.
- Keep merge request descriptions focused on what changed, why it matters, impact, constraints, and testing.

## Anti Patterns

- Do not run create or update commands without confirming the target project and branch.
- Do not replace an existing description before reading its current content.
- Do not use vague merge request titles that omit the feature, fix, or affected area.

## Security Audit

- Audited at: 2026-07-05T09:46:04.616\+00:00
- Summary: Static analysis flagged Markdown command examples and a high-entropy heuristic, but the reviewed file is plain GitLab CLI documentation. No prompt injection, obfuscated payload, filesystem traversal, or hidden execution path was found in SKILL.md.

## Stats

- Views: 309
- Downloads: 11
- Favorites: 0
- Popularity score: 0
