.config/opencode/skills/mr-generator/SKILL.md
Generates intelligent GitLab merge request descriptions from git commits with automatic categorization and Jira integration
npx skillsauth add alexismanuel/dotfiles mr-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
glab CLIEnsure you have the required dependencies:
# GitLab CLI
pip install glab
# Or follow installation instructions at https://gitlab.com/gitlab-org/cli
Make sure the script is executable:
chmod +x /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --jira PROJ-123
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --create --jira PROJ-123
The tool will:
RD-[ticket] [title]python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --output mr_description.md
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --create --title "Custom MR Title" --jira PROJ-123
The tool uses this template format:
Closes #X or Relates to [link to backlog]
## What's new
- 🎉 Init of a new component
- ✨ [New feature](url)
- 🐛 [Bug fixed](url)
- 💄 [Glitch fixed](url)
- 🔥 [P1 bug fixed](url)
- 🚀 Something is deployed
- ...
## BTW
Something relevant fixed along the way (tech debt, doc).
## SCREENSHOTS
Screenshots of the app with your fix/new feature on.
## Requirements & Dependencies
- Required software (ex. Docker, Node)?
- Critical new dependency (ex. framework)
## Testing
Run the following commands
cd ... make help make tests
The tool automatically categorizes commits based on message content:
init, initial, startfeat, feature, addfix, bug, patchp1, critical (with bug keywords)style, ui, glitchdeploy, releaserefactor, tech debt, cleanupdocs, documentationtest, testsCurrently, Jira integration is manual (you provide the ticket number). Future versions could include:
To customize the MR template, modify the template variable in the MRGenerator.__init__ method in /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py.
# On your feature branch
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --jira PROJ-456 --create
Output:
✅ MR created successfully!
https://gitlab.com/cnty-ai/continuity/-/merge_requests/789
python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py --jira PROJ-789 --output description.md
"Not in a git repository"
origin or main"glab command not found"
glab auth login"Could not find main branch"
main or origin/main branchmain and origin/mainAdd debug output by setting environment variable:
DEBUG=1 python3 /Users/alexismanuel/.config/opencode/skill/mr-generator/scripts/mr_generator.py
To extend this tool:
categorize_commit method in mr_generator.pytemplate variable in MRGenerator.__init__This skill is part of the OpenCode project and follows the same license terms.
development
Generate GitLab merge request descriptions from git commits with automatic categorization and Jira integration.
development
This skill should be used when validating that an implementation plan was correctly executed. It verifies success criteria, runs tests, identifies deviations, and presents structured completion options including MR creation or discard.
development
This skill should be used when reviewing code changes in a branch against main/master/develop. It analyzes commits, integrates JIRA ticket and MR context when available, and produces a structured code review using Conventional Comments format.
development
This skill should be used when conducting comprehensive codebase research to answer questions, understand architecture, or prepare context for implementation planning. It spawns parallel sub-agents and synthesizes findings into a structured research document.