Duo Agent Platform

Prompt Library

Discover ready-to-use prompts for GitLab's AI-powered development tools across the entire software lifecycle

107 prompts

Understand Code Before Making Changes

Code Understanding
GitLab Duo
AnalysisDeveloperOnboarding

Analyze code dependencies and potential impacts before modifying unfamiliar code sections. Essential for preventing breaking changes during refactoring.

Trace Function Usage Across Codebase

Code Understanding
GitLab Duo
DeveloperNavigationRefactoring

Quickly locate all call sites for any method or function across your entire codebase. Invaluable when planning refactoring work.

Explain Unfamiliar Code or MR

Code Understanding
GitLab Duo
ArchitectureCode-ReviewDeveloper

Get clear explanations of complex code or merge requests without manual investigation. Perfect for code reviews and onboarding.

Find Where Functions Are Called

Code Understanding
GitLab Duo
Dependency-MgmtDeveloperNavigation

Navigate call graphs to understand how functions interconnect throughout your codebase. Reveals hidden dependencies instantly.

Summarize Recent Changes to MR/Issue

Code Understanding
GitLab Duo
CollaborationExplanationReviewer

Catch up on long-running MRs or issues by getting a summary of key decisions, changes, and action items.

Navigate Large Codebase Quickly

Code Understanding
GitLab Duo
APIDeveloperNavigation

Find relevant code sections in unfamiliar projects without knowing the structure. Accelerates exploration of new codebases.

Understand Class Hierarchy and Inheritance

Code Understanding
GitLab Duo
AnalysisArchitectureDeveloper

Map out class hierarchies and identify which methods are overridden. Critical for understanding object-oriented architectures.

Find Code Examples of Patterns

Code Understanding
GitLab Duo
Best-PracticesDeveloperSearch

Discover how specific patterns are implemented in your existing codebase. Learn from your team's established conventions.

Understand Data Flow Through System

Code Understanding
GitLab Duo
AnalysisArchitectCI/CD

Follow data as it moves through multiple components, tracking each transformation step. Essential for debugging data issues.

Analyze Database Schema and Relationships

Code Understanding
GitLab Duo
ArchitectureDatabaseDeveloper

Understand complex database schemas, relationships, and optimization opportunities. Identify performance bottlenecks in your data model.

Map Component Dependencies

Code Understanding
GitLab Duo
AnalysisArchitectArchitecture

Visualize how different components depend on each other. Understand the blast radius of potential changes.

Understand Configuration and Environment Setup

Code Understanding
GitLab Duo
ConfigurationDeveloperDocumentation

Decode configuration files and environment setup requirements. Speeds up onboarding and project switching.

Analyze API Contracts and Integrations

Code Understanding
GitLab Duo
APIApiDeveloper

Document how your system integrates with internal and external APIs. Prevents breaking changes in integrations.

Identify Code Duplication Opportunities

Code Understanding
GitLab Duo
DeveloperMaintenanceRefactoring

Find similar code patterns that could be consolidated into shared utilities. Reduce maintenance burden through DRY principles.

Understand Error Handling Patterns

Code Understanding
GitLab Duo
DeveloperQuality-AssuranceStandards

Learn how errors are handled throughout your application. Identify inconsistencies and gaps in error handling.

Trace Authentication and Authorization Flow

Code Understanding
GitLab Duo
AnalysisArchitectureDocumentation

Map authentication flows and permission checks across your system. Essential for security audits and debugging access issues.

Understand Async Operations and Concurrency

Code Understanding
GitLab Duo
AnalysisConcurrencyDeveloper

Understand asynchronous code, promises, and concurrent operations. Identify potential race conditions before they cause bugs.

Review MR for Logical Errors

Code Review
GitLab Duo
Code-ReviewQuality-AssuranceReviewer

Catch logical errors and edge cases that syntax checkers miss. Go beyond linting to find real bugs.

Suggest Code Improvements in MR

Code Review
GitLab Duo
AutomationCode-Review

