Skip to main content Go to GitLab Docs homepage
What's new?
What's new? Get free trial
  • Use GitLab
  • GitLab Duo
  • Extend
  • Install
  • Administer
  • Subscribe
  • Contribute
  • Solutions

GitLab Duo prompt examples

GitLab Duo can help you accomplish a variety of development tasks. Use these examples to instruct GitLab Duo.

Refactor legacy code
Refactor legacy code in your repository.
Generate tests
Generate comprehensive tests for existing functions and classes.
Debug failing code
Identify and fix bugs in failing code or tests.
Analyze security vulnerabilities
Analyze security vulnerabilities and prioritize fixes based on business impact.
GitLab Docs logo
  • Facebook
  • LinkedIn
  • Twitter
  • YouTube
Creative Commons License
Company
  • About GitLab
  • View pricing
  • Try GitLab for free
Feedback
  • View page source
  • Edit in web IDE
  • Contribute to GitLab
  • Suggest updates
Help & Community
  • Get certified
  • Get support
  • Post on the GitLab forum
Resources
  • Terms
  • Privacy statement
  • Use of generative AI
  • Acceptable use of user licenses