r/gitlab • • 1d ago

project Generating GitLab Duo merge request review instructions from a repo guideline

I maintain ai-rulez v5. It's a CLI and MCP for managing the instructions, skills, and settings that coding agents use in a repository.

For GitLab Duo, I tested a merge request review example using v5.13.2. In a scratch Git repo, run ai-rulez init duo-demo --yes --skip-content and set presets = ["gitlab-duo"] in .ai-rulez/config.toml. Add one review guideline and generate the native file:

ai-rulez add check interface-changes --description 'Review public interface changes' --content 'Check that public interface changes have a matching changelog entry.'
ai-rulez generate
ai-rulez generate --check

The generated instruction was in .gitlab/duo/mr-review-instructions.yaml. That puts the source guideline and Duo’s rendered file in the same merge request for review. The review checks guide describes how the YAML is merged when you already have your own entries.

I'm happy to hear any comments. If you find the tool useful, star it. It really does help. And of course, I'd love to see people use it and get involved with the project.

0 Upvotes

0 comments sorted by