Receive actionable feedback on code quality, performance, and maintainability. Elevate your team's coding standards.

Check MR Against Coding Standards

Code Review
GitLab Duo
Code-ReviewComplianceReviewer

Ensure code follows team conventions and style guides. Consistent enforcement without tedious manual checks.

Identify Security Issues in MR

Code Review
GitLab Duo
Code-ReviewSecopsSecurity

Identify security vulnerabilities during code review. Catch SQL injection, XSS, and other risks early.

Assess MR Test Coverage

Code Review
GitLab Duo
Code-ReviewQuality-AssuranceReviewer

Evaluate if an MR includes adequate tests for new functionality. Identify gaps before they reach production.

Explain MR Impact on Performance

Code Review
GitLab Duo
AnalysisCode-ReviewDeveloper

Assess how proposed changes will affect system performance. Catch complexity issues and bottlenecks early.

Generate MR Description

Code Review
GitLab Duo
AutomationCode-ReviewDeveloper

Auto-generate comprehensive MR descriptions including what changed, testing steps, and related issues.

Suggest Reviewers for MR

Code Review
GitLab Duo
Code-ReviewCollaborationDeveloper

Identify the right reviewers based on code ownership and domain expertise. Route MRs efficiently.

Identify Breaking Changes in MR

Code Review
GitLab Duo
APIAnalysisApi

Detect if changes break existing APIs, contracts, or functionality. Prevent downstream breakages.

Prioritize Review Comments

Code Review
GitLab Duo
Code-ReviewDeveloperProductivity

Categorize review comments by severity—critical blockers vs nice-to-have suggestions. Focus effort effectively.

Compare Alternative Implementations

Code Review
GitLab Duo
AnalysisArchitectArchitecture

Compare implementation approaches with tradeoff analysis. Make informed decisions about performance vs maintainability.

Generate Release Notes from MRs

Documentation
GitLab Duo
AutomationDocumentationRelease-Mgmt

Automatically compile release notes from merged MRs. Group changes by type: features, fixes, breaking changes.

Create Issue from Support Ticket

Documentation
GitLab Duo
DocumentationSupportWorkflow

Convert support tickets into properly formatted, labeled issues. Streamline your support-to-development workflow.

Break Down Epic into Issues

Documentation
Duo Planner
Documentation

Transform large epics into manageable, well-scoped issues with clear dependencies and acceptance criteria.

Generate Issue Templates

Documentation
GitLab Duo
DocumentationWorkflow

Create standardized issue templates for bugs, features, and tasks. Ensure consistent issue quality.

Convert Documentation to Code Comments

Documentation
GitLab Duo
DeveloperDocumentationMaintenance

Transform external documentation into inline code comments. Keep documentation close to the code.

Update Documentation After Code Changes

Documentation
GitLab Duo
DeveloperDocumentationMaintenance

Identify which documentation needs updating after code changes. Prevent documentation drift.

Refactor for Better Readability

Code Quality
GitLab Duo
Clean-CodeDeveloperRefactoring

Improve code readability with better names, simplified logic, and clearer structure. Make code self-documenting.

Modernize Legacy Code

Code Quality
GitLab Duo
DeveloperLegacyRefactoring

Update legacy code to use current language features and best practices. Modernize without breaking functionality.

Reduce Code Complexity

Code Quality
GitLab Duo
General

Break down complex functions into testable, maintainable components. Reduce cognitive load for future developers.

Remove Dead Code

Code Quality
GitLab Duo
CleanupDeveloperMaintenance

Find and safely remove unused code, deprecated methods, and commented-out blocks. Keep your codebase lean.

Optimize Algorithm Performance

Code Quality
GitLab Duo
DeveloperOptimizationPerformance

Improve algorithmic efficiency while maintaining correctness. Optimize hot paths for performance gains.

Consolidate Duplicate Code

Code Quality
GitLab Duo
DeveloperDryRefactoring

