GitLab Duo Prompts
Example source code and use cases for the GitLab Duo documentation.
Loading actions...
Skill content
Main instructions and any bundled files for this skill.
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:
- C
- C#
- C++
- CSS
- Go
- HTML
- Java
- JavaScript
- Kotlin
- PHP
- PowerShell
- Python
- Ruby
- Rust
- Scala
- Shell (Bash)
- 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.
CI/CD
Ensure that GitLab Duo Chat is enabled and working in your GitLab account, and IDEs.
Jenkins Migration
- Open
chat/ci-cd/decl-jenkinsin VS Code or Web IDE - Select the code
- Open Duo Chat prompt
- Use refined prompt for refactoring:
/refactor into GitLab CI/CD configuration

Prompt Playground
3 VariablesFill 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` 
Related Skills
Frontend Typescript Linting.mdc
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
2. Apply Deepthink Protocol (reason about dependencies
risks