Agent skill

mr-generator

Generate GitLab merge request descriptions from git commits with automatic categorization and Jira integration.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/mr-generator

SKILL.md

MR Generator

Generate MR descriptions from git commits.

Usage

bash
# Basic (output to terminal)
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py

# With Jira ticket (non-interactive)
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --jira RD-XXXX

# Create MR directly
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --create --jira RD-XXXX

# Save to file
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --output mr_description.md

Best Practices

  • Include project-specific testing instructions (check project's AGENTS.md for testing patterns)
  • Replace template placeholders with actual working examples reviewers can copy-paste
  • Keep "What's new" concise - implementation details belong in commit messages
  • In monorepos, adapt testing section to the specific project's conventions

MR Template

Closes #X or Relates to [link]

## What's new
- โœจ [New feature description - 1-2 bullets max]

## Testing

Run the following commands [project-specific setup]:
```bash
# Include actual working commands from AGENTS.md

Then test with [specific example]:

[language]
# Real working example, not placeholders

## Commit Categorization

Automatic emoji mapping:
- ๐ŸŽ‰ Init: `init`, `initial`
- โœจ Feature: `feat`, `add`
- ๐Ÿ› Bug: `fix`, `bug`, `patch`
- ๐Ÿ”ฅ P1: `p1`, `critical`
- ๐Ÿ’„ Style: `style`, `ui`
- ๐Ÿš€ Deploy: `deploy`, `release`
- ๐Ÿ”ง Refactor: `refactor`, `cleanup`
- ๐Ÿ“š Docs: `docs`
- ๐Ÿงช Tests: `test`

## Requirements
- Python 3.10+
- GitLab CLI (`glab auth login`)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results