Identify and consolidate duplicate code into reusable components. Apply DRY principles systematically.

Design New Feature Architecture

Planning & Architecture
Duo Planner
ArchitectArchitectureDesign

Define architecture, components, and integration points for new features. Start projects with solid foundations.

Create Technical Design Document

Planning & Architecture
Duo Planner
ArchitectArchitectureDocumentation

Create comprehensive design documents with rationale, diagrams, and success criteria. Document decisions for posterity.

Evaluate Technology Options

Planning & Architecture
GitLab Duo
AnalysisArchitectArchitecture

Compare technologies or frameworks with structured tradeoff analysis. Make informed stack decisions.

Plan Database Schema Changes

Planning & Architecture
Duo Planner
ArchitectArchitectureDatabase

Design safe database migrations with rollback plans. Prevent data loss and minimize downtime.

Design API Endpoints

Planning & Architecture
Duo Planner
APIApiArchitect

Define RESTful or GraphQL APIs with proper contracts, authentication, and error handling.

Estimate Implementation Effort

Planning & Architecture
Duo Planner
ArchitectureEstimationPlanning

Break down work and estimate development time. Improve sprint planning accuracy.

Generate Unit Tests

Testing
GitLab Duo
AutomationTesting

Generate comprehensive unit tests covering happy paths, edge cases, and error conditions automatically.

Create Integration Test Scenarios

Testing
GitLab Duo
ArchitectureDeveloperIntegration

Design tests for component interactions, error handling, and timeout scenarios.

Generate Test Data

Testing
GitLab Duo
Data-GenDeveloperTesting

Create realistic test datasets including valid records, edge cases, and boundary conditions.

Explain Test Failures

Testing
GitLab Duo
DebuggingDeveloperTesting

Understand why tests fail, identify root causes, and determine if the code or test needs fixing.

Review Test Coverage Gaps

Testing
GitLab Duo
DeveloperQuality-AssuranceTesting

Find untested code paths and prioritize which areas need coverage most urgently.

Debug Failing Pipeline

Debugging
GitLab Duo
CI/CDCicdDebugging

Diagnose CI/CD failures quickly with root cause analysis and fix suggestions.

Troubleshoot Production Issue

Debugging
GitLab Duo
APIDebuggingDevops

Rapidly diagnose production incidents with systematic troubleshooting guidance.

Analyze Stack Trace

Debugging
GitLab Duo
AnalysisDebuggingDeveloper

Parse complex stack traces to identify error origins and suggest fixes.

Find Root Cause of Bug

Debugging
GitLab Duo
AnalysisDebuggingDeveloper

Trace bugs from symptoms to root causes. Find where problems actually originate.

Debug Race Conditions

Debugging
GitLab Duo
ConcurrencyDebuggingDeveloper

Identify race conditions in asynchronous code. Debug intermittent failures systematically.

Investigate Performance Bottleneck

Debugging
GitLab Duo
DebuggingDeveloperOptimization

Pinpoint performance bottlenecks through profiling analysis. Know exactly what to optimize.

Debug Memory Leak

Debugging
GitLab Duo
DebuggingDeveloper

Find memory leaks by analyzing object lifecycles and retention issues.

Understand Third-Party Library Error

Debugging
GitLab Duo
DebuggingDependenciesDeveloper

Interpret cryptic third-party library errors. Understand what you're doing wrong and how to fix it.

Analyze Security Scan Results

Security
Duo Security Analyst
AnalysisSecopsSecurity

Triage security scan results by real risk vs false positives. Prioritize remediation effectively.

Review Code for Security Issues

Security
Duo Security Analyst
Code-ReviewSecopsSecurity

Proactive security review for injection vulnerabilities, auth flaws, and data exposure risks.

Ensure Compliance Requirements

Security
Duo Security Analyst
ComplianceDocumentationGdpr

Verify code meets regulatory compliance standards: SOC2, HIPAA, PCI-DSS, GDPR.

Generate Security Documentation

Security
Duo Security Analyst
ComplianceDocumentationSecops

Document security controls for auditors and stakeholders. Maintain compliance evidence.

Assess Third-Party Dependency Risks

Security
Duo Security Analyst
DependenciesSecopsSecurity

Assess external dependencies for vulnerabilities, outdated versions, and license compliance.

Create Security Test Cases

Security
Duo Security Analyst
ArchitectureSecopsSecurity

Generate security-focused test cases for input validation, auth bypass, and injection attacks.

Build Full-Stack Application

Development
GitLab Duo
DeveloperFull-StackGeneration

Scaffold complete applications with database schemas, API endpoints, and frontend components.

Create Microservice

Development
GitLab Duo
ArchitectureDeveloperGeneration

Create production-ready microservices with proper patterns, health checks, and containerization.

Implement Design Pattern

Development
GitLab Duo
ArchitectureBest-PracticesDeveloper

Apply design patterns correctly with complete implementations and usage examples.

Generate CRUD Operations

Development
GitLab Duo
AutomationRead

Generate standard CRUD operations with validation, error handling, and basic tests.

Design User Interface Components

Design & UX
GitLab Duo
ArchitectureDeveloperGeneration

Build UI components matching design specs with proper accessibility and responsiveness.

Implement Responsive Layout

Design & UX
GitLab Duo
ArchitecturePerformance

Make layouts work across all screen sizes with optimized touch targets and performance.

Improve UI Accessibility

Design & UX
GitLab Duo
AccessibilityArchitectureDeveloper

Add ARIA labels, keyboard navigation, and screen reader support. Meet WCAG 2.1 standards.

Create Design System Documentation

Design & UX
GitLab Duo
ArchitectureDesignerDocumentation

Document UI components with usage guidelines, props, and accessibility notes.

Diagnose Customer Issue from Logs

Support
GitLab Duo
AnalysisDebuggingSupport

Parse customer logs to diagnose issues and suggest solutions. Accelerate support resolution.

Generate Customer-Facing Error Messages

Support
GitLab Duo
General

Transform technical errors into user-friendly messages with clear next steps.

Create Troubleshooting Guide

Support
GitLab Duo
DebuggingDocumentationKnowledge-Base

Create self-service troubleshooting guides with diagnostic steps and escalation criteria.

Explain Technical Concepts to Non-Technical Users

Support
GitLab Duo
CommunicationExplanationSupport

Explain technical concepts without jargon. Bridge the gap between engineering and users.

Search GitLab Documentation

GitLab Discovery
GitLab Duo
DeveloperDiscoveryDocumentation

Find relevant GitLab features and documentation for your specific use case.

Find GitLab API Endpoints

GitLab Discovery
GitLab Duo
APIApiAutomation

Discover correct API endpoints with parameters, authentication, and example requests.

Discover GitLab Features

GitLab Discovery
GitLab Duo
DeveloperDiscoveryOnboarding

Explore GitLab capabilities you might not know about. Find features that match your needs.

Migrate from Legacy Framework

Migration
GitLab Duo
AutomationDeveloperMigration

Migrate code between frameworks while preserving functionality and adopting modern patterns.

Translate Application to Another Language

Localization
GitLab Duo
DeveloperLocalizationRefactoring

Internationalize applications with proper i18n, date formatting, and RTL support.

Implement CI/CD Best Practices

DevOps
GitLab Duo
CI/CDPerformanceSecurity

Optimize CI/CD pipelines for speed, security, and reliability. Apply GitLab best practices.

Audit Codebase for Compliance

Enterprise
Duo Security Analyst
AuditingComplianceDocumentation

Audit codebases for compliance violations. Check data handling, access controls, and encryption.

Generate Compliance Reports

Enterprise
Duo Security Analyst
AutomationComplianceDocumentation

Generate audit-ready compliance reports with evidence and remediation status.

Implement Role-Based Access Control

Enterprise
GitLab Duo
Access-ControlDeveloper

Implement granular permissions with RBAC patterns, admin interfaces, and audit logging.

Integrate with Enterprise SSO

Enterprise
GitLab Duo
DeveloperIntegrationSecurity

Connect applications to corporate identity providers with SAML/OIDC integration.

Implement Data Retention Policies

Enterprise
GitLab Duo
AutomationComplianceData-Mgmt

Automate data lifecycle management per retention policies. Maintain compliance automatically.

Multi-Tenant Data Isolation

Enterprise
GitLab Duo
ArchitectArchitectureSaas

Implement tenant boundaries for SaaS applications. Ensure complete data separation.

Create Disaster Recovery Plan

Enterprise
GitLab Duo
DevopsDocumentationPlanning

Document recovery procedures with RTOs, backup strategies, and failover processes.

Optimize Embedded System Code

Embedded
GitLab Duo
DeveloperEmbeddedOptimization

Optimize code for memory-constrained embedded devices. Balance performance and power consumption.

Generate Hardware Interface Code

Embedded
GitLab Duo
DeveloperEmbeddedHardware

Generate hardware interface code for I2C, SPI, UART protocols with proper interrupt handling.

AI Pairing Partner for Exploring Approaches

Collaboration
GitLab Duo
BrainstormingCollaborationDeveloper

Think through approaches collaboratively. Get challenged on tradeoffs and edge cases you might miss.

Rubber Duck Debugging with AI

Collaboration
GitLab Duo
CollaborationDebuggingDeveloper

Explain problems systematically to reveal solutions. Always-available rubber duck debugging partner.

Automate Repetitive Development Tasks

Automation
GitLab Duo
AutomationDeveloperProductivity

Automate repetitive development tasks with error handling and logging. Eliminate manual toil.

Generate GitLab CI Templates

Automation
GitLab Duo
AutomationCI/CDCicd

Create reusable CI pipeline templates with security scanning and deployment strategies.

Orchestrate Multi-Agent Workflows

Automation
GitLab Duo
Automation

Coordinate multiple specialized agents for complex multi-step workflows.

Profile Application Performance

Performance
GitLab Duo
AnalysisDeveloperPerformance

Analyze performance profiles to identify bottlenecks, hot paths, and optimization priorities.

Optimize Database Queries

Performance
GitLab Duo
DatabaseDeveloperPerformance

Optimize slow queries with index suggestions and query rewrites. Improve database performance.

Framework Upgrade Impact Analysis

Migration
GitLab Duo
AnalysisArchitectMigration

Assess framework upgrade impact with breaking change analysis and migration planning.

Security Analyst for Vulnerability Triage

Security
Duo Security Analyst
AnalysisSecopsSecurity

Triage vulnerabilities by exploitability and business impact. Focus on real threats first.

Planner Agent for Epic Decomposition

Planning & Architecture
Duo Planner
Architecture

Transform large epics into implementable issues with prioritization and dependency mapping.

Exploratory Code Understanding

Code Understanding
GitLab Duo
ArchitectureDeveloperExploration

Explore unfamiliar codebases conversationally. Understand architecture and key dependencies interactively.

Debugging Session Assistant

Debugging
GitLab Duo
DebuggingDeveloperTesting

Track debugging hypotheses and test results systematically. Structured approach to complex bugs.

Architecture Design Discussion

Planning & Architecture
GitLab Duo
ArchitectArchitectureCollaboration

Challenge architectural assumptions collaboratively. Explore failure modes and scaling concerns.

Code Review Discussion

Code Review
GitLab Duo
ArchitectureCode-ReviewDiscussion

Understand design decisions and tradeoffs in MRs. Get context beyond just what changed.

Explain Complex Code or Patterns

Code Understanding
GitLab Duo
ArchitectureDeveloperExplanation

Get step-by-step explanations of complex algorithms and legacy code. Learn the why behind the how.

Start shipping better software faster

See what your team can do with the intelligent

DevSecOps platform.