GitLab Duo Prompts

Example source code and use cases for the GitLab Duo documentation.

Views1
PublishedJan 14, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

GitLab Duo Prompts

Example source code and use cases for the GitLab Duo documentation.

Code Suggestions

The prompts are embedded in the GitLab Duo use cases documentation and highlight Code Generation workflows.

Code generation prompts

Examples include the following languages:

Navigate into the respective directories, and learn more in the README.md files.

Duo Chat

Slash Commands

Practice /explain, /refactor, /tests slash command workflows with GitLab Duo.

See Prompts docs.

CI/CD

Ensure that GitLab Duo Chat is enabled and working in your GitLab account, and IDEs.

Jenkins Migration

  1. Open chat/ci-cd/decl-jenkins in VS Code or Web IDE
  2. Select the code
  3. Open Duo Chat prompt
  4. Use refined prompt for refactoring: /refactor into GitLab CI/CD configuration

Prompt Playground

3 Variables

Fill Variables

Preview

# GitLab Duo Prompts

Example source code and use cases for the GitLab Duo documentation.

- [GitLab Duo](https://docs.gitlab.com/ee/user/ai_features.html)
- [GitLab Duo Code Suggestions](https://docs.gitlab.com/ee/user/project/repository/code_suggestions/)
- [GitLab Duo Chat](https://docs.gitlab.com/ee/user/gitlab_duo_chat.html)
- [GitLab Duo Use Cases](https://docs.gitlab.com/ee/user/gitlab_duo/use_cases.html)

## Code Suggestions

The prompts are embedded in the [GitLab Duo use cases documentation](https://docs.gitlab.com/ee/user/gitlab_duo/use_cases.html#code-generation-prompts) and highlight Code Generation workflows.

### Code generation prompts

Examples include the following languages: 

- [C](code-suggestions/c)
- [C#](code-suggestions/c#/)
- [C++](code-suggestions/c++/)
- [CSS](code-suggestions/css/)
- [Go](code-suggestions/go/)
- [HTML](code-suggestions/html/)
- [Java](code-suggestions/java/)
- [JavaScript](code-suggestions/javascript/)
- [Kotlin](code-suggestions/kotlin/)
- [PHP](code-suggestions/php/)
- [PowerShell](code-suggestions/powershell)
- [Python](code-suggestions/python)
- [Ruby](code-suggestions/ruby)
- [Rust](code-suggestions/rust)
- [Scala](code-suggestions/scala)
- [Shell (Bash)](code-suggestions/shell/)
- [TypeScript](code-suggestions/typescript/)

Navigate into the respective directories, and learn more in the README.md files.

## Duo Chat

### Slash Commands

Practice `/explain`, `/refactor`, `/tests` slash command workflows with GitLab Duo.

See [Prompts docs](chat/slash-commands/prompts.md).

### CI/CD

Ensure that GitLab Duo Chat is enabled and working in your GitLab account, and IDEs.

#### Jenkins Migration

1. Open `chat/ci-cd/decl-jenkins` in VS Code or Web IDE
2. Select the code
3. Open Duo Chat prompt
4. Use refined prompt for refactoring: `/refactor into GitLab CI/CD configuration`

![](assets/images/jenkins_refactored_into_gitlab_cicd.png)
Share: