Prompt Library
Discover ready-to-use prompts for GitLab's AI-powered development tools across the entire software lifecycle
Understand Code Before Making Changes
Code UnderstandingAnalyze code dependencies and potential impacts before modifying unfamiliar code sections. Essential for preventing breaking changes during refactoring.
Trace Function Usage Across Codebase
Code UnderstandingQuickly locate all call sites for any method or function across your entire codebase. Invaluable when planning refactoring work.
Explain Unfamiliar Code or MR
Code UnderstandingGet clear explanations of complex code or merge requests without manual investigation. Perfect for code reviews and onboarding.
Find Where Functions Are Called
Code UnderstandingNavigate call graphs to understand how functions interconnect throughout your codebase. Reveals hidden dependencies instantly.
Summarize Recent Changes to MR/Issue
Code UnderstandingCatch up on long-running MRs or issues by getting a summary of key decisions, changes, and action items.
Navigate Large Codebase Quickly
Code UnderstandingFind relevant code sections in unfamiliar projects without knowing the structure. Accelerates exploration of new codebases.
Understand Class Hierarchy and Inheritance
Code UnderstandingMap out class hierarchies and identify which methods are overridden. Critical for understanding object-oriented architectures.
Find Code Examples of Patterns
Code UnderstandingDiscover how specific patterns are implemented in your existing codebase. Learn from your team's established conventions.
Understand Data Flow Through System
Code UnderstandingFollow data as it moves through multiple components, tracking each transformation step. Essential for debugging data issues.
Analyze Database Schema and Relationships
Code UnderstandingUnderstand complex database schemas, relationships, and optimization opportunities. Identify performance bottlenecks in your data model.
Map Component Dependencies
Code UnderstandingVisualize how different components depend on each other. Understand the blast radius of potential changes.
Understand Configuration and Environment Setup
Code UnderstandingDecode configuration files and environment setup requirements. Speeds up onboarding and project switching.
Analyze API Contracts and Integrations
Code UnderstandingDocument how your system integrates with internal and external APIs. Prevents breaking changes in integrations.
Identify Code Duplication Opportunities
Code UnderstandingFind similar code patterns that could be consolidated into shared utilities. Reduce maintenance burden through DRY principles.
Understand Error Handling Patterns
Code UnderstandingLearn how errors are handled throughout your application. Identify inconsistencies and gaps in error handling.
Trace Authentication and Authorization Flow
Code UnderstandingMap authentication flows and permission checks across your system. Essential for security audits and debugging access issues.
Understand Async Operations and Concurrency
Code UnderstandingUnderstand asynchronous code, promises, and concurrent operations. Identify potential race conditions before they cause bugs.
Review MR for Logical Errors
Code ReviewCatch logical errors and edge cases that syntax checkers miss. Go beyond linting to find real bugs.
Suggest Code Improvements in MR
Code ReviewReceive actionable feedback on code quality, performance, and maintainability. Elevate your team's coding standards.
Check MR Against Coding Standards
Code ReviewEnsure code follows team conventions and style guides. Consistent enforcement without tedious manual checks.
Identify Security Issues in MR
Code ReviewIdentify security vulnerabilities during code review. Catch SQL injection, XSS, and other risks early.
Assess MR Test Coverage
Code ReviewEvaluate if an MR includes adequate tests for new functionality. Identify gaps before they reach production.
Explain MR Impact on Performance
Code ReviewAssess how proposed changes will affect system performance. Catch complexity issues and bottlenecks early.
Generate MR Description
Code ReviewAuto-generate comprehensive MR descriptions including what changed, testing steps, and related issues.
Suggest Reviewers for MR
Code ReviewIdentify the right reviewers based on code ownership and domain expertise. Route MRs efficiently.
Identify Breaking Changes in MR
Code ReviewDetect if changes break existing APIs, contracts, or functionality. Prevent downstream breakages.
Prioritize Review Comments
Code ReviewCategorize review comments by severity—critical blockers vs nice-to-have suggestions. Focus effort effectively.
Compare Alternative Implementations
Code ReviewCompare implementation approaches with tradeoff analysis. Make informed decisions about performance vs maintainability.
Generate Release Notes from MRs
DocumentationAutomatically compile release notes from merged MRs. Group changes by type: features, fixes, breaking changes.
Create Issue from Support Ticket
DocumentationConvert support tickets into properly formatted, labeled issues. Streamline your support-to-development workflow.
Break Down Epic into Issues
DocumentationTransform large epics into manageable, well-scoped issues with clear dependencies and acceptance criteria.
Generate Issue Templates
DocumentationCreate standardized issue templates for bugs, features, and tasks. Ensure consistent issue quality.
Convert Documentation to Code Comments
DocumentationTransform external documentation into inline code comments. Keep documentation close to the code.
Update Documentation After Code Changes
DocumentationIdentify which documentation needs updating after code changes. Prevent documentation drift.
Refactor for Better Readability
Code QualityImprove code readability with better names, simplified logic, and clearer structure. Make code self-documenting.
Modernize Legacy Code
Code QualityUpdate legacy code to use current language features and best practices. Modernize without breaking functionality.
Reduce Code Complexity
Code QualityBreak down complex functions into testable, maintainable components. Reduce cognitive load for future developers.
Remove Dead Code
Code QualityFind and safely remove unused code, deprecated methods, and commented-out blocks. Keep your codebase lean.
Optimize Algorithm Performance
Code QualityImprove algorithmic efficiency while maintaining correctness. Optimize hot paths for performance gains.
Consolidate Duplicate Code
Code QualityIdentify and consolidate duplicate code into reusable components. Apply DRY principles systematically.
Design New Feature Architecture
Planning & ArchitectureDefine architecture, components, and integration points for new features. Start projects with solid foundations.
Create Technical Design Document
Planning & ArchitectureCreate comprehensive design documents with rationale, diagrams, and success criteria. Document decisions for posterity.
Evaluate Technology Options
Planning & ArchitectureCompare technologies or frameworks with structured tradeoff analysis. Make informed stack decisions.
Plan Database Schema Changes
Planning & ArchitectureDesign safe database migrations with rollback plans. Prevent data loss and minimize downtime.
Design API Endpoints
Planning & ArchitectureDefine RESTful or GraphQL APIs with proper contracts, authentication, and error handling.
Estimate Implementation Effort
Planning & ArchitectureBreak down work and estimate development time. Improve sprint planning accuracy.
Generate Unit Tests
TestingGenerate comprehensive unit tests covering happy paths, edge cases, and error conditions automatically.
Create Integration Test Scenarios
TestingDesign tests for component interactions, error handling, and timeout scenarios.
Generate Test Data
TestingCreate realistic test datasets including valid records, edge cases, and boundary conditions.
Explain Test Failures
TestingUnderstand why tests fail, identify root causes, and determine if the code or test needs fixing.
Review Test Coverage Gaps
TestingFind untested code paths and prioritize which areas need coverage most urgently.
Debug Failing Pipeline
DebuggingDiagnose CI/CD failures quickly with root cause analysis and fix suggestions.
Troubleshoot Production Issue
DebuggingRapidly diagnose production incidents with systematic troubleshooting guidance.
Analyze Stack Trace
DebuggingParse complex stack traces to identify error origins and suggest fixes.
Find Root Cause of Bug
DebuggingTrace bugs from symptoms to root causes. Find where problems actually originate.
Debug Race Conditions
DebuggingIdentify race conditions in asynchronous code. Debug intermittent failures systematically.
Investigate Performance Bottleneck
DebuggingPinpoint performance bottlenecks through profiling analysis. Know exactly what to optimize.
Debug Memory Leak
DebuggingFind memory leaks by analyzing object lifecycles and retention issues.
Understand Third-Party Library Error
DebuggingInterpret cryptic third-party library errors. Understand what you're doing wrong and how to fix it.
Analyze Security Scan Results
SecurityTriage security scan results by real risk vs false positives. Prioritize remediation effectively.
Review Code for Security Issues
SecurityProactive security review for injection vulnerabilities, auth flaws, and data exposure risks.
Ensure Compliance Requirements
SecurityVerify code meets regulatory compliance standards: SOC2, HIPAA, PCI-DSS, GDPR.
Generate Security Documentation
SecurityDocument security controls for auditors and stakeholders. Maintain compliance evidence.
Assess Third-Party Dependency Risks
SecurityAssess external dependencies for vulnerabilities, outdated versions, and license compliance.
Create Security Test Cases
SecurityGenerate security-focused test cases for input validation, auth bypass, and injection attacks.
Build Full-Stack Application
DevelopmentScaffold complete applications with database schemas, API endpoints, and frontend components.
Create Microservice
DevelopmentCreate production-ready microservices with proper patterns, health checks, and containerization.
Implement Design Pattern
DevelopmentApply design patterns correctly with complete implementations and usage examples.
Generate CRUD Operations
DevelopmentGenerate standard CRUD operations with validation, error handling, and basic tests.
Design User Interface Components
Design & UXBuild UI components matching design specs with proper accessibility and responsiveness.
Implement Responsive Layout
Design & UXMake layouts work across all screen sizes with optimized touch targets and performance.
Improve UI Accessibility
Design & UXAdd ARIA labels, keyboard navigation, and screen reader support. Meet WCAG 2.1 standards.
Create Design System Documentation
Design & UXDocument UI components with usage guidelines, props, and accessibility notes.
Diagnose Customer Issue from Logs
SupportParse customer logs to diagnose issues and suggest solutions. Accelerate support resolution.
Generate Customer-Facing Error Messages
SupportTransform technical errors into user-friendly messages with clear next steps.
Create Troubleshooting Guide
SupportCreate self-service troubleshooting guides with diagnostic steps and escalation criteria.
Explain Technical Concepts to Non-Technical Users
SupportExplain technical concepts without jargon. Bridge the gap between engineering and users.
Search GitLab Documentation
GitLab DiscoveryFind relevant GitLab features and documentation for your specific use case.
Find GitLab API Endpoints
GitLab DiscoveryDiscover correct API endpoints with parameters, authentication, and example requests.
Discover GitLab Features
GitLab DiscoveryExplore GitLab capabilities you might not know about. Find features that match your needs.
Migrate from Legacy Framework
MigrationMigrate code between frameworks while preserving functionality and adopting modern patterns.
Translate Application to Another Language
LocalizationInternationalize applications with proper i18n, date formatting, and RTL support.
Implement CI/CD Best Practices
DevOpsOptimize CI/CD pipelines for speed, security, and reliability. Apply GitLab best practices.
Audit Codebase for Compliance
EnterpriseAudit codebases for compliance violations. Check data handling, access controls, and encryption.
Generate Compliance Reports
EnterpriseGenerate audit-ready compliance reports with evidence and remediation status.
Implement Role-Based Access Control
EnterpriseImplement granular permissions with RBAC patterns, admin interfaces, and audit logging.
Integrate with Enterprise SSO
EnterpriseConnect applications to corporate identity providers with SAML/OIDC integration.
Implement Data Retention Policies
EnterpriseAutomate data lifecycle management per retention policies. Maintain compliance automatically.
Multi-Tenant Data Isolation
EnterpriseImplement tenant boundaries for SaaS applications. Ensure complete data separation.
Create Disaster Recovery Plan
EnterpriseDocument recovery procedures with RTOs, backup strategies, and failover processes.
Optimize Embedded System Code
EmbeddedOptimize code for memory-constrained embedded devices. Balance performance and power consumption.
Generate Hardware Interface Code
EmbeddedGenerate hardware interface code for I2C, SPI, UART protocols with proper interrupt handling.
AI Pairing Partner for Exploring Approaches
CollaborationThink through approaches collaboratively. Get challenged on tradeoffs and edge cases you might miss.
Rubber Duck Debugging with AI
CollaborationExplain problems systematically to reveal solutions. Always-available rubber duck debugging partner.
Automate Repetitive Development Tasks
AutomationAutomate repetitive development tasks with error handling and logging. Eliminate manual toil.
Generate GitLab CI Templates
AutomationCreate reusable CI pipeline templates with security scanning and deployment strategies.
Orchestrate Multi-Agent Workflows
AutomationCoordinate multiple specialized agents for complex multi-step workflows.
Profile Application Performance
PerformanceAnalyze performance profiles to identify bottlenecks, hot paths, and optimization priorities.
Optimize Database Queries
PerformanceOptimize slow queries with index suggestions and query rewrites. Improve database performance.
Framework Upgrade Impact Analysis
MigrationAssess framework upgrade impact with breaking change analysis and migration planning.
Security Analyst for Vulnerability Triage
SecurityTriage vulnerabilities by exploitability and business impact. Focus on real threats first.
Planner Agent for Epic Decomposition
Planning & ArchitectureTransform large epics into implementable issues with prioritization and dependency mapping.
Exploratory Code Understanding
Code UnderstandingExplore unfamiliar codebases conversationally. Understand architecture and key dependencies interactively.
Debugging Session Assistant
DebuggingTrack debugging hypotheses and test results systematically. Structured approach to complex bugs.
Architecture Design Discussion
Planning & ArchitectureChallenge architectural assumptions collaboratively. Explore failure modes and scaling concerns.
Code Review Discussion
Code ReviewUnderstand design decisions and tradeoffs in MRs. Get context beyond just what changed.
Explain Complex Code or Patterns
Code UnderstandingGet step-by-step explanations of complex algorithms and legacy code. Learn the why behind the how.