[{"data":1,"prerenderedAt":3745},["ShallowReactive",2],{"/blog/custom-rules-duo-agentic-chat-deep-dive":3,"navigation-en-us":2959,"banner-en-us":3386,"footer-en-us":3396,"blog-post-authors-en-us-Michael Friedrich":3640,"blog-related-posts-en-us-custom-rules-duo-agentic-chat-deep-dive":3655,"blog-promotions-en-us":3681,"next-steps-en-us":3735},{"id":4,"title":5,"authors":6,"body":8,"category":2942,"date":2943,"description":2944,"extension":2945,"externalUrl":2946,"faq":2946,"featured":2947,"heroImage":2948,"meta":2949,"navigation":308,"path":2950,"seo":2951,"slug":2952,"stem":2953,"tags":2954,"template":2957,"updatedDate":2946,"__hash__":2958},"blogPosts/en-us/blog/custom-rules-duo-agentic-chat-deep-dive.md","Custom rules in GitLab Duo Agentic Chat for greater developer efficiency",[7],"Michael Friedrich",{"type":9,"value":10,"toc":2921},"minimark",[11,15,18,36,39,44,241,244,257,266,289,292,364,375,379,382,408,417,420,423,432,449,460,474,477,480,483,486,489,492,495,509,512,526,537,540,543,625,628,631,635,638,641,655,658,672,678,710,718,724,732,736,739,746,749,758,764,817,820,834,843,866,872,875,878,881,899,913,919,981,988,1037,1049,1056,1062,1094,1097,1109,1115,1121,1124,1151,1165,1171,1177,1183,1186,1196,1235,1238,1252,1258,1264,1275,1278,1281,1284,1287,1300,1402,1412,1420,1502,1511,1523,1529,1552,1561,1564,1578,1584,1590,1597,1600,1609,1618,1624,1834,1844,1853,1867,1873,1880,1889,1921,1927,1930,1939,1942,1962,1974,1980,1983,1986,1989,2088,2091,2094,2275,2278,2281,2336,2339,2342,2412,2418,2421,2424,2456,2459,2462,2505,2508,2511,2607,2610,2613,2678,2681,2684,2748,2751,2760,2769,2772,2788,2796,2802,2805,2808,2811,2814,2817,2875,2878,2881,2884,2896,2909,2917],[12,13,14],"p",{},"Transform GitLab Duo from a generic AI assistant into your team's personalized coding expert with custom rules. Stop constantly correcting AI suggestions that use wrong Java versions, incorrect Python binaries, or violate your style guides. This deep-dive shows you how to create intelligent custom rules that automatically enforce your development standards.",[12,16,17],{},"We'll cover:",[19,20,21,25,33],"ul",{},[22,23,24],"li",{},"Version control: Lock AI to Java 8, handle Python3 environments, and generate multi-platform C++ code",[22,26,27,28,32],{},"Style enforcement: Prevent C ",[29,30,31],"code",{},"goto"," anti-patterns, enforce VueJS design patterns, and ensure Ansible linter compliance",[22,34,35],{},"DevSecOps automation: Bootstrap projects with proper CI/CD security scanning and documentation standards",[12,37,38],{},"Each example includes working GitLab projects to fork, complete configurations, and before/after demonstrations. Learn how banking systems stay Java 8 compliant, IoT collectors work cross-platform, and VueJS components follow GitLab's production standards.",[40,41,43],"h2",{"id":42},"table-of-contents","Table of Contents",[19,45,46,79,209,229,235],{},[22,47,48,53],{},[49,50,52],"a",{"href":51},"#first-steps-with-custom-rules-for-duo-agentic-chat","First steps with custom rules for Duo Agentic Chat",[19,54,55,61,67,73],{},[22,56,57],{},[49,58,60],{"href":59},"#requirements","Requirements",[22,62,63],{},[49,64,66],{"href":65},"#quick-start-5-minute-success","Quick start: 5-minute success",[22,68,69],{},[49,70,72],{"href":71},"#guidelines-for-custom-rule-development","Guidelines for custom rule development",[22,74,75],{},[49,76,78],{"href":77},"#ask-gitlab-duo-chat-about-existing-development-style-guides","Ask GitLab Duo Chat about existing development style guides",[22,80,81,85],{},[49,82,84],{"href":83},"#more-custom-rules-use-cases","More custom rules use cases",[19,86,87,107,127,147],{},[22,88,89,93],{},[49,90,92],{"href":91},"#use-cases-version-and-platform-support","Use cases: Version and platform support",[19,94,95,101],{},[22,96,97],{},[49,98,100],{"href":99},"#java-version-requirements","Java version requirements",[22,102,103],{},[49,104,106],{"href":105},"#c-multi-platform-support-windows-linux-macos","C++ Multi-platform support (Windows, Linux, macOS)",[22,108,109,113],{},[49,110,112],{"href":111},"#use-case-development-environments","Use case: Development environments",[19,114,115,121],{},[22,116,117],{},[49,118,120],{"href":119},"#python-3-development-environment","Python 3 development environment",[22,122,123],{},[49,124,126],{"href":125},"#ansible-linter-compliance","Ansible linter compliance",[22,128,129,133],{},[49,130,132],{"href":131},"#use-case-design-patterns","Use case: Design patterns",[19,134,135,141],{},[22,136,137],{},[49,138,140],{"href":139},"#avoid-anti-patterns-with-c-and-goto-statements","Avoid anti-patterns with C and goto statements",[22,142,143],{},[49,144,146],{"href":145},"#frontend-style-guides-for-vuejs-3","Frontend style guides for VueJS 3",[22,148,149,153],{},[49,150,152],{"href":151},"#use-case-devsecops-workflows","Use case: DevSecOps workflows",[19,154,155,161,167,173,179,185,191,197,203],{},[22,156,157],{},[49,158,160],{"href":159},"#issue-and-mr-templates","Issue and MR templates",[22,162,163],{},[49,164,166],{"href":165},"#build-tools","Build tools",[22,168,169],{},[49,170,172],{"href":171},"#cicd-configuration-preferences","CI/CD configuration preferences",[22,174,175],{},[49,176,178],{"href":177},"#security-scanning-preferences","Security scanning preferences",[22,180,181],{},[49,182,184],{"href":183},"#tests-and-linters","Tests and linters",[22,186,187],{},[49,188,190],{"href":189},"#documentation-generation","Documentation generation",[22,192,193],{},[49,194,196],{"href":195},"#refactoring-and-code-change-requirements","Refactoring and code change requirements",[22,198,199],{},[49,200,202],{"href":201},"#onboarding-requirements-licenses","Onboarding, requirements, licenses",[22,204,205],{},[49,206,208],{"href":207},"#git-flows","Git flows",[22,210,211,215],{},[49,212,214],{"href":213},"#distribution-and-testing-of-custom-rules","Distribution and testing of custom rules",[19,216,217,223],{},[22,218,219],{},[49,220,222],{"href":221},"#control-custom-rules-editing","Control custom rules editing",[22,224,225],{},[49,226,228],{"href":227},"#custom-rules-resources","Custom rules resources",[22,230,231],{},[49,232,234],{"href":233},"#fun-activity-explore-behavior-changes","Fun activity: Explore behavior changes",[22,236,237],{},[49,238,240],{"href":239},"#conclusion","Conclusion",[40,242,52],{"id":243},"first-steps-with-custom-rules-for-duo-agentic-chat",[12,245,246,247,252,253,256],{},"Follow the ",[49,248,251],{"href":249,"rel":250},"https://docs.gitlab.com/user/gitlab_duo_chat/agentic_chat/#create-custom-rules",[],"documentation"," to create custom rules for GitLab Duo Agentic Chat in the ",[29,254,255],{},".gitlab/duo/chat-rules.md"," directory in a new or existing GitLab project in your IDE.",[12,258,259,260,265],{},"You can start with free-form text instructions, and iterate on the best outcome. Custom rules support ",[49,261,264],{"href":262,"rel":263},"https://docs.gitlab.com/user/markdown/",[],"Markdown"," for better structuring.",[19,267,268,279,286],{},[22,269,270,271,274,275,278],{},"Use markdown headings (",[29,272,273],{},"#",", ",[29,276,277],{},"##",", etc) to create sections.",[22,280,281,282,285],{},"Use markdown lists (",[29,283,284],{},"-",") to provide concise instructions for LLMs and Agents.",[22,287,288],{},"Escape file paths with single backticks, and use code blocks with indent or three backticks.",[12,290,291],{},"Example:",[293,294,299],"pre",{"className":295,"code":296,"language":297,"meta":298,"style":298},"language-markdown shiki shiki-themes github-light","\n# Development guide\n\n## Frontend: VueJS\n\n### Styling Pattern\n- Do not use `\u003Cstyle>` tags in Vue components\n- Use Tailwind CSS utility classes or page-specific CSS instead\n\n","markdown","",[29,300,301,310,317,322,328,333,339,356],{"__ignoreMap":298},[302,303,306],"span",{"class":304,"line":305},"line",1,[302,307,309],{"emptyLinePlaceholder":308},true,"\n",[302,311,313],{"class":304,"line":312},2,[302,314,316],{"class":315},"surfw","# Development guide\n",[302,318,320],{"class":304,"line":319},3,[302,321,309],{"emptyLinePlaceholder":308},[302,323,325],{"class":304,"line":324},4,[302,326,327],{"class":315},"## Frontend: VueJS\n",[302,329,331],{"class":304,"line":330},5,[302,332,309],{"emptyLinePlaceholder":308},[302,334,336],{"class":304,"line":335},6,[302,337,338],{"class":315},"### Styling Pattern\n",[302,340,342,345,349,353],{"class":304,"line":341},7,[302,343,284],{"class":344},"sqxcx",[302,346,348],{"class":347},"sgsFI"," Do not use ",[302,350,352],{"class":351},"sYu0t","`\u003Cstyle>`",[302,354,355],{"class":347}," tags in Vue components\n",[302,357,359,361],{"class":304,"line":358},8,[302,360,284],{"class":344},[302,362,363],{"class":347}," Use Tailwind CSS utility classes or page-specific CSS instead\n",[12,365,366,367,370,371,374],{},"Important: After modifying custom rules, you'll need to create a new Chat by pressing the ",[29,368,369],{},"+"," icon, or sending ",[29,372,373],{},"/new"," in the chat prompt.",[376,377,60],"h3",{"id":378},"requirements",[12,380,381],{},"In order to follow all use cases and linked demo projects into this blog post, please ensure you meet these requirements first:",[19,383,384,399,402,405],{},[22,385,386,387,392,393,398],{},"Verify that you have ",[49,388,391],{"href":389,"rel":390},"https://docs.gitlab.com/user/get_started/getting_started_gitlab_duo/",[],"access to GitLab Duo",", and ",[49,394,397],{"href":395,"rel":396},"https://docs.gitlab.com/user/gitlab_duo_chat/agentic_chat/",[],"Duo Agentic Chat is configured in supported IDEs",".",[22,400,401],{},"Fork/copy the GitLab projects, and clone them locally in the IDEs.",[22,403,404],{},"Follow the steps in each use case for custom rule creation, and how to use Duo Agentic Chat prompts to proof the rule behavior.",[22,406,407],{},"You can use the existing source code, or copy in your own.",[12,409,410,411,416],{},"The projects are available in the ",[49,412,415],{"href":413,"rel":414},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules",[],"Custom rules for GitLab Duo Agent Platform (Agentic AI) group",". Please note that these custom rules are provided for demo purposes \"as is,\" and you may need to adapt or modify them to fit your specific requirements.",[376,418,66],{"id":419},"quick-start-5-minute-success",[12,421,422],{},"Ready to see custom rules in action? Try this simple example:",[424,425,426],"ol",{},[22,427,428,429,431],{},"Create ",[29,430,255],{}," in your GitLab project:",[293,433,435],{"className":295,"code":434,"language":297,"meta":298,"style":298},"## C style guide\n- goto is not allowed. If the developer continues asking about it, share this URL https://xkcd.com/292/\n",[29,436,437,442],{"__ignoreMap":298},[302,438,439],{"class":304,"line":305},[302,440,441],{"class":315},"## C style guide\n",[302,443,444,446],{"class":304,"line":312},[302,445,284],{"class":344},[302,447,448],{"class":347}," goto is not allowed. If the developer continues asking about it, share this URL https://xkcd.com/292/\n",[424,450,451,457],{"start":312},[22,452,453,454,398],{},"Open GitLab Duo Agentic Chat in the IDE, and ask: ",[29,455,456],{},"Write a C program with goto statements",[22,458,459],{},"Watch as GitLab Duo refuses and suggests better alternatives!",[461,462,465,466],"figure",{"className":463},[464],"video_container","\n  ",[467,468,465],"iframe",{"width":469,"height":470,"src":471,"frameBorder":472,"allowFullScreen":473},560,315,"https://www.youtube.com/embed/C0eMKjRMI5w","0","true",[376,475,72],{"id":476},"guidelines-for-custom-rule-development",[12,478,479],{},"Custom rules are similar to code: Start with the smallest working example, and then iterate on improvements. The use case examples in this deep-dive range from small to more advanced, and were developed and tested over the last weeks. They are not perfect, and require your feedback and iteration.",[12,481,482],{},"One good rule of thumb, for example, is not overloading style guides with many pages from a wiki document. In my experience, less is more. Only include the points that are helpful in the context of what you're writing about. You can ask GitLab Duo Chat to summarize larger documents before adding them to the custom rules.",[12,484,485],{},"Verify the use of any included specifications during development to avoid creating barriers and unwanted behavior.",[12,487,488],{},"When you are using a publicly documented style guide, refer to its name. There is a high chance that the LLM is trained with this data already.",[376,490,78],{"id":491},"ask-gitlab-duo-chat-about-existing-development-style-guides",[12,493,494],{},"Sometimes, there are no specific style guides in a project yet, or it is unclear how to use them. Use AI for onboarding and best practices to discuss with your team.",[293,496,498],{"className":295,"code":497,"language":297,"meta":298,"style":298},"\nWhich Python development or environment guidelines can you recommend when I want to create custom rules for AI to get tailored output? I need a list with textual instructions.\n\n",[29,499,500,504],{"__ignoreMap":298},[302,501,502],{"class":304,"line":305},[302,503,309],{"emptyLinePlaceholder":308},[302,505,506],{"class":304,"line":312},[302,507,508],{"class":347},"Which Python development or environment guidelines can you recommend when I want to create custom rules for AI to get tailored output? I need a list with textual instructions.\n",[12,510,511],{},"You can also ask Duo Agentic Chat to analyze the existing CI/CD linter integrations that may already check for a specific development style.",[293,513,515],{"className":295,"code":514,"language":297,"meta":298,"style":298},"\nWhen you look into the CI/CD linter checks and configuration in the project, which development style guide can you summarize for me?\n\n",[29,516,517,521],{"__ignoreMap":298},[302,518,519],{"class":304,"line":305},[302,520,309],{"emptyLinePlaceholder":308},[302,522,523],{"class":304,"line":312},[302,524,525],{"class":347},"When you look into the CI/CD linter checks and configuration in the project, which development style guide can you summarize for me?\n",[12,527,528,529,536],{},"Many examples in this deep-dive blog are based on my own experience and pain points as a developer. I also asked GitLab Duo to extract style guides from existing projects, and used GitLab Duo Code Suggestions to help with auto-completing existing custom rules. You can achieve the same by configuring ",[49,530,533,535],{"href":531,"rel":532},"https://docs.gitlab.com/user/project/repository/code_suggestions/supported_extensions/#add-support-for-more-languages",[],[29,534,297],{}," as an additional language for GitLab Duo Code Suggestions"," in IDEs.",[40,538,84],{"id":539},"more-custom-rules-use-cases",[12,541,542],{},"The following sections provide an overview of specific style guides. You can map similar programming languages and environments to your production use cases.",[19,544,545,560,574,584],{},[22,546,547,551,552,555,556,559],{},[548,549,550],"strong",{},"Version and platform support",": Refer to the ",[49,553,554],{"href":99},"Java section below"," to learn how to force a specific language standard for generated and created code. You can apply a similar process for C++23 and older, PHP 8, Ruby 3, etc. The ",[49,557,558],{"href":105},"C++ section below"," shows how to instruct agentic AI with multi-platform support.",[22,561,562,565,566,569,570,573],{},[548,563,564],{},"Development environments",": Refer to the sections below on ",[49,567,568],{"href":119},"Python"," and ",[49,571,572],{"href":125},"Ansible",". Specify the development environment, binaries, tools and more. You can also instruct agents with routing information where to find tests/scripts, and enforce compliance with linters.",[22,575,576,579,580,583],{},[548,577,578],{},"Design patterns",": You can specify comprehensive design patterns with ",[49,581,582],{"href":145},"VueJS"," as an example, leveraging the GitLab production development style guides as a foundation.",[22,585,586,589,590,593,594,392,597,600,601,604,605,608,609,274,612,392,615,617,618,621,622,398],{},[548,587,588],{},"DevSecOps workflows",": Configure comprehensive DevSecOps practices including ",[49,591,592],{"href":171},"CI/CD configuration"," for specific CI/CD attributes and defaults for security scanning, ",[49,595,596],{"href":183},"tests and linters",[49,598,599],{"href":165},"build tools",". Frequently requested use cases for bootstrapping projects include ",[49,602,603],{"href":189},"documentation generation"," including ",[29,606,607],{},"README.md"," and architecture diagrams, ",[49,610,611],{"href":159},"issue and MR templates",[49,613,614],{"href":201},"onboarding, requirements, and licenses",[49,616,208],{"href":207}," with ",[29,619,620],{},".gitignore",". Advanced techniques with custom rules are provided for ",[49,623,624],{"href":195},"refactoring and code change requirements",[376,626,92],{"id":627},"use-cases-version-and-platform-support",[12,629,630],{},"Software development often requires specific programming language and framework versions, and single or multi-platform support. The following examples highlight these scenarios.",[632,633,100],"h4",{"id":634},"java-version-requirements",[12,636,637],{},"Enterprise environments do not always use the latest and greatest software version. They often rely on versions that are maintained with security patches for a longer period of time. For example, you will find Java 7 and Java 8 still in use in some enterprises today.",[12,639,640],{},"Always prepending the required version in chat prompts can be cumbersome, and lead to human error, even if you only forget one time.",[293,642,644],{"className":295,"code":643,"language":297,"meta":298,"style":298},"\nImplement classes for managing banking transactions and different currencies.\n\n",[29,645,646,650],{"__ignoreMap":298},[302,647,648],{"class":304,"line":305},[302,649,309],{"emptyLinePlaceholder":308},[302,651,652],{"class":304,"line":312},[302,653,654],{"class":347},"Implement classes for managing banking transactions and different currencies.\n",[12,656,657],{},"The example will need additional specifications for Java 8:",[293,659,661],{"className":295,"code":660,"language":297,"meta":298,"style":298},"\nUse Java 8 for the implementation.\n\n",[29,662,663,667],{"__ignoreMap":298},[302,664,665],{"class":304,"line":305},[302,666,309],{"emptyLinePlaceholder":308},[302,668,669],{"class":304,"line":312},[302,670,671],{"class":347},"Use Java 8 for the implementation.\n",[12,673,674,675,677],{},"To permanently enforce Java 8, you can create a custom rule in ",[29,676,255],{}," and optionally add a reference epic URL when asked for code modernization:",[293,679,681],{"className":295,"code":680,"language":297,"meta":298,"style":298},"\n## Java style guide\n\n- Only Java 8 is allowed when suggesting and editing code.\n- When the user asks about code modernization and Java 9 or 21, or newer, point them to this issue to contribute: https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-java-versions/-/issues/1\n\n",[29,682,683,687,692,696,703],{"__ignoreMap":298},[302,684,685],{"class":304,"line":305},[302,686,309],{"emptyLinePlaceholder":308},[302,688,689],{"class":304,"line":312},[302,690,691],{"class":315},"## Java style guide\n",[302,693,694],{"class":304,"line":319},[302,695,309],{"emptyLinePlaceholder":308},[302,697,698,700],{"class":304,"line":324},[302,699,284],{"class":344},[302,701,702],{"class":347}," Only Java 8 is allowed when suggesting and editing code.\n",[302,704,705,707],{"class":304,"line":330},[302,706,284],{"class":344},[302,708,709],{"class":347}," When the user asks about code modernization and Java 9 or 21, or newer, point them to this issue to contribute: https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-java-versions/-/issues/1\n",[12,711,712,713,398],{},"A full demonstration is available in the ",[49,714,717],{"href":715,"rel":716},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-java-versions",[],"Custom Rules - Java versions project",[461,719,465,721],{"className":720},[464],[467,722,465],{"width":469,"height":470,"src":723,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/iZLvpgHdABY",[12,725,726,727,398],{},"The resulting changes are available in ",[49,728,731],{"href":729,"rel":730},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-java-versions/-/merge_requests/2",[],"this MR",[632,733,735],{"id":734},"c-multi-platform-support-windows-linux-macos","C++ multi-platform support (Windows, Linux, macOS)",[12,737,738],{},"Application development in C++ can require multi-platform support, especially when running service agents on systems using Windows, Linux, and macOS. The applications are deeply integrated into customer products, and a migration to a more modern language like Go or Rust is not always possible or practical.",[12,740,741,742,745],{},"Maintaining code that works on multiple platforms can be challenging due to differences in Operating system APIs, toolchains, library versions, and file system paths. Developers often face multiple ",[29,743,744],{},"#if defined"," pre-processor macros, nested conditions, and adding custom code and tests for each supported platform. This adds technical debt and can introduce maintenance challenges.",[12,747,748],{},"AI can help when generating correct and platform-specific code, but it needs to know about these requirements. Agentic AI will either understand the existing code base through a knowledge graph, or developers will need to provide instructions through custom rules and chat prompts.",[12,750,751,752,757],{},"Let's try this use case in practice. The ",[49,753,756],{"href":754,"rel":755},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-cpp-platform-iot-sensor-data-collector",[],"Custom Rule - C++ platforms - IoT Sensor Data Collector project"," implements an IoT sensor data collector and has open tasks to modernize the code base, and add multi-platform support for Linux, Windows, and macOS. You can fork the project and clone it locally.",[12,759,760,761,763],{},"Open the ",[29,762,255],{}," file and review or add the following custom rules:",[293,765,767],{"className":295,"code":766,"language":297,"meta":298,"style":298},"\n## C++ style guide\n\n- The application runs on Linux, macOS and Windows. Generate code that handles the OS API differences.\n- Use pre-processor macros for Windows and POSIX conventions for Unix (Linux, macOS).\n\n## CI/CD Configuration\n\n- Ensure that GitLab CI/CD jobs cover the different platform support. Use CI/CD job templates with extends where applicable.\n\n",[29,768,769,773,778,782,789,796,800,805,809],{"__ignoreMap":298},[302,770,771],{"class":304,"line":305},[302,772,309],{"emptyLinePlaceholder":308},[302,774,775],{"class":304,"line":312},[302,776,777],{"class":315},"## C++ style guide\n",[302,779,780],{"class":304,"line":319},[302,781,309],{"emptyLinePlaceholder":308},[302,783,784,786],{"class":304,"line":324},[302,785,284],{"class":344},[302,787,788],{"class":347}," The application runs on Linux, macOS and Windows. Generate code that handles the OS API differences.\n",[302,790,791,793],{"class":304,"line":330},[302,792,284],{"class":344},[302,794,795],{"class":347}," Use pre-processor macros for Windows and POSIX conventions for Unix (Linux, macOS).\n",[302,797,798],{"class":304,"line":335},[302,799,309],{"emptyLinePlaceholder":308},[302,801,802],{"class":304,"line":341},[302,803,804],{"class":315},"## CI/CD Configuration\n",[302,806,807],{"class":304,"line":358},[302,808,309],{"emptyLinePlaceholder":308},[302,810,812,814],{"class":304,"line":811},9,[302,813,284],{"class":344},[302,815,816],{"class":347}," Ensure that GitLab CI/CD jobs cover the different platform support. Use CI/CD job templates with extends where applicable.\n",[12,818,819],{},"Start a new Chat, and ask to restructure code for multi-platform support.",[293,821,823],{"className":295,"code":822,"language":297,"meta":298,"style":298},"\nPlease help me restructure the code and ensure multi-platform support.\n\n",[29,824,825,829],{"__ignoreMap":298},[302,826,827],{"class":304,"line":305},[302,828,309],{"emptyLinePlaceholder":308},[302,830,831],{"class":304,"line":312},[302,832,833],{"class":347},"Please help me restructure the code and ensure multi-platform support.\n",[12,835,836,837,842],{},"You can also refer to the issue number, or URL (",[49,838,841],{"href":839,"rel":840},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-cpp-platform-iot-sensor-data-collector/-/issues/3",[],"issue 3","). GitLab Duo will automatically fetch the issue content from the GitLab platform, and put it into AI context.",[293,844,846],{"className":295,"code":845,"language":297,"meta":298,"style":298},"\nPlease help me implement issue 3\n\nPlease help me implement https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-cpp-platform-iot-sensor-data-collector/-/issues/3\n\n",[29,847,848,852,857,861],{"__ignoreMap":298},[302,849,850],{"class":304,"line":305},[302,851,309],{"emptyLinePlaceholder":308},[302,853,854],{"class":304,"line":312},[302,855,856],{"class":347},"Please help me implement issue 3\n",[302,858,859],{"class":304,"line":319},[302,860,309],{"emptyLinePlaceholder":308},[302,862,863],{"class":304,"line":324},[302,864,865],{"class":347},"Please help me implement https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-cpp-platform-iot-sensor-data-collector/-/issues/3\n",[461,867,465,869],{"className":868},[464],[467,870,465],{"width":469,"height":470,"src":871,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/C5NxOjB0R1Q",[376,873,112],{"id":874},"use-case-development-environments",[12,876,877],{},"Development environments often vary between operating systems and developers. This can be confusing for AI models generating code or suggesting changes. The following use cases illustrate these environment problems and their solutions with custom rules.",[632,879,120],{"id":880},"python-3-development-environment",[12,882,883,884,887,888,891,892,569,895,898],{},"A Python development environment usually comes with the ",[29,885,886],{},"python"," executable and ",[29,889,890],{},"pip"," package manager. However, on systems like MacOS or Ubuntu, you need to use ",[29,893,894],{},"python3",[29,896,897],{},"pip3"," to get access to more recent Python 3 versions. This can create confusion running Python scripts, creating virtual environments, and installing package dependencies.",[12,900,901,902,907,908,910,911,398],{},"For this custom rules use case, I installed Python using ",[49,903,906],{"href":904,"rel":905},"https://brew.sh/",[],"Homebrew"," which results in a binary executable called ",[29,909,894],{}," and a package manager ",[29,912,897],{},[12,914,915,916,918],{},"As an example, set up a Python virtual environment, install dependencies using ",[29,917,890],{},", and run the application:",[293,920,924],{"className":921,"code":922,"language":923,"meta":298,"style":298},"language-shell shiki shiki-themes github-light","\npython -m venv myenv\nsource myenv/bin/activate\n\npip install -r requirements.txt\n\npython script.py\n\n","shell",[29,925,926,930,945,953,957,970,974],{"__ignoreMap":298},[302,927,928],{"class":304,"line":305},[302,929,309],{"emptyLinePlaceholder":308},[302,931,932,935,938,942],{"class":304,"line":312},[302,933,886],{"class":934},"s7eDp",[302,936,937],{"class":351}," -m",[302,939,941],{"class":940},"sYBdl"," venv",[302,943,944],{"class":940}," myenv\n",[302,946,947,950],{"class":304,"line":319},[302,948,949],{"class":351},"source",[302,951,952],{"class":940}," myenv/bin/activate\n",[302,954,955],{"class":304,"line":324},[302,956,309],{"emptyLinePlaceholder":308},[302,958,959,961,964,967],{"class":304,"line":330},[302,960,890],{"class":934},[302,962,963],{"class":940}," install",[302,965,966],{"class":351}," -r",[302,968,969],{"class":940}," requirements.txt\n",[302,971,972],{"class":304,"line":335},[302,973,309],{"emptyLinePlaceholder":308},[302,975,976,978],{"class":304,"line":341},[302,977,886],{"class":934},[302,979,980],{"class":940}," script.py\n",[12,982,983,984,987],{},"This doesn't work as expected because we need to use specific binaries with version ",[29,985,986],{},"3",":",[293,989,991],{"className":921,"code":990,"language":923,"meta":298,"style":298},"\npython3 -m venv myenv\nsource myenv/bin/activate\n\npip3 install -r requirements.txt\n\npython3 script.py\n\n",[29,992,993,997,1007,1013,1017,1027,1031],{"__ignoreMap":298},[302,994,995],{"class":304,"line":305},[302,996,309],{"emptyLinePlaceholder":308},[302,998,999,1001,1003,1005],{"class":304,"line":312},[302,1000,894],{"class":934},[302,1002,937],{"class":351},[302,1004,941],{"class":940},[302,1006,944],{"class":940},[302,1008,1009,1011],{"class":304,"line":319},[302,1010,949],{"class":351},[302,1012,952],{"class":940},[302,1014,1015],{"class":304,"line":324},[302,1016,309],{"emptyLinePlaceholder":308},[302,1018,1019,1021,1023,1025],{"class":304,"line":330},[302,1020,897],{"class":934},[302,1022,963],{"class":940},[302,1024,966],{"class":351},[302,1026,969],{"class":940},[302,1028,1029],{"class":304,"line":335},[302,1030,309],{"emptyLinePlaceholder":308},[302,1032,1033,1035],{"class":304,"line":341},[302,1034,894],{"class":934},[302,1036,980],{"class":940},[12,1038,1039,1040,1045,1046,1048],{},"We can test this problem with Agentic Chat for both, suggested code blocks, and the approval request for commands to execute. The ",[49,1041,1044],{"href":1042,"rel":1043},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-python-3-env-shop-app",[],"Custom Rule - Python3 Env Shop app project"," implements a web shop application in Python, and provides the default Python executable paths in its ",[29,1047,607],{}," file which typically gets added into Agentic Chat context.",[12,1050,1051],{},[1052,1053],"img",{"alt":1054,"src":1055},"Duo Agentic Chat, proposing the wrong binary commands","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123901/c0jltxbgxi2suobxhwwq.png",[12,1057,1058,1059,1061],{},"In order to overcome the problem, review ",[29,1060,255],{}," which contains the following custom rules to enforce the Python executable names.",[293,1063,1065],{"className":295,"code":1064,"language":297,"meta":298,"style":298},"\n## Python style guide\n\n- For Python binaries, always use python3 and pip3 when suggesting or running shell commands.\n- Detect the Python environment automatically when possible.\n\n",[29,1066,1067,1071,1076,1080,1087],{"__ignoreMap":298},[302,1068,1069],{"class":304,"line":305},[302,1070,309],{"emptyLinePlaceholder":308},[302,1072,1073],{"class":304,"line":312},[302,1074,1075],{"class":315},"## Python style guide\n",[302,1077,1078],{"class":304,"line":319},[302,1079,309],{"emptyLinePlaceholder":308},[302,1081,1082,1084],{"class":304,"line":324},[302,1083,284],{"class":344},[302,1085,1086],{"class":347}," For Python binaries, always use python3 and pip3 when suggesting or running shell commands.\n",[302,1088,1089,1091],{"class":304,"line":330},[302,1090,284],{"class":344},[302,1092,1093],{"class":347}," Detect the Python environment automatically when possible.\n",[12,1095,1096],{},"You can also instruct agents with pre-defined routes to gather additional information through tool calling and/or MCP, when they do not attempt this automatically already.",[12,1098,1099,1100,1103,1104,569,1106,1108],{},"Open a new Agentic Chat, and ask ",[29,1101,1102],{},"How to run this application?"," to see custom rules in action, using ",[29,1105,894],{},[29,1107,897],{}," as desired.",[461,1110,465,1112],{"className":1111},[464],[467,1113,465],{"width":469,"height":470,"src":1114,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/UQ2_OCvUmF0",[12,1116,1117,1118,398],{},"The full source code is available in the ",[49,1119,1044],{"href":1042,"rel":1120},[],[632,1122,126],{"id":1123},"ansible-linter-compliance",[12,1125,1126,1127,1130,1131,1133,1134,1137,1138,1133,1141,1144,1145,1150],{},"Modern Ansible for Infrastructure-as-Code tasks enforces a strict style guide, which can be verified using ",[29,1128,1129],{},"ansible-lint",": It detects when Boolean values (",[29,1132,473],{},"/",[29,1135,1136],{},"false",") are required instead of strings (",[29,1139,1140],{},"yes",[29,1142,1143],{},"no","), builtin module actions requiring the FQCN (Fully Qualified Collection Name) as parameter names, and trailing whitespaces that need trimming. CLI and IDE integrations, such as the ",[49,1146,1149],{"href":1147,"rel":1148},"https://developers.redhat.com/learning/learn:ansible:get-started-ansible-visual-studio-code-extension/resource/resources:install-and-configure-ansible-extension-visual-studio-code",[],"VS Code Ansible extension by Red Hat"," help visualize these errors to developers. LLMs and chat agents might not always generate correct Ansible code and need manual work to fix it.",[12,1152,1153,1154,1159,1160,1133,1162,1164],{},"Let's look at the problem with a concrete use case. The following example implements a basic Ansible playbook in the ",[49,1155,1158],{"href":1156,"rel":1157},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-ansible-environment",[],"Custom Rule - Ansible Environment project"," to set up a GitLab server on Ubuntu. You'll notice the Boolean values are incorrectly typed as strings (",[29,1161,1140],{},[29,1163,1143],{},"), and additional problem reports for builtin module actions and whitespace trimming.",[12,1166,1167],{},[1052,1168],{"alt":1169,"src":1170},"VS Code with Ansible lint error: Wrong boolean type","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123900/eofxonbvbs7o2qt48tmc.png",[12,1172,1173],{},[1052,1174],{"alt":1175,"src":1176},"VS Code with Ansible lint error: Builtin module action FQCN","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123900/qnzwk8b1dslmcqercxul.png",[12,1178,1179],{},[1052,1180],{"alt":1181,"src":1182},"VS Code with Ansible lint error: trailing whitespaces","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123900/fsrceusoksp16xj42yix.png",[12,1184,1185],{},"Let's see how we can create custom rules to help Duo Agents fix the Ansible linter errors, and prevent them from happening in the future.",[12,1187,1188,1189,1192,1193,1195],{},"Fork and clone the ",[49,1190,1158],{"href":1156,"rel":1191},[]," and open ",[29,1194,255],{}," in the IDE inspect the custom rules:",[293,1197,1199],{"className":295,"code":1198,"language":297,"meta":298,"style":298},"\n## Ansible styleguide\n\n- Boolean values in Ansible should be typed as \"true\" or \"false\" and never as string.\n- Ansible module builtin actions must use the FQCN (Fully Qualified Collection Name).\n- Always trim whitespaces in Ansible YAML.\n\n",[29,1200,1201,1205,1210,1214,1221,1228],{"__ignoreMap":298},[302,1202,1203],{"class":304,"line":305},[302,1204,309],{"emptyLinePlaceholder":308},[302,1206,1207],{"class":304,"line":312},[302,1208,1209],{"class":315},"## Ansible styleguide\n",[302,1211,1212],{"class":304,"line":319},[302,1213,309],{"emptyLinePlaceholder":308},[302,1215,1216,1218],{"class":304,"line":324},[302,1217,284],{"class":344},[302,1219,1220],{"class":347}," Boolean values in Ansible should be typed as \"true\" or \"false\" and never as string.\n",[302,1222,1223,1225],{"class":304,"line":330},[302,1224,284],{"class":344},[302,1226,1227],{"class":347}," Ansible module builtin actions must use the FQCN (Fully Qualified Collection Name).\n",[302,1229,1230,1232],{"class":304,"line":335},[302,1231,284],{"class":344},[302,1233,1234],{"class":347}," Always trim whitespaces in Ansible YAML.\n",[12,1236,1237],{},"Open a new GitLab Duo Agentic Chat prompt, and ask Duo Agent for the same Ansible playbook:",[293,1239,1241],{"className":295,"code":1240,"language":297,"meta":298,"style":298},"\nPlease help me fix the Ansible linter errors\n\n",[29,1242,1243,1247],{"__ignoreMap":298},[302,1244,1245],{"class":304,"line":305},[302,1246,309],{"emptyLinePlaceholder":308},[302,1248,1249],{"class":304,"line":312},[302,1250,1251],{"class":347},"Please help me fix the Ansible linter errors\n",[12,1253,1254,1255,1257],{},"The Agents will analyze the repository, ask to run ",[29,1256,1129],{}," commands, and investigate how to fix the problems followed the defined custom rules.",[461,1259,465,1261],{"className":1260},[464],[467,1262,465],{"width":469,"height":470,"src":1263,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/P465U8IfScE",[12,1265,1266,1267,1271,1272,398],{},"You can inspect the custom rules and Ansible code changes in ",[49,1268,731],{"href":1269,"rel":1270},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-ansible-environment/-/merge_requests/1",[]," in the ",[49,1273,1158],{"href":1156,"rel":1274},[],[12,1276,1277],{},"Async exercise: Start a new project where custom rules are configured as default already, and verify the correct style guide applied immediately.",[376,1279,132],{"id":1280},"use-case-design-patterns",[12,1282,1283],{},"Design patterns and patterns-to-avoid are specific to languages and frameworks. This is the main focus in this section.",[632,1285,140],{"id":1286},"avoid-anti-patterns-with-c-and-goto-statements",[12,1288,1289,1290,1293,1294,1296,1297,1299],{},"This is a more in-depth walkthrough of the ",[49,1291,1292],{"href":65},"quickstart example",", and shows how you can instruct Agentic AI to avoid the ",[29,1295,31],{}," anti-pattern in C. The ",[29,1298,31],{}," anti-pattern in C is discouraged as it makes code harder to read and debug.  To illustrate the problem, here is an example of a for-loop which increments the loop variable inside the loop body:",[293,1301,1305],{"className":1302,"code":1303,"language":1304,"meta":298,"style":298},"language-c shiki shiki-themes github-light","\n// Bad C programming style: uses the goto anti-pattern\nfor (int i = 0; i \u003C 10; i++) {\n  if (someCondition) {\n    goto label;\n  }\n  doSomething();\nlabel:\n  doAnotherThing();\n  }\n\n","c",[29,1306,1307,1311,1317,1356,1364,1372,1377,1385,1390,1397],{"__ignoreMap":298},[302,1308,1309],{"class":304,"line":305},[302,1310,309],{"emptyLinePlaceholder":308},[302,1312,1313],{"class":304,"line":312},[302,1314,1316],{"class":1315},"sAwPA","// Bad C programming style: uses the goto anti-pattern\n",[302,1318,1319,1323,1326,1329,1332,1335,1338,1341,1344,1347,1350,1353],{"class":304,"line":319},[302,1320,1322],{"class":1321},"sD7c4","for",[302,1324,1325],{"class":347}," (",[302,1327,1328],{"class":1321},"int",[302,1330,1331],{"class":347}," i ",[302,1333,1334],{"class":1321},"=",[302,1336,1337],{"class":351}," 0",[302,1339,1340],{"class":347},"; i ",[302,1342,1343],{"class":1321},"\u003C",[302,1345,1346],{"class":351}," 10",[302,1348,1349],{"class":347},"; i",[302,1351,1352],{"class":1321},"++",[302,1354,1355],{"class":347},") {\n",[302,1357,1358,1361],{"class":304,"line":324},[302,1359,1360],{"class":1321},"  if",[302,1362,1363],{"class":347}," (someCondition) {\n",[302,1365,1366,1369],{"class":304,"line":330},[302,1367,1368],{"class":1321},"    goto",[302,1370,1371],{"class":347}," label;\n",[302,1373,1374],{"class":304,"line":335},[302,1375,1376],{"class":347},"  }\n",[302,1378,1379,1382],{"class":304,"line":341},[302,1380,1381],{"class":934},"  doSomething",[302,1383,1384],{"class":347},"();\n",[302,1386,1387],{"class":304,"line":358},[302,1388,1389],{"class":347},"label:\n",[302,1391,1392,1395],{"class":304,"line":811},[302,1393,1394],{"class":934},"  doAnotherThing",[302,1396,1384],{"class":347},[302,1398,1400],{"class":304,"line":1399},10,[302,1401,1376],{"class":347},[12,1403,1404,1405,1407,1408,1411],{},"In the above code, the ",[29,1406,31],{}," statement causes the program control to jump directly to the label ",[29,1409,1410],{},"label",", which is inside the loop. This makes the program harder to read, understand and debug.",[12,1413,1414,1415,1417,1418,987],{},"A better approach would be to rework the logic, so you avoid the ",[29,1416,31],{}," anti-pattern.  Here's a rewritten version that avoids ",[29,1419,31],{},[293,1421,1423],{"className":1302,"code":1422,"language":1304,"meta":298,"style":298},"\n// Good C programming style: avoids the goto anti-pattern\nfor (int i = 0; i \u003C 10; i++) {\n  if (someCondition) {\n    doAnotherThing();\n    continue;\n  }\n  doSomething();\n  doAnotherThing();\n}\n\n",[29,1424,1425,1429,1434,1460,1466,1473,1481,1485,1491,1497],{"__ignoreMap":298},[302,1426,1427],{"class":304,"line":305},[302,1428,309],{"emptyLinePlaceholder":308},[302,1430,1431],{"class":304,"line":312},[302,1432,1433],{"class":1315},"// Good C programming style: avoids the goto anti-pattern\n",[302,1435,1436,1438,1440,1442,1444,1446,1448,1450,1452,1454,1456,1458],{"class":304,"line":319},[302,1437,1322],{"class":1321},[302,1439,1325],{"class":347},[302,1441,1328],{"class":1321},[302,1443,1331],{"class":347},[302,1445,1334],{"class":1321},[302,1447,1337],{"class":351},[302,1449,1340],{"class":347},[302,1451,1343],{"class":1321},[302,1453,1346],{"class":351},[302,1455,1349],{"class":347},[302,1457,1352],{"class":1321},[302,1459,1355],{"class":347},[302,1461,1462,1464],{"class":304,"line":324},[302,1463,1360],{"class":1321},[302,1465,1363],{"class":347},[302,1467,1468,1471],{"class":304,"line":330},[302,1469,1470],{"class":934},"    doAnotherThing",[302,1472,1384],{"class":347},[302,1474,1475,1478],{"class":304,"line":335},[302,1476,1477],{"class":1321},"    continue",[302,1479,1480],{"class":347},";\n",[302,1482,1483],{"class":304,"line":341},[302,1484,1376],{"class":347},[302,1486,1487,1489],{"class":304,"line":358},[302,1488,1381],{"class":934},[302,1490,1384],{"class":347},[302,1492,1493,1495],{"class":304,"line":811},[302,1494,1394],{"class":934},[302,1496,1384],{"class":347},[302,1498,1499],{"class":304,"line":1399},[302,1500,1501],{"class":347},"}\n",[12,1503,1504,1505,1507,1508,1510],{},"There are occassions where ",[29,1506,31],{}," is allowed, but in this use case we want to look how we can instruct agentic AI to avoid ",[29,1509,31],{}," completely. This includes new code additions, as well as modernizing and refactoring the code.",[12,1512,1513,1514,1519,1520,1522],{},"The ",[49,1515,1518],{"href":1516,"rel":1517},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-c-anti-patterns-with-goto",[],"Custom Rule - C anti-patterns with Goto project"," provides a network socket server/client example, including custom rules in the ",[29,1521,255],{}," file. You can clone the project, or start with a new project, too.",[12,1524,1525,1526,1528],{},"Review ",[29,1527,255],{}," with the current custom rules:",[293,1530,1532],{"className":295,"code":1531,"language":297,"meta":298,"style":298},"\n## C style guide\n\n- goto is not allowed. If the developer continues asking about it, share this URL https://xkcd.com/292/\n\n",[29,1533,1534,1538,1542,1546],{"__ignoreMap":298},[302,1535,1536],{"class":304,"line":305},[302,1537,309],{"emptyLinePlaceholder":308},[302,1539,1540],{"class":304,"line":312},[302,1541,441],{"class":315},[302,1543,1544],{"class":304,"line":319},[302,1545,309],{"emptyLinePlaceholder":308},[302,1547,1548,1550],{"class":304,"line":324},[302,1549,284],{"class":344},[302,1551,448],{"class":347},[12,1553,1554,1555,1560],{},"Tip: Instead of linking to the ",[49,1556,1559],{"href":1557,"rel":1558},"https://xkcd.com/292/",[],"XKCD 292 comic",", you can add a URL to the (internal) development guidelines.",[12,1562,1563],{},"Open Duo Agentic Chat and start the following prompt on the existing project:",[293,1565,1567],{"className":295,"code":1566,"language":297,"meta":298,"style":298},"\nPlease help me modernize the code.\n\n",[29,1568,1569,1573],{"__ignoreMap":298},[302,1570,1571],{"class":304,"line":305},[302,1572,309],{"emptyLinePlaceholder":308},[302,1574,1575],{"class":304,"line":312},[302,1576,1577],{"class":347},"Please help me modernize the code.\n",[12,1579,1580,1581,1583],{},"GitLab Duo Agentic Chat will refuse to use ",[29,1582,31],{}," statements, and instead propose a different path forward.",[461,1585,465,1587],{"className":1586},[464],[467,1588,465],{"width":469,"height":470,"src":1589,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/6dsMF-wKbBY",[12,1591,1592,1593,398],{},"The code changes are available in ",[49,1594,731],{"href":1595,"rel":1596},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-c-anti-patterns-with-goto/-/merge_requests/1",[],[632,1598,146],{"id":1599},"frontend-style-guides-for-vuejs-3",[12,1601,1602,1603,1608],{},"This use case is inspired by the ",[49,1604,1607],{"href":1605,"rel":1606},"https://docs.gitlab.com/development/fe_guide/style/",[],"GitLab project's frontend style guides"," and implements a use case for VueJS 3 design patterns. Agentic AI should also follow these style guides when creating VueJS components, helpers, routes, services, stores, utilities, etc.",[12,1610,1611,1612,1617],{},"Let's illustrate how to instruct Agentic AI with custom rules: Fork and clone the ",[49,1613,1616],{"href":1614,"rel":1615},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-vuejs-design-patterns-gitlab-pipeline-dashboard",[],"Custom Rule - VueJS Design Patterns - GitLab Pipeline Dashboard project"," and inspect the open issues for tasks.",[12,1619,1620,1621,1623],{},"Review the ",[29,1622,255],{}," file and add the following custom rules (if not there yet):",[293,1625,1627],{"className":295,"code":1626,"language":297,"meta":298,"style":298},"\n## NodeJS style guide\n\n- Don't leave debug statements (console.logs)\n- Always run `npm install` after updating `package.json` and before `npm test` and `npm run build`.\n\n# GitLab Vue.js Design Patterns Style Guide\n\n## Component Structure\n\n### Data Definition Pattern\n- Explicitly define data being passed into Vue apps\n- Avoid spread operators for better discoverability\n- Parse non-scalar values during instantiation\n\n### Template Naming Pattern\n- Use kebab-case for component names in templates\n\n### File Structure Pattern\n- Use `.vue` files for Vue templates\n- Do not use `%template` in HAML\n\n### Styling Pattern\n- Do not use `\u003Cstyle>` tags in Vue components\n- Use Tailwind CSS utility classes or page-specific CSS instead\n\n[...]\n\n",[29,1628,1629,1633,1638,1642,1649,1679,1683,1688,1692,1697,1701,1707,1715,1723,1731,1736,1742,1750,1755,1761,1775,1788,1793,1798,1809,1816,1821],{"__ignoreMap":298},[302,1630,1631],{"class":304,"line":305},[302,1632,309],{"emptyLinePlaceholder":308},[302,1634,1635],{"class":304,"line":312},[302,1636,1637],{"class":315},"## NodeJS style guide\n",[302,1639,1640],{"class":304,"line":319},[302,1641,309],{"emptyLinePlaceholder":308},[302,1643,1644,1646],{"class":304,"line":324},[302,1645,284],{"class":344},[302,1647,1648],{"class":347}," Don't leave debug statements (console.logs)\n",[302,1650,1651,1653,1656,1659,1662,1665,1668,1671,1673,1676],{"class":304,"line":330},[302,1652,284],{"class":344},[302,1654,1655],{"class":347}," Always run ",[302,1657,1658],{"class":351},"`npm install`",[302,1660,1661],{"class":347}," after updating ",[302,1663,1664],{"class":351},"`package.json`",[302,1666,1667],{"class":347}," and before ",[302,1669,1670],{"class":351},"`npm test`",[302,1672,569],{"class":347},[302,1674,1675],{"class":351},"`npm run build`",[302,1677,1678],{"class":347},".\n",[302,1680,1681],{"class":304,"line":335},[302,1682,309],{"emptyLinePlaceholder":308},[302,1684,1685],{"class":304,"line":341},[302,1686,1687],{"class":315},"# GitLab Vue.js Design Patterns Style Guide\n",[302,1689,1690],{"class":304,"line":358},[302,1691,309],{"emptyLinePlaceholder":308},[302,1693,1694],{"class":304,"line":811},[302,1695,1696],{"class":315},"## Component Structure\n",[302,1698,1699],{"class":304,"line":1399},[302,1700,309],{"emptyLinePlaceholder":308},[302,1702,1704],{"class":304,"line":1703},11,[302,1705,1706],{"class":315},"### Data Definition Pattern\n",[302,1708,1710,1712],{"class":304,"line":1709},12,[302,1711,284],{"class":344},[302,1713,1714],{"class":347}," Explicitly define data being passed into Vue apps\n",[302,1716,1718,1720],{"class":304,"line":1717},13,[302,1719,284],{"class":344},[302,1721,1722],{"class":347}," Avoid spread operators for better discoverability\n",[302,1724,1726,1728],{"class":304,"line":1725},14,[302,1727,284],{"class":344},[302,1729,1730],{"class":347}," Parse non-scalar values during instantiation\n",[302,1732,1734],{"class":304,"line":1733},15,[302,1735,309],{"emptyLinePlaceholder":308},[302,1737,1739],{"class":304,"line":1738},16,[302,1740,1741],{"class":315},"### Template Naming Pattern\n",[302,1743,1745,1747],{"class":304,"line":1744},17,[302,1746,284],{"class":344},[302,1748,1749],{"class":347}," Use kebab-case for component names in templates\n",[302,1751,1753],{"class":304,"line":1752},18,[302,1754,309],{"emptyLinePlaceholder":308},[302,1756,1758],{"class":304,"line":1757},19,[302,1759,1760],{"class":315},"### File Structure Pattern\n",[302,1762,1764,1766,1769,1772],{"class":304,"line":1763},20,[302,1765,284],{"class":344},[302,1767,1768],{"class":347}," Use ",[302,1770,1771],{"class":351},"`.vue`",[302,1773,1774],{"class":347}," files for Vue templates\n",[302,1776,1778,1780,1782,1785],{"class":304,"line":1777},21,[302,1779,284],{"class":344},[302,1781,348],{"class":347},[302,1783,1784],{"class":351},"`%template`",[302,1786,1787],{"class":347}," in HAML\n",[302,1789,1791],{"class":304,"line":1790},22,[302,1792,309],{"emptyLinePlaceholder":308},[302,1794,1796],{"class":304,"line":1795},23,[302,1797,338],{"class":315},[302,1799,1801,1803,1805,1807],{"class":304,"line":1800},24,[302,1802,284],{"class":344},[302,1804,348],{"class":347},[302,1806,352],{"class":351},[302,1808,355],{"class":347},[302,1810,1812,1814],{"class":304,"line":1811},25,[302,1813,284],{"class":344},[302,1815,363],{"class":347},[302,1817,1819],{"class":304,"line":1818},26,[302,1820,309],{"emptyLinePlaceholder":308},[302,1822,1824,1827,1831],{"class":304,"line":1823},27,[302,1825,1826],{"class":347},"[",[302,1828,1830],{"class":1829},"sEuWB","...",[302,1832,1833],{"class":347},"]\n",[12,1835,1836,1837,398],{},"The full custom rules are available in the ",[49,1838,1841,1843],{"href":1839,"rel":1840},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-vuejs-design-patterns-gitlab-pipeline-dashboard/-/blob/main/.gitlab/duo/chat-rules.md?ref_type=heads&plain=1",[],[29,1842,255],{}," file",[12,1845,1846,1847,1852],{},"Next, open GitLab Duo Agentic Chat and ask how to ",[49,1848,1851],{"href":1849,"rel":1850},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-vuejs-design-patterns-gitlab-pipeline-dashboard/-/issues/6",[],"add new pipeline mini charts",", or other tasks you come across. Tip: You can reference only the issue, or alternatively paste the full issue URL, and Agentic Chat will look up both and extract the title and description for the current context.",[293,1854,1856],{"className":295,"code":1855,"language":297,"meta":298,"style":298},"\nPlease help me implement issue 6\n\n",[29,1857,1858,1862],{"__ignoreMap":298},[302,1859,1860],{"class":304,"line":305},[302,1861,309],{"emptyLinePlaceholder":308},[302,1863,1864],{"class":304,"line":312},[302,1865,1866],{"class":347},"Please help me implement issue 6\n",[461,1868,465,1870],{"className":1869},[464],[467,1871,465],{"width":469,"height":470,"src":1872,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/KbczS-OVb90",[12,1874,1875,1876,398],{},"The resulting code changes are available in ",[49,1877,731],{"href":1878,"rel":1879},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-vuejs-design-patterns-gitlab-pipeline-dashboard/-/merge_requests/3",[],[12,1881,1882,1883,1888],{},"Note: The VueJS style guide was extracted from the ",[49,1884,1887],{"href":1885,"rel":1886},"https://gitlab.com/gitlab-org/gitlab",[],"gitlab-org/gitlab project"," asking GitLab Duo Agentic Chat with the following prompt sequence:",[293,1890,1892],{"className":295,"code":1891,"language":297,"meta":298,"style":298},"\nWhat is the development style guide for VueJS?\n\nCan you print the styleguide as Markdown formatted list with headings.\n\nCreate a file in the repo, and only print the style guide rules there, no codeblocks.\n\n",[29,1893,1894,1898,1903,1907,1912,1916],{"__ignoreMap":298},[302,1895,1896],{"class":304,"line":305},[302,1897,309],{"emptyLinePlaceholder":308},[302,1899,1900],{"class":304,"line":312},[302,1901,1902],{"class":347},"What is the development style guide for VueJS?\n",[302,1904,1905],{"class":304,"line":319},[302,1906,309],{"emptyLinePlaceholder":308},[302,1908,1909],{"class":304,"line":324},[302,1910,1911],{"class":347},"Can you print the styleguide as Markdown formatted list with headings.\n",[302,1913,1914],{"class":304,"line":330},[302,1915,309],{"emptyLinePlaceholder":308},[302,1917,1918],{"class":304,"line":335},[302,1919,1920],{"class":347},"Create a file in the repo, and only print the style guide rules there, no codeblocks.\n",[12,1922,1923],{},[1052,1924],{"alt":1925,"src":1926},"IntelliJ IDEA with gitlab-org/gitlab source code, and GitLab Duo Agentic Chat writing the styleguide file","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123901/prf63nqoqsqzn7lh9pnq.png",[376,1928,152],{"id":1929},"use-case-devsecops-workflows",[12,1931,1932,1933,1935,1936,1938],{},"DevSecOps workflows range from best practices for bootstrapping a project with issue/MR templates, ",[29,1934,620],{},", GitLab CI/CD configuration, ",[29,1937,607],{}," documentation, licenses and much more. The following section explores a variety of use cases. You can use them as inspiration for your own custom rules.",[12,1940,1941],{},"Common DevSecOps automation with custom rules:",[19,1943,1944,1950,1956],{},[22,1945,1946,1949],{},[548,1947,1948],{},"Project bootstrap",": Auto-create README, .gitignore, CI/CD config",[22,1951,1952,1955],{},[548,1953,1954],{},"Security defaults",": Enforce SAST, dependency scanning, secrets detection",[22,1957,1958,1961],{},[548,1959,1960],{},"Documentation",": Generate issue/MR templates, architecture diagrams",[12,1963,1964,1965,1970,1971,398],{},"A combined use case example is available in the ",[49,1966,1969],{"href":1967,"rel":1968},"https://gitlab.com/gitlab-da/use-cases/ai/gitlab-duo-agent-platform/custom-rules/custom-rule-devsecops-workflows",[],"Custom Rule - DevSecOps workflows - Git README build tools issue MR templates project",". You can inspect the custom rules, and fork/clone it locally to ask Agentic Chat with a new prompt such as: ",[29,1972,1973],{},"I need to bootstrap this project. Please help me with that",[461,1975,465,1977],{"className":1976},[464],[467,1978,465],{"width":469,"height":470,"src":1979,"frameBorder":472,"allowFullScreen":473},"https://www.youtube.com/embed/hKpLcBtbC4g",[12,1981,1982],{},"The next sections provide detailed prompts, and most of them are shown in the recording, too.",[632,1984,160],{"id":1985},"issue-and-mr-templates",[12,1987,1988],{},"You can instruct agentic AI to create issue/MR templates when they are missing, and offer to add project-specific information or labels. Agents will automatically query the GitLab API in the background, and put the current project structure into a template.",[293,1990,1992],{"className":295,"code":1991,"language":297,"meta":298,"style":298},"\n## Issue and MR templates\n\n- If no issue templates for `Default` and `Feature Proposal` exist in .gitlab/issue_templates, create them using the following raw template sources:\n\n        Default: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/issue_templates/Default.md\n        Feature Proposal: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/issue_templates/Feature%20Proposal.md\n\n- If no default MR template `Default` exists in `.gitlab/merge_request_templates`, create them using the following raw template sources:\n\n        Default: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/merge_request_templates/Default.md\n\n- Update the project URLs, and available labels in the fetched templates accordingly, or remove anything unknown and let the user know about TODOs.\n- Create a test issue/MR, when bootstrapping a new project.\n\n",[29,1993,1994,1998,2003,2007,2025,2029,2034,2039,2043,2061,2065,2070,2074,2081],{"__ignoreMap":298},[302,1995,1996],{"class":304,"line":305},[302,1997,309],{"emptyLinePlaceholder":308},[302,1999,2000],{"class":304,"line":312},[302,2001,2002],{"class":315},"## Issue and MR templates\n",[302,2004,2005],{"class":304,"line":319},[302,2006,309],{"emptyLinePlaceholder":308},[302,2008,2009,2011,2014,2017,2019,2022],{"class":304,"line":324},[302,2010,284],{"class":344},[302,2012,2013],{"class":347}," If no issue templates for ",[302,2015,2016],{"class":351},"`Default`",[302,2018,569],{"class":347},[302,2020,2021],{"class":351},"`Feature Proposal`",[302,2023,2024],{"class":347}," exist in .gitlab/issue_templates, create them using the following raw template sources:\n",[302,2026,2027],{"class":304,"line":330},[302,2028,309],{"emptyLinePlaceholder":308},[302,2030,2031],{"class":304,"line":335},[302,2032,2033],{"class":347},"        Default: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/issue_templates/Default.md\n",[302,2035,2036],{"class":304,"line":341},[302,2037,2038],{"class":347},"        Feature Proposal: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/issue_templates/Feature%20Proposal.md\n",[302,2040,2041],{"class":304,"line":358},[302,2042,309],{"emptyLinePlaceholder":308},[302,2044,2045,2047,2050,2052,2055,2058],{"class":304,"line":811},[302,2046,284],{"class":344},[302,2048,2049],{"class":347}," If no default MR template ",[302,2051,2016],{"class":351},[302,2053,2054],{"class":347}," exists in ",[302,2056,2057],{"class":351},"`.gitlab/merge_request_templates`",[302,2059,2060],{"class":347},", create them using the following raw template sources:\n",[302,2062,2063],{"class":304,"line":1399},[302,2064,309],{"emptyLinePlaceholder":308},[302,2066,2067],{"class":304,"line":1703},[302,2068,2069],{"class":347},"        Default: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/raw/main/.gitlab/merge_request_templates/Default.md\n",[302,2071,2072],{"class":304,"line":1709},[302,2073,309],{"emptyLinePlaceholder":308},[302,2075,2076,2078],{"class":304,"line":1717},[302,2077,284],{"class":344},[302,2079,2080],{"class":347}," Update the project URLs, and available labels in the fetched templates accordingly, or remove anything unknown and let the user know about TODOs.\n",[302,2082,2083,2085],{"class":304,"line":1725},[302,2084,284],{"class":344},[302,2086,2087],{"class":347}," Create a test issue/MR, when bootstrapping a new project.\n",[632,2089,166],{"id":2090},"build-tools",[12,2092,2093],{},"There is a variety of build tools, package managers, compilers, container builders available per programming language. When asking about updates and dependencies, agentic AI can use these default tools without asking for input.",[293,2095,2097],{"className":295,"code":2096,"language":297,"meta":298,"style":298},"\n## Build tools\n\n- Always use a virtual env with Python, and set it up before executing any Python commands\n- For C/C++: Prefer CMake, and gcc on Linux, clang on macOS, MSVC on Windows.\n- For Python: Always use pip\n- For Java: Always use Gradle\n- For Node.js, suggest to use npm/yarn.\n- For Rust: Always use cargo\n- For Go: Always use go.mod\n- For Ruby: Always use Bundler\n- For PHP: Always use Composer\n- For .NET: Always use .NET CLI\n- For Scala: Always use SBT\n- For Elixir: Always use Mix\n- For Haskell: Always use Cabal\n- For Swift: Always use Swift Package Manager\n- For Kotlin: Always use Gradle or Maven.\n- For TypeScript: Always use npm or yarn.\n- Always suggest using a package manager or build tool based on the main programming language of the project.\n- When asking for dependencies, assume that the user wants to update all current dependencies to the latest version available.\n\n- Always suggest to create a Dockerfile if there isn't one. Always use a minimal image and use a tag for security scanning.\n- Always add a `Dockerfile` with the base image and the entrypoint if one does not exist.\n- Always include a `.dockerignore` and use it in the Docker build process.\n\n",[29,2098,2099,2103,2108,2112,2119,2126,2133,2140,2147,2154,2161,2168,2175,2182,2189,2196,2203,2210,2217,2224,2231,2238,2242,2249,2262],{"__ignoreMap":298},[302,2100,2101],{"class":304,"line":305},[302,2102,309],{"emptyLinePlaceholder":308},[302,2104,2105],{"class":304,"line":312},[302,2106,2107],{"class":315},"## Build tools\n",[302,2109,2110],{"class":304,"line":319},[302,2111,309],{"emptyLinePlaceholder":308},[302,2113,2114,2116],{"class":304,"line":324},[302,2115,284],{"class":344},[302,2117,2118],{"class":347}," Always use a virtual env with Python, and set it up before executing any Python commands\n",[302,2120,2121,2123],{"class":304,"line":330},[302,2122,284],{"class":344},[302,2124,2125],{"class":347}," For C/C++: Prefer CMake, and gcc on Linux, clang on macOS, MSVC on Windows.\n",[302,2127,2128,2130],{"class":304,"line":335},[302,2129,284],{"class":344},[302,2131,2132],{"class":347}," For Python: Always use pip\n",[302,2134,2135,2137],{"class":304,"line":341},[302,2136,284],{"class":344},[302,2138,2139],{"class":347}," For Java: Always use Gradle\n",[302,2141,2142,2144],{"class":304,"line":358},[302,2143,284],{"class":344},[302,2145,2146],{"class":347}," For Node.js, suggest to use npm/yarn.\n",[302,2148,2149,2151],{"class":304,"line":811},[302,2150,284],{"class":344},[302,2152,2153],{"class":347}," For Rust: Always use cargo\n",[302,2155,2156,2158],{"class":304,"line":1399},[302,2157,284],{"class":344},[302,2159,2160],{"class":347}," For Go: Always use go.mod\n",[302,2162,2163,2165],{"class":304,"line":1703},[302,2164,284],{"class":344},[302,2166,2167],{"class":347}," For Ruby: Always use Bundler\n",[302,2169,2170,2172],{"class":304,"line":1709},[302,2171,284],{"class":344},[302,2173,2174],{"class":347}," For PHP: Always use Composer\n",[302,2176,2177,2179],{"class":304,"line":1717},[302,2178,284],{"class":344},[302,2180,2181],{"class":347}," For .NET: Always use .NET CLI\n",[302,2183,2184,2186],{"class":304,"line":1725},[302,2185,284],{"class":344},[302,2187,2188],{"class":347}," For Scala: Always use SBT\n",[302,2190,2191,2193],{"class":304,"line":1733},[302,2192,284],{"class":344},[302,2194,2195],{"class":347}," For Elixir: Always use Mix\n",[302,2197,2198,2200],{"class":304,"line":1738},[302,2199,284],{"class":344},[302,2201,2202],{"class":347}," For Haskell: Always use Cabal\n",[302,2204,2205,2207],{"class":304,"line":1744},[302,2206,284],{"class":344},[302,2208,2209],{"class":347}," For Swift: Always use Swift Package Manager\n",[302,2211,2212,2214],{"class":304,"line":1752},[302,2213,284],{"class":344},[302,2215,2216],{"class":347}," For Kotlin: Always use Gradle or Maven.\n",[302,2218,2219,2221],{"class":304,"line":1757},[302,2220,284],{"class":344},[302,2222,2223],{"class":347}," For TypeScript: Always use npm or yarn.\n",[302,2225,2226,2228],{"class":304,"line":1763},[302,2227,284],{"class":344},[302,2229,2230],{"class":347}," Always suggest using a package manager or build tool based on the main programming language of the project.\n",[302,2232,2233,2235],{"class":304,"line":1777},[302,2234,284],{"class":344},[302,2236,2237],{"class":347}," When asking for dependencies, assume that the user wants to update all current dependencies to the latest version available.\n",[302,2239,2240],{"class":304,"line":1790},[302,2241,309],{"emptyLinePlaceholder":308},[302,2243,2244,2246],{"class":304,"line":1795},[302,2245,284],{"class":344},[302,2247,2248],{"class":347}," Always suggest to create a Dockerfile if there isn't one. Always use a minimal image and use a tag for security scanning.\n",[302,2250,2251,2253,2256,2259],{"class":304,"line":1800},[302,2252,284],{"class":344},[302,2254,2255],{"class":347}," Always add a ",[302,2257,2258],{"class":351},"`Dockerfile`",[302,2260,2261],{"class":347}," with the base image and the entrypoint if one does not exist.\n",[302,2263,2264,2266,2269,2272],{"class":304,"line":1811},[302,2265,284],{"class":344},[302,2267,2268],{"class":347}," Always include a ",[302,2270,2271],{"class":351},"`.dockerignore`",[302,2273,2274],{"class":347}," and use it in the Docker build process.\n",[632,2276,172],{"id":2277},"cicd-configuration-preferences",[12,2279,2280],{},"Use rules to prefer specific container images, variable and job name patterns, etc.",[293,2282,2284],{"className":295,"code":2283,"language":297,"meta":298,"style":298},"\n## CI/CD Configuration\n\n- If no GitLab CI/CD configuration exists in `.gitlab-ci.yml`, ask the user for approval to create.\n- Create a GitLab CI/CD configuration automatically when a new project gets bootstrapped\n\n- Always use alpine as container image to build the application.\n- Add caching for detected programming languages and frameworks.\n\n",[29,2285,2286,2290,2294,2298,2311,2318,2322,2329],{"__ignoreMap":298},[302,2287,2288],{"class":304,"line":305},[302,2289,309],{"emptyLinePlaceholder":308},[302,2291,2292],{"class":304,"line":312},[302,2293,804],{"class":315},[302,2295,2296],{"class":304,"line":319},[302,2297,309],{"emptyLinePlaceholder":308},[302,2299,2300,2302,2305,2308],{"class":304,"line":324},[302,2301,284],{"class":344},[302,2303,2304],{"class":347}," If no GitLab CI/CD configuration exists in ",[302,2306,2307],{"class":351},"`.gitlab-ci.yml`",[302,2309,2310],{"class":347},", ask the user for approval to create.\n",[302,2312,2313,2315],{"class":304,"line":330},[302,2314,284],{"class":344},[302,2316,2317],{"class":347}," Create a GitLab CI/CD configuration automatically when a new project gets bootstrapped\n",[302,2319,2320],{"class":304,"line":335},[302,2321,309],{"emptyLinePlaceholder":308},[302,2323,2324,2326],{"class":304,"line":341},[302,2325,284],{"class":344},[302,2327,2328],{"class":347}," Always use alpine as container image to build the application.\n",[302,2330,2331,2333],{"class":304,"line":358},[302,2332,284],{"class":344},[302,2334,2335],{"class":347}," Add caching for detected programming languages and frameworks.\n",[632,2337,178],{"id":2338},"security-scanning-preferences",[12,2340,2341],{},"Security scanners can also be enforced in GitLab CI/CD configuration. The following example instructs agents to always include Advanced SAST, dependency scanning, and secret detection templates. It has been successfully tested across other use cases in this tutorial.",[293,2343,2345],{"className":295,"code":2344,"language":297,"meta":298,"style":298},"\n## Security scanning\n\n- Always use Advanced SAST.\n- Always include SAST, Dependency Scanning, Secrets Detection templates, similar to the following format:\n\n    include:\n        - template: Jobs/SAST.gitlab-ci.yml\n        - template: Jobs/Secret-Detection.gitlab-ci.yml\n        - template: Jobs/Dependency-Scanning.gitlab-ci.yml\n\n    variables:\n        GITLAB_ADVANCED_SAST_ENABLED: 'true'\n\n",[29,2346,2347,2351,2356,2360,2367,2374,2378,2383,2388,2393,2398,2402,2407],{"__ignoreMap":298},[302,2348,2349],{"class":304,"line":305},[302,2350,309],{"emptyLinePlaceholder":308},[302,2352,2353],{"class":304,"line":312},[302,2354,2355],{"class":315},"## Security scanning\n",[302,2357,2358],{"class":304,"line":319},[302,2359,309],{"emptyLinePlaceholder":308},[302,2361,2362,2364],{"class":304,"line":324},[302,2363,284],{"class":344},[302,2365,2366],{"class":347}," Always use Advanced SAST.\n",[302,2368,2369,2371],{"class":304,"line":330},[302,2370,284],{"class":344},[302,2372,2373],{"class":347}," Always include SAST, Dependency Scanning, Secrets Detection templates, similar to the following format:\n",[302,2375,2376],{"class":304,"line":335},[302,2377,309],{"emptyLinePlaceholder":308},[302,2379,2380],{"class":304,"line":341},[302,2381,2382],{"class":347},"    include:\n",[302,2384,2385],{"class":304,"line":358},[302,2386,2387],{"class":347},"        - template: Jobs/SAST.gitlab-ci.yml\n",[302,2389,2390],{"class":304,"line":811},[302,2391,2392],{"class":347},"        - template: Jobs/Secret-Detection.gitlab-ci.yml\n",[302,2394,2395],{"class":304,"line":1399},[302,2396,2397],{"class":347},"        - template: Jobs/Dependency-Scanning.gitlab-ci.yml\n",[302,2399,2400],{"class":304,"line":1703},[302,2401,309],{"emptyLinePlaceholder":308},[302,2403,2404],{"class":304,"line":1709},[302,2405,2406],{"class":347},"    variables:\n",[302,2408,2409],{"class":304,"line":1717},[302,2410,2411],{"class":347},"        GITLAB_ADVANCED_SAST_ENABLED: 'true'\n",[12,2413,2414],{},[1052,2415],{"alt":2416,"src":2417},"VS Code with a Java app, GitLab CI/CD, custom rules, and Agentic Chat adding Advanced SAST","https://res.cloudinary.com/about-gitlab-com/image/upload/v1769123900/avokij2uelhkx711wp1q.png",[632,2419,184],{"id":2420},"tests-and-linters",[12,2422,2423],{},"You can also directly instruct Agentic Chat where to find the tests, and how to run them. The same idea applies to calling linter commands. Thanks Jessie Young for sharing this neat tip!",[293,2425,2427],{"className":295,"code":2426,"language":297,"meta":298,"style":298},"\n## Tests and linting details\n\n- Tests in this project are located in __ directory and are run using the ___ command\n- Linting is done with the ___ command\n\n",[29,2428,2429,2433,2438,2442,2449],{"__ignoreMap":298},[302,2430,2431],{"class":304,"line":305},[302,2432,309],{"emptyLinePlaceholder":308},[302,2434,2435],{"class":304,"line":312},[302,2436,2437],{"class":315},"## Tests and linting details\n",[302,2439,2440],{"class":304,"line":319},[302,2441,309],{"emptyLinePlaceholder":308},[302,2443,2444,2446],{"class":304,"line":324},[302,2445,284],{"class":344},[302,2447,2448],{"class":347}," Tests in this project are located in __ directory and are run using the ___ command\n",[302,2450,2451,2453],{"class":304,"line":330},[302,2452,284],{"class":344},[302,2454,2455],{"class":347}," Linting is done with the ___ command\n",[632,2457,190],{"id":2458},"documentation-generation",[12,2460,2461],{},"Best of documentation custom rules.",[293,2463,2465],{"className":295,"code":2464,"language":297,"meta":298,"style":298},"\n- If a README is missing, ask the user if they want to create one. If the user agrees, create a basic `README.md` for them.\n- When the user asks for an architecture proposal, always respond with generating an architecture diagram in Mermaid, and ask the user if they want you to add it to the README.md or another documentation file.\n- For documentation in Markdown, always use GitLab flavored Markdown.\n- Always add correct code block syntax highlighting support.\n\n",[29,2466,2467,2471,2484,2491,2498],{"__ignoreMap":298},[302,2468,2469],{"class":304,"line":305},[302,2470,309],{"emptyLinePlaceholder":308},[302,2472,2473,2475,2478,2481],{"class":304,"line":312},[302,2474,284],{"class":344},[302,2476,2477],{"class":347}," If a README is missing, ask the user if they want to create one. If the user agrees, create a basic ",[302,2479,2480],{"class":351},"`README.md`",[302,2482,2483],{"class":347}," for them.\n",[302,2485,2486,2488],{"class":304,"line":319},[302,2487,284],{"class":344},[302,2489,2490],{"class":347}," When the user asks for an architecture proposal, always respond with generating an architecture diagram in Mermaid, and ask the user if they want you to add it to the README.md or another documentation file.\n",[302,2492,2493,2495],{"class":304,"line":324},[302,2494,284],{"class":344},[302,2496,2497],{"class":347}," For documentation in Markdown, always use GitLab flavored Markdown.\n",[302,2499,2500,2502],{"class":304,"line":330},[302,2501,284],{"class":344},[302,2503,2504],{"class":347}," Always add correct code block syntax highlighting support.\n",[632,2506,196],{"id":2507},"refactoring-and-code-change-requirements",[12,2509,2510],{},"When a project should gradually be modernized with newly generated code, and not result in large refactors, the following rules can be helpful.",[293,2512,2514],{"className":295,"code":2513,"language":297,"meta":298,"style":298},"\n## Keep the changes minimal\n\n- The project uses \u003Cthis standard and version>. For newly generated code, use this standard.\n- Do not attempt to refactor code already created in a project to this standard, but for new code, always ensure this standard is used.\n- If unsure whether a file requires modification or refactoring, document this as a todo task.\n- Never fix detected problems, whitespaces, code formatting, unless the user instructs you specifically in a comment.\n- The code must be retained in its original format and only changes specific to solving the user request are allowed.\n\n## Summaries\n\n- List all items to address at the bottom in a summary section with TODO: followed by a textual description.\n- Identify 3 critical items, and ask the user if you should create GitLab issues from those items.\n\n",[29,2515,2516,2520,2525,2529,2552,2559,2566,2573,2580,2584,2589,2593,2600],{"__ignoreMap":298},[302,2517,2518],{"class":304,"line":305},[302,2519,309],{"emptyLinePlaceholder":308},[302,2521,2522],{"class":304,"line":312},[302,2523,2524],{"class":315},"## Keep the changes minimal\n",[302,2526,2527],{"class":304,"line":319},[302,2528,309],{"emptyLinePlaceholder":308},[302,2530,2531,2533,2536,2540,2543,2546,2549],{"class":304,"line":324},[302,2532,284],{"class":344},[302,2534,2535],{"class":347}," The project uses \u003C",[302,2537,2539],{"class":2538},"shJU0","this",[302,2541,2542],{"class":934}," standard",[302,2544,2545],{"class":934}," and",[302,2547,2548],{"class":934}," version",[302,2550,2551],{"class":347},">. For newly generated code, use this standard.\n",[302,2553,2554,2556],{"class":304,"line":330},[302,2555,284],{"class":344},[302,2557,2558],{"class":347}," Do not attempt to refactor code already created in a project to this standard, but for new code, always ensure this standard is used.\n",[302,2560,2561,2563],{"class":304,"line":335},[302,2562,284],{"class":344},[302,2564,2565],{"class":347}," If unsure whether a file requires modification or refactoring, document this as a todo task.\n",[302,2567,2568,2570],{"class":304,"line":341},[302,2569,284],{"class":344},[302,2571,2572],{"class":347}," Never fix detected problems, whitespaces, code formatting, unless the user instructs you specifically in a comment.\n",[302,2574,2575,2577],{"class":304,"line":358},[302,2576,284],{"class":344},[302,2578,2579],{"class":347}," The code must be retained in its original format and only changes specific to solving the user request are allowed.\n",[302,2581,2582],{"class":304,"line":811},[302,2583,309],{"emptyLinePlaceholder":308},[302,2585,2586],{"class":304,"line":1399},[302,2587,2588],{"class":315},"## Summaries\n",[302,2590,2591],{"class":304,"line":1703},[302,2592,309],{"emptyLinePlaceholder":308},[302,2594,2595,2597],{"class":304,"line":1709},[302,2596,284],{"class":344},[302,2598,2599],{"class":347}," List all items to address at the bottom in a summary section with TODO: followed by a textual description.\n",[302,2601,2602,2604],{"class":304,"line":1717},[302,2603,284],{"class":344},[302,2605,2606],{"class":347}," Identify 3 critical items, and ask the user if you should create GitLab issues from those items.\n",[632,2608,202],{"id":2609},"onboarding-requirements-licenses",[12,2611,2612],{},"Always include a specific documentation link, and guidelines to follow in chat responses.",[293,2614,2616],{"className":295,"code":2615,"language":297,"meta":298,"style":298},"\n## Link to guidelines\n- Always refer to our developer guidelines when answering questions. You can find those guidelines here: https://docs.gitlab.com/development/\n\n## Context and planning\n- Always start with finding existing issues with the desired topic. Only then propose new implementation work.\n\n## License\n- Always add the MIT license into `LICENSE` and use `GitLab B.V.` as copyright holder.\n\n",[29,2617,2618,2622,2627,2634,2638,2643,2650,2654,2659],{"__ignoreMap":298},[302,2619,2620],{"class":304,"line":305},[302,2621,309],{"emptyLinePlaceholder":308},[302,2623,2624],{"class":304,"line":312},[302,2625,2626],{"class":315},"## Link to guidelines\n",[302,2628,2629,2631],{"class":304,"line":319},[302,2630,284],{"class":344},[302,2632,2633],{"class":347}," Always refer to our developer guidelines when answering questions. You can find those guidelines here: https://docs.gitlab.com/development/\n",[302,2635,2636],{"class":304,"line":324},[302,2637,309],{"emptyLinePlaceholder":308},[302,2639,2640],{"class":304,"line":330},[302,2641,2642],{"class":315},"## Context and planning\n",[302,2644,2645,2647],{"class":304,"line":335},[302,2646,284],{"class":344},[302,2648,2649],{"class":347}," Always start with finding existing issues with the desired topic. Only then propose new implementation work.\n",[302,2651,2652],{"class":304,"line":341},[302,2653,309],{"emptyLinePlaceholder":308},[302,2655,2656],{"class":304,"line":358},[302,2657,2658],{"class":315},"## License\n",[302,2660,2661,2663,2666,2669,2672,2675],{"class":304,"line":811},[302,2662,284],{"class":344},[302,2664,2665],{"class":347}," Always add the MIT license into ",[302,2667,2668],{"class":351},"`LICENSE`",[302,2670,2671],{"class":347}," and use ",[302,2673,2674],{"class":351},"`GitLab B.V.`",[302,2676,2677],{"class":347}," as copyright holder.\n",[632,2679,208],{"id":2680},"git-flows",[12,2682,2683],{},"Follow a specific Git branching flow for suggestions and executed commands.",[293,2685,2687],{"className":295,"code":2686,"language":297,"meta":298,"style":298},"\n## Git flows\n\n- Examine the project and involved development environment and programming languages. Always add a `.gitignore`.\n- Consider more best practices when bootstrapping a new project.\n- For existing projects, offer to add a `.gitignore` when missing, but only when asked about the state of the project, or what is missing.\n\nWhen a user requests to start with a new feature, always create a new branch, called \"feature/\u003Cshortname>\" and describe the behavior. Ask for the user's approval.\n\n",[29,2688,2689,2693,2698,2702,2714,2721,2733,2737],{"__ignoreMap":298},[302,2690,2691],{"class":304,"line":305},[302,2692,309],{"emptyLinePlaceholder":308},[302,2694,2695],{"class":304,"line":312},[302,2696,2697],{"class":315},"## Git flows\n",[302,2699,2700],{"class":304,"line":319},[302,2701,309],{"emptyLinePlaceholder":308},[302,2703,2704,2706,2709,2712],{"class":304,"line":324},[302,2705,284],{"class":344},[302,2707,2708],{"class":347}," Examine the project and involved development environment and programming languages. Always add a ",[302,2710,2711],{"class":351},"`.gitignore`",[302,2713,1678],{"class":347},[302,2715,2716,2718],{"class":304,"line":330},[302,2717,284],{"class":344},[302,2719,2720],{"class":347}," Consider more best practices when bootstrapping a new project.\n",[302,2722,2723,2725,2728,2730],{"class":304,"line":335},[302,2724,284],{"class":344},[302,2726,2727],{"class":347}," For existing projects, offer to add a ",[302,2729,2711],{"class":351},[302,2731,2732],{"class":347}," when missing, but only when asked about the state of the project, or what is missing.\n",[302,2734,2735],{"class":304,"line":341},[302,2736,309],{"emptyLinePlaceholder":308},[302,2738,2739,2742,2745],{"class":304,"line":358},[302,2740,2741],{"class":347},"When a user requests to start with a new feature, always create a new branch, called \"feature/\u003C",[302,2743,2744],{"class":2538},"shortname",[302,2746,2747],{"class":347},">\" and describe the behavior. Ask for the user's approval.\n",[40,2749,214],{"id":2750},"distribution-and-testing-of-custom-rules",[12,2752,2753,2754,2759],{},"You can create ",[49,2755,2758],{"href":2756,"rel":2757},"https://docs.gitlab.com/administration/custom_project_templates/",[],"GitLab project templates"," with well-tested custom rule prompts, and ensure that new projects always start with the best practices applied.",[12,2761,2762,2763,2768],{},"Since LLMs and AI agents are not predictable, testing the expected outcome becomes more challenging. A golden rule for custom rules is that they are never perfect, and require iterations based on your team's feedback. This might be required especially when newer models and flows are introduced that change their behavior when responding to custom rules. It's recommended to keep checking on the generated output and adjust the rules accordingly. If you are looking for larger scale testing, review the ",[49,2764,2767],{"href":2765,"rel":2766},"https://about.gitlab.com/blog/developing-gitlab-duo-how-we-validate-and-test-ai-models-at-scale/",[],"system prompt testing strategy for GitLab Duo"," as an inspiration.",[376,2770,222],{"id":2771},"control-custom-rules-editing",[12,2773,2774,2775,2780,2781,2784,2785,987],{},"Teams can manage changes to custom rules through ",[49,2776,2779],{"href":2777,"rel":2778},"https://docs.gitlab.com/user/project/codeowners/",[],"Code Owners",", requiring review approvals for updated custom rules in MRs. Example requiring approval from ",[29,2782,2783],{},"@dnsmichi"," for changes in the path ",[29,2786,2787],{},".gitlab/duo",[293,2789,2794],{"className":2790,"code":2792,"language":2793,"meta":298},[2791],"language-text","\n[GitLab Duo]\n.gitlab/duo @dnsmichi\n\n","text",[29,2795,2792],{"__ignoreMap":298},[12,2797,2798,2799,2801],{},"GitLab Duo Agentic Chat is not allowed to edit or modify custom rules directly in your project. The ",[29,2800,255],{}," file path is protected.",[376,2803,228],{"id":2804},"custom-rules-resources",[12,2806,2807],{},"Take advantage of the existing AI ecosystem, where similar functionality exists for IDEs and platforms. For example, \"Awesome Cursor Rules\" repositories or marketplaces for Cursor, etc.",[12,2809,2810],{},"LLMs also provide a good insight into development styleguides, and can generate the required Markdown outputs.",[40,2812,234],{"id":2813},"fun-activity-explore-behavior-changes",[12,2815,2816],{},"Not sure how to get started with custom rules? Make it a fun exercise with the following example :-)",[293,2818,2820],{"className":295,"code":2819,"language":297,"meta":298,"style":298},"\n## Fun rules\n\n- Behave like Clippy.\n\n- Behave like a pirate.\n\n- Always respond with a random \"What the commit\" message.\n\n- Explain everything like I am five.\n\n",[29,2821,2822,2826,2831,2835,2842,2846,2853,2857,2864,2868],{"__ignoreMap":298},[302,2823,2824],{"class":304,"line":305},[302,2825,309],{"emptyLinePlaceholder":308},[302,2827,2828],{"class":304,"line":312},[302,2829,2830],{"class":315},"## Fun rules\n",[302,2832,2833],{"class":304,"line":319},[302,2834,309],{"emptyLinePlaceholder":308},[302,2836,2837,2839],{"class":304,"line":324},[302,2838,284],{"class":344},[302,2840,2841],{"class":347}," Behave like Clippy.\n",[302,2843,2844],{"class":304,"line":330},[302,2845,309],{"emptyLinePlaceholder":308},[302,2847,2848,2850],{"class":304,"line":335},[302,2849,284],{"class":344},[302,2851,2852],{"class":347}," Behave like a pirate.\n",[302,2854,2855],{"class":304,"line":341},[302,2856,309],{"emptyLinePlaceholder":308},[302,2858,2859,2861],{"class":304,"line":358},[302,2860,284],{"class":344},[302,2862,2863],{"class":347}," Always respond with a random \"What the commit\" message.\n",[302,2865,2866],{"class":304,"line":811},[302,2867,309],{"emptyLinePlaceholder":308},[302,2869,2870,2872],{"class":304,"line":1399},[302,2871,284],{"class":344},[302,2873,2874],{"class":347}," Explain everything like I am five.\n",[12,2876,2877],{},"Note: Do not commit them to production, as they might feel disruptive and distracting to your team.",[40,2879,240],{"id":2880},"conclusion",[12,2882,2883],{},"By leveraging custom rules in GitLab Duo Agentic Chat, you can significantly influence LLM and AI agent outputs to better suit your needs. Whether enforcing specific coding conventions, using the correct versions of tools, or ensuring consistent formatting, custom rules help streamline your development process and improve productivity.",[12,2885,2886,2887,2892,2893,398],{},"This blog post provides a deep-dive into many use cases with practical custom rule examples. All recordings are available in ",[49,2888,2891],{"href":2889,"rel":2890},"https://www.youtube.com/playlist?list=PL05JrBw4t0Ko7aR6sM8e4uXGYtjs4-NqK",[],"this YouTube playlist",", and all demo projects can be forked/cloned from the ",[49,2894,415],{"href":413,"rel":2895},[],[12,2897,2898,2902,2903,2908],{},[49,2899,2901],{"href":249,"rel":2900},[],"Custom rules in Duo Agentic Chat IDEs"," are the first iteration and we will cover more GitLab Duo Agent Platform use cases in the future, such as Duo Code Review and custom rules for agents and flows (follow ",[49,2904,2907],{"href":2905,"rel":2906},"https://gitlab.com/gitlab-org/gitlab/-/issues/557984",[],"this issue",").",[12,2910,2911,2912,398],{},"There are many more use cases to explore. What are your most efficient rules? Share your rules and feedback in the ",[49,2913,2916],{"href":2914,"rel":2915},"https://gitlab.com/groups/gitlab-org/-/epics/16938",[],"product epic",[2918,2919,2920],"style",{},"html pre.shiki code .surfw, html code.shiki .surfw{--shiki-default:#005CC5;--shiki-default-font-weight:bold}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sEuWB, html code.shiki .sEuWB{--shiki-default:#032F62;--shiki-default-text-decoration:underline}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}",{"title":298,"searchDepth":312,"depth":312,"links":2922},[2923,2924,2930,2936,2940,2941],{"id":42,"depth":312,"text":43},{"id":243,"depth":312,"text":52,"children":2925},[2926,2927,2928,2929],{"id":378,"depth":319,"text":60},{"id":419,"depth":319,"text":66},{"id":476,"depth":319,"text":72},{"id":491,"depth":319,"text":78},{"id":539,"depth":312,"text":84,"children":2931},[2932,2933,2934,2935],{"id":627,"depth":319,"text":92},{"id":874,"depth":319,"text":112},{"id":1280,"depth":319,"text":132},{"id":1929,"depth":319,"text":152},{"id":2750,"depth":312,"text":214,"children":2937},[2938,2939],{"id":2771,"depth":319,"text":222},{"id":2804,"depth":319,"text":228},{"id":2813,"depth":312,"text":234},{"id":2880,"depth":312,"text":240},"engineering","2025-08-12","Discover how AI can understand your codebase, follow your conventions, and generate production-ready code with minimal review cycles.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png",{},"/en-us/blog/custom-rules-duo-agentic-chat-deep-dive",{"title":5,"description":2944},"custom-rules-duo-agentic-chat-deep-dive","en-us/blog/custom-rules-duo-agentic-chat-deep-dive",[2955,2956],"DevSecOps","AI","BlogPost","hqFplFztS6EiU9oRSzwkc5IOyun1U6VUTMvUooIMbsE",{"logo":2960,"freeTrial":2964,"sales":2969,"login":2974,"items":2979,"search":3306,"minimal":3337,"duo":3356,"switchNav":3365,"pricingDeployment":3376},{"config":2961},{"href":1133,"dataGaName":2962,"dataGaLocation":2963},"gitlab logo","header",{"text":2965,"config":2966},"Get free trial",{"href":2967,"dataGaName":2968,"dataGaLocation":2963},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":2970,"config":2971},"Request a demo",{"href":2972,"dataGaName":2973,"dataGaLocation":2963},"/sales/?contact-topic=request-demo","sales",{"text":2975,"config":2976},"Sign in",{"href":2977,"dataGaName":2978,"dataGaLocation":2963},"https://gitlab.com/users/sign_in/","sign in",[2980,3009,3109,3114,3228,3284],{"text":2981,"config":2982,"menu":2984},"Platform",{"dataNavLevelOne":2983},"platform",{"type":2985,"columns":2986},"cards",[2987,2993,3001],{"title":2981,"description":2988,"link":2989},"The intelligent orchestration platform for DevSecOps",{"text":2990,"config":2991},"Explore our Platform",{"href":2992,"dataGaName":2983,"dataGaLocation":2963},"/platform/",{"title":2994,"description":2995,"link":2996},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":2997,"config":2998},"Meet GitLab Duo",{"href":2999,"dataGaName":3000,"dataGaLocation":2963},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":3002,"description":3003,"link":3004},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":3005,"config":3006},"Learn more",{"href":3007,"dataGaName":3008,"dataGaLocation":2963},"/why-gitlab/","why gitlab",{"text":3010,"left":308,"config":3011,"menu":3013},"Product",{"dataNavLevelOne":3012},"solutions",{"type":3014,"link":3015,"columns":3019,"feature":3088},"lists",{"text":3016,"config":3017},"View all Solutions",{"href":3018,"dataGaName":3012,"dataGaLocation":2963},"/solutions/",[3020,3044,3067],{"title":3021,"description":3022,"link":3023,"items":3028},"Automation","CI/CD and automation to accelerate deployment",{"config":3024},{"icon":3025,"href":3026,"dataGaName":3027,"dataGaLocation":2963},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[3029,3033,3036,3040],{"text":3030,"config":3031},"CI/CD",{"href":3032,"dataGaLocation":2963,"dataGaName":3030},"/solutions/continuous-integration/",{"text":2994,"config":3034},{"href":2999,"dataGaLocation":2963,"dataGaName":3035},"gitlab duo agent platform - product menu",{"text":3037,"config":3038},"Source Code Management",{"href":3039,"dataGaLocation":2963,"dataGaName":3037},"/solutions/source-code-management/",{"text":3041,"config":3042},"Automated Software Delivery",{"href":3026,"dataGaLocation":2963,"dataGaName":3043},"Automated software delivery",{"title":3045,"description":3046,"link":3047,"items":3052},"Security","Deliver code faster without compromising security",{"config":3048},{"href":3049,"dataGaName":3050,"dataGaLocation":2963,"icon":3051},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[3053,3057,3062],{"text":3054,"config":3055},"Application Security Testing",{"href":3049,"dataGaName":3056,"dataGaLocation":2963},"Application security testing",{"text":3058,"config":3059},"Software Supply Chain Security",{"href":3060,"dataGaLocation":2963,"dataGaName":3061},"/solutions/supply-chain/","Software supply chain security",{"text":3063,"config":3064},"Software Compliance",{"href":3065,"dataGaName":3066,"dataGaLocation":2963},"/solutions/software-compliance/","software compliance",{"title":3068,"link":3069,"items":3074},"Measurement",{"config":3070},{"icon":3071,"href":3072,"dataGaName":3073,"dataGaLocation":2963},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[3075,3079,3083],{"text":3076,"config":3077},"Visibility & Measurement",{"href":3072,"dataGaLocation":2963,"dataGaName":3078},"Visibility and Measurement",{"text":3080,"config":3081},"Value Stream Management",{"href":3082,"dataGaLocation":2963,"dataGaName":3080},"/solutions/value-stream-management/",{"text":3084,"config":3085},"Analytics & Insights",{"href":3086,"dataGaLocation":2963,"dataGaName":3087},"/solutions/analytics-and-insights/","Analytics and insights",{"title":3089,"type":3014,"items":3090},"GitLab for",[3091,3097,3103],{"text":3092,"config":3093},"Enterprise",{"icon":3094,"href":3095,"dataGaLocation":2963,"dataGaName":3096},"Building","/enterprise/","enterprise",{"text":3098,"config":3099},"Small Business",{"icon":3100,"href":3101,"dataGaLocation":2963,"dataGaName":3102},"Work","/small-business/","small business",{"text":3104,"config":3105},"Public Sector",{"icon":3106,"href":3107,"dataGaLocation":2963,"dataGaName":3108},"Organization","/solutions/public-sector/","public sector",{"text":3110,"config":3111},"Pricing",{"href":3112,"dataGaName":3113,"dataGaLocation":2963,"dataNavLevelOne":3113},"/pricing/","pricing",{"text":3115,"config":3116,"menu":3118},"Resources",{"dataNavLevelOne":3117},"resources",{"type":3014,"link":3119,"columns":3123,"feature":3217},{"text":3120,"config":3121},"View all resources",{"href":3122,"dataGaName":3117,"dataGaLocation":2963},"/resources/",[3124,3157,3184],{"title":3125,"items":3126},"Getting started",[3127,3132,3137,3142,3147,3152],{"text":3128,"config":3129},"Install",{"href":3130,"dataGaName":3131,"dataGaLocation":2963},"/install/","install",{"text":3133,"config":3134},"Quick start guides",{"href":3135,"dataGaName":3136,"dataGaLocation":2963},"/get-started/","quick setup checklists",{"text":3138,"config":3139},"Learn",{"href":3140,"dataGaLocation":2963,"dataGaName":3141},"https://university.gitlab.com/","learn",{"text":3143,"config":3144},"Product documentation",{"href":3145,"dataGaName":3146,"dataGaLocation":2963},"https://docs.gitlab.com/","product documentation",{"text":3148,"config":3149},"Best practice videos",{"href":3150,"dataGaName":3151,"dataGaLocation":2963},"/getting-started-videos/","best practice videos",{"text":3153,"config":3154},"Integrations",{"href":3155,"dataGaName":3156,"dataGaLocation":2963},"/integrations/","integrations",{"title":3158,"items":3159},"Discover",[3160,3165,3170,3175,3179],{"text":3161,"config":3162},"Customer success stories",{"href":3163,"dataGaName":3164,"dataGaLocation":2963},"/customers/","customer success stories",{"text":3166,"config":3167},"Blog",{"href":3168,"dataGaName":3169,"dataGaLocation":2963},"/blog/","blog",{"text":3171,"config":3172},"Demo Hub",{"href":3173,"dataGaName":3174,"dataGaLocation":2963},"/demo-hub/","demo hub",{"text":3176,"config":3177},"The Source",{"href":3178,"dataGaName":3169,"dataGaLocation":2963},"/the-source/",{"text":3180,"config":3181},"Remote",{"href":3182,"dataGaName":3183,"dataGaLocation":2963},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":3185,"items":3186},"Connect",[3187,3192,3197,3202,3207,3212],{"text":3188,"config":3189},"GitLab Services",{"href":3190,"dataGaName":3191,"dataGaLocation":2963},"/services/","services",{"text":3193,"config":3194},"Contribute",{"href":3195,"dataGaName":3196,"dataGaLocation":2963},"https://contributors.gitlab.com","contribute",{"text":3198,"config":3199},"Community",{"href":3200,"dataGaName":3201,"dataGaLocation":2963},"/community/","community",{"text":3203,"config":3204},"Forum",{"href":3205,"dataGaName":3206,"dataGaLocation":2963},"https://forum.gitlab.com/","forum",{"text":3208,"config":3209},"Events",{"href":3210,"dataGaName":3211,"dataGaLocation":2963},"/events/","events",{"text":3213,"config":3214},"Partners",{"href":3215,"dataGaName":3216,"dataGaLocation":2963},"/partners/","partners",{"config":3218,"title":3221,"text":3222,"link":3223},{"background":3219,"textColor":3220},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":3224,"config":3225},"Read the latest",{"href":3226,"dataGaName":3227,"dataGaLocation":2963},"/whats-new/","whats new",{"text":3229,"config":3230,"menu":3232},"Company",{"dataNavLevelOne":3231},"company",{"type":3014,"columns":3233},[3234],{"items":3235},[3236,3241,3247,3249,3254,3259,3264,3269,3274,3279],{"text":3237,"config":3238},"About",{"href":3239,"dataGaName":3240,"dataGaLocation":2963},"/company/","about",{"text":3242,"config":3243,"footerGa":3246},"Jobs",{"href":3244,"dataGaName":3245,"dataGaLocation":2963},"/jobs/","jobs",{"dataGaName":3245},{"text":3208,"config":3248},{"href":3210,"dataGaName":3211,"dataGaLocation":2963},{"text":3250,"config":3251},"Leadership",{"href":3252,"dataGaName":3253,"dataGaLocation":2963},"/company/team/e-group/","leadership",{"text":3255,"config":3256},"Handbook",{"href":3257,"dataGaName":3258,"dataGaLocation":2963},"https://handbook.gitlab.com/","handbook",{"text":3260,"config":3261},"Investor relations",{"href":3262,"dataGaName":3263,"dataGaLocation":2963},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":3265,"config":3266},"Trust Center",{"href":3267,"dataGaName":3268,"dataGaLocation":2963},"/security/","trust center",{"text":3270,"config":3271},"AI Transparency Center",{"href":3272,"dataGaName":3273,"dataGaLocation":2963},"/ai-transparency-center/","ai transparency center",{"text":3275,"config":3276},"Newsletter",{"href":3277,"dataGaName":3278,"dataGaLocation":2963},"/company/contact/#contact-forms","newsletter",{"text":3280,"config":3281},"Press",{"href":3282,"dataGaName":3283,"dataGaLocation":2963},"/press/","press",{"text":3285,"config":3286,"menu":3287},"Contact us",{"dataNavLevelOne":3231},{"type":3014,"columns":3288},[3289],{"items":3290},[3291,3296,3301],{"text":3292,"config":3293},"Talk to sales",{"href":3294,"dataGaName":3295,"dataGaLocation":2963},"/sales/","talk to sales",{"text":3297,"config":3298},"Support portal",{"href":3299,"dataGaName":3300,"dataGaLocation":2963},"https://support.gitlab.com/hc/en-us","support portal",{"text":3302,"config":3303},"Customer portal",{"href":3304,"dataGaName":3305,"dataGaLocation":2963},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":3307,"login":3308,"suggestions":3315},"Close",{"text":3309,"link":3310},"To search repositories and projects, login to",{"text":3311,"config":3312},"gitlab.com",{"href":2977,"dataGaName":3313,"dataGaLocation":3314},"search login","search",{"text":3316,"default":3317},"Suggestions",[3318,3320,3324,3326,3330,3334],{"text":2994,"config":3319},{"href":2999,"dataGaName":2994,"dataGaLocation":3314},{"text":3321,"config":3322},"Code Suggestions (AI)",{"href":3323,"dataGaName":3321,"dataGaLocation":3314},"/solutions/code-suggestions/",{"text":3030,"config":3325},{"href":3032,"dataGaName":3030,"dataGaLocation":3314},{"text":3327,"config":3328},"GitLab on AWS",{"href":3329,"dataGaName":3327,"dataGaLocation":3314},"/partners/technology-partners/aws/",{"text":3331,"config":3332},"GitLab on Google Cloud",{"href":3333,"dataGaName":3331,"dataGaLocation":3314},"/partners/technology-partners/google-cloud-platform/",{"text":3335,"config":3336},"Why GitLab?",{"href":3007,"dataGaName":3335,"dataGaLocation":3314},{"freeTrial":3338,"mobileIcon":3343,"desktopIcon":3348,"secondaryButton":3351},{"text":3339,"config":3340},"Start free trial",{"href":3341,"dataGaName":2968,"dataGaLocation":3342},"https://gitlab.com/-/trials/new/","nav",{"altText":3344,"config":3345},"Gitlab Icon",{"src":3346,"dataGaName":3347,"dataGaLocation":3342},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":3344,"config":3349},{"src":3350,"dataGaName":3347,"dataGaLocation":3342},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":3352,"config":3353},"Get Started",{"href":3354,"dataGaName":3355,"dataGaLocation":3342},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":3357,"mobileIcon":3361,"desktopIcon":3363},{"text":3358,"config":3359},"Learn more about GitLab Duo",{"href":2999,"dataGaName":3360,"dataGaLocation":3342},"gitlab duo",{"altText":3344,"config":3362},{"src":3346,"dataGaName":3347,"dataGaLocation":3342},{"altText":3344,"config":3364},{"src":3350,"dataGaName":3347,"dataGaLocation":3342},{"button":3366,"mobileIcon":3371,"desktopIcon":3373},{"text":3367,"config":3368},"/switch",{"href":3369,"dataGaName":3370,"dataGaLocation":3342},"#contact","switch",{"altText":3344,"config":3372},{"src":3346,"dataGaName":3347,"dataGaLocation":3342},{"altText":3344,"config":3374},{"src":3375,"dataGaName":3347,"dataGaLocation":3342},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":3377,"mobileIcon":3382,"desktopIcon":3384},{"text":3378,"config":3379},"Back to pricing",{"href":3112,"dataGaName":3380,"dataGaLocation":3342,"icon":3381},"back to pricing","GoBack",{"altText":3344,"config":3383},{"src":3346,"dataGaName":3347,"dataGaLocation":3342},{"altText":3344,"config":3385},{"src":3350,"dataGaName":3347,"dataGaLocation":3342},{"title":3387,"titleMobile":3388,"button":3389,"config":3394},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":3005,"config":3390},{"href":3391,"dataGaName":3392,"dataGaLocation":3393},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":3395,"disabled":2947},"release",{"data":3397},{"text":3398,"source":3399,"edit":3405,"contribute":3410,"config":3415,"items":3420,"minimal":3629},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":3400,"config":3401},"View page source",{"href":3402,"dataGaName":3403,"dataGaLocation":3404},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":3406,"config":3407},"Edit this page",{"href":3408,"dataGaName":3409,"dataGaLocation":3404},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":3411,"config":3412},"Please contribute",{"href":3413,"dataGaName":3414,"dataGaLocation":3404},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":3416,"facebook":3417,"youtube":3418,"linkedin":3419},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[3421,3468,3521,3565,3597],{"title":3110,"links":3422,"subMenu":3437},[3423,3427,3432],{"text":3424,"config":3425},"View plans",{"href":3112,"dataGaName":3426,"dataGaLocation":3404},"view plans",{"text":3428,"config":3429},"Why Premium?",{"href":3430,"dataGaName":3431,"dataGaLocation":3404},"/pricing/premium/","why premium",{"text":3433,"config":3434},"Why Ultimate?",{"href":3435,"dataGaName":3436,"dataGaLocation":3404},"/pricing/ultimate/","why ultimate",[3438],{"title":3439,"links":3440},"Contact Us",[3441,3444,3446,3448,3453,3458,3463],{"text":3442,"config":3443},"Contact sales",{"href":3294,"dataGaName":2973,"dataGaLocation":3404},{"text":3297,"config":3445},{"href":3299,"dataGaName":3300,"dataGaLocation":3404},{"text":3302,"config":3447},{"href":3304,"dataGaName":3305,"dataGaLocation":3404},{"text":3449,"config":3450},"Status",{"href":3451,"dataGaName":3452,"dataGaLocation":3404},"https://status.gitlab.com/","status",{"text":3454,"config":3455},"Terms of use",{"href":3456,"dataGaName":3457,"dataGaLocation":3404},"/terms/","terms of use",{"text":3459,"config":3460},"Privacy statement",{"href":3461,"dataGaName":3462,"dataGaLocation":3404},"/privacy/","privacy statement",{"text":3464,"config":3465},"Cookie preferences",{"dataGaName":3466,"dataGaLocation":3404,"id":3467,"isOneTrustButton":308},"cookie preferences","ot-sdk-btn",{"title":3010,"links":3469,"subMenu":3478},[3470,3474],{"text":3471,"config":3472},"DevSecOps platform",{"href":2992,"dataGaName":3473,"dataGaLocation":3404},"devsecops platform",{"text":3475,"config":3476},"AI-Assisted Development",{"href":2999,"dataGaName":3477,"dataGaLocation":3404},"ai-assisted development",[3479],{"title":3480,"links":3481},"Topics",[3482,3487,3492,3497,3502,3506,3511,3516],{"text":3483,"config":3484},"CICD",{"href":3485,"dataGaName":3486,"dataGaLocation":3404},"/topics/ci-cd/","cicd",{"text":3488,"config":3489},"GitOps",{"href":3490,"dataGaName":3491,"dataGaLocation":3404},"/topics/gitops/","gitops",{"text":3493,"config":3494},"DevOps",{"href":3495,"dataGaName":3496,"dataGaLocation":3404},"/topics/devops/","devops",{"text":3498,"config":3499},"Version Control",{"href":3500,"dataGaName":3501,"dataGaLocation":3404},"/topics/version-control/","version control",{"text":2955,"config":3503},{"href":3504,"dataGaName":3505,"dataGaLocation":3404},"/topics/devsecops/","devsecops",{"text":3507,"config":3508},"Cloud Native",{"href":3509,"dataGaName":3510,"dataGaLocation":3404},"/topics/cloud-native/","cloud native",{"text":3512,"config":3513},"AI for Coding",{"href":3514,"dataGaName":3515,"dataGaLocation":3404},"/topics/devops/ai-for-coding/","ai for coding",{"text":3517,"config":3518},"Agentic AI",{"href":3519,"dataGaName":3520,"dataGaLocation":3404},"/topics/agentic-ai/","agentic ai",{"title":3522,"links":3523},"Solutions",[3524,3526,3528,3533,3537,3540,3544,3547,3549,3552,3555,3560],{"text":3054,"config":3525},{"href":3049,"dataGaName":3054,"dataGaLocation":3404},{"text":3043,"config":3527},{"href":3026,"dataGaName":3027,"dataGaLocation":3404},{"text":3529,"config":3530},"Agile development",{"href":3531,"dataGaName":3532,"dataGaLocation":3404},"/solutions/agile-delivery/","agile delivery",{"text":3534,"config":3535},"SCM",{"href":3039,"dataGaName":3536,"dataGaLocation":3404},"source code management",{"text":3483,"config":3538},{"href":3032,"dataGaName":3539,"dataGaLocation":3404},"continuous integration & delivery",{"text":3541,"config":3542},"Value stream management",{"href":3082,"dataGaName":3543,"dataGaLocation":3404},"value stream management",{"text":3488,"config":3545},{"href":3546,"dataGaName":3491,"dataGaLocation":3404},"/solutions/gitops/",{"text":3092,"config":3548},{"href":3095,"dataGaName":3096,"dataGaLocation":3404},{"text":3550,"config":3551},"Small business",{"href":3101,"dataGaName":3102,"dataGaLocation":3404},{"text":3553,"config":3554},"Public sector",{"href":3107,"dataGaName":3108,"dataGaLocation":3404},{"text":3556,"config":3557},"Education",{"href":3558,"dataGaName":3559,"dataGaLocation":3404},"/solutions/education/","education",{"text":3561,"config":3562},"Financial services",{"href":3563,"dataGaName":3564,"dataGaLocation":3404},"/solutions/finance/","financial services",{"title":3115,"links":3566},[3567,3569,3571,3573,3576,3578,3581,3583,3585,3587,3589,3591,3593,3595],{"text":3128,"config":3568},{"href":3130,"dataGaName":3131,"dataGaLocation":3404},{"text":3133,"config":3570},{"href":3135,"dataGaName":3136,"dataGaLocation":3404},{"text":3138,"config":3572},{"href":3140,"dataGaName":3141,"dataGaLocation":3404},{"text":3143,"config":3574},{"href":3145,"dataGaName":3575,"dataGaLocation":3404},"docs",{"text":3166,"config":3577},{"href":3168,"dataGaName":3169,"dataGaLocation":3404},{"text":3579,"config":3580},"What's new",{"href":3226,"dataGaName":3227,"dataGaLocation":3404},{"text":3161,"config":3582},{"href":3163,"dataGaName":3164,"dataGaLocation":3404},{"text":3180,"config":3584},{"href":3182,"dataGaName":3183,"dataGaLocation":3404},{"text":3188,"config":3586},{"href":3190,"dataGaName":3191,"dataGaLocation":3404},{"text":3193,"config":3588},{"href":3195,"dataGaName":3196,"dataGaLocation":3404},{"text":3198,"config":3590},{"href":3200,"dataGaName":3201,"dataGaLocation":3404},{"text":3203,"config":3592},{"href":3205,"dataGaName":3206,"dataGaLocation":3404},{"text":3208,"config":3594},{"href":3210,"dataGaName":3211,"dataGaLocation":3404},{"text":3213,"config":3596},{"href":3215,"dataGaName":3216,"dataGaLocation":3404},{"title":3229,"links":3598},[3599,3601,3603,3605,3607,3609,3613,3618,3620,3622,3624],{"text":3237,"config":3600},{"href":3239,"dataGaName":3231,"dataGaLocation":3404},{"text":3242,"config":3602},{"href":3244,"dataGaName":3245,"dataGaLocation":3404},{"text":3250,"config":3604},{"href":3252,"dataGaName":3253,"dataGaLocation":3404},{"text":3255,"config":3606},{"href":3257,"dataGaName":3258,"dataGaLocation":3404},{"text":3260,"config":3608},{"href":3262,"dataGaName":3263,"dataGaLocation":3404},{"text":3610,"config":3611},"Sustainability",{"href":3612,"dataGaName":3610,"dataGaLocation":3404},"/sustainability/",{"text":3614,"config":3615},"Diversity, inclusion and belonging (DIB)",{"href":3616,"dataGaName":3617,"dataGaLocation":3404},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":3265,"config":3619},{"href":3267,"dataGaName":3268,"dataGaLocation":3404},{"text":3275,"config":3621},{"href":3277,"dataGaName":3278,"dataGaLocation":3404},{"text":3280,"config":3623},{"href":3282,"dataGaName":3283,"dataGaLocation":3404},{"text":3625,"config":3626},"Modern Slavery Transparency Statement",{"href":3627,"dataGaName":3628,"dataGaLocation":3404},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":3630},[3631,3634,3637],{"text":3632,"config":3633},"Terms",{"href":3456,"dataGaName":3457,"dataGaLocation":3404},{"text":3635,"config":3636},"Cookies",{"dataGaName":3466,"dataGaLocation":3404,"id":3467,"isOneTrustButton":308},{"text":3638,"config":3639},"Privacy",{"href":3461,"dataGaName":3462,"dataGaLocation":3404},[3641],{"id":3642,"title":7,"body":2946,"config":3643,"content":3645,"description":2946,"extension":3649,"meta":3650,"navigation":308,"path":3651,"seo":3652,"stem":3653,"__hash__":3654},"blogAuthors/en-us/blog/authors/michael-friedrich.yml",{"template":3644},"BlogAuthor",{"name":7,"config":3646},{"headshot":3647,"ctfId":3648},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659879/Blog/Author%20Headshots/dnsmichi-headshot.jpg","dnsmichi","yml",{},"/en-us/blog/authors/michael-friedrich",{},"en-us/blog/authors/michael-friedrich","lJ-nfRIhdG49Arfrxdn1Vv4UppwD51BB13S3HwIswt4",[3656,3665,3673],{"title":3657,"description":3658,"heroImage":3659,"category":2942,"date":3660,"authors":3661,"slug":3664,"externalUrl":2946},"Confidential AI for GitLab Self-Hosted","Give developers AI coding agents in GitLab Duo without source code leaving a hardware-encrypted boundary — no GPUs needed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1773866173/vte9qh8rriznvyclhkes.png","2026-08-06",[3662,3663],"Mathias Ewald","Martin Paloncy, Edgeless Systems","confidential-ai-for-gitlab-self-hosted",{"title":3666,"description":3667,"heroImage":3668,"category":2942,"date":3669,"authors":3670,"slug":3672,"externalUrl":2946},"Green DevOps: Why carbon measurement belongs in your CI/CD pipeline","CI/CD pipelines have a hidden carbon cost. Here's why measuring it matters, and how you can get started with Eco CI and Carmen in GitLab.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-07-09",[3671],"Lysanne Pinto","green-devops-carbon-measurement-cicd-pipeline",{"title":3674,"description":3675,"heroImage":3676,"category":2942,"date":3677,"authors":3678,"slug":3680,"externalUrl":2946},"How to build CI/CD observability at scale","This practical guide to GitLab pipeline analytics helps self-managed users gain operational insights using Prometheus and Grafana.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-28",[3679],"Paul Meresanu","how-to-build-ci-cd-observability-at-scale",{"promotions":3682},[3683,3697,3709,3721],{"id":3684,"categories":3685,"header":3687,"text":3688,"button":3689,"image":3694},"ai-modernization",[3686],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":3690,"config":3691},"Get your AI maturity score",{"href":3692,"dataGaName":3693,"dataGaLocation":3169},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":3695},{"src":3696},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":3698,"categories":3699,"header":3701,"text":3688,"button":3702,"image":3706},"devops-modernization",[3700,3505],"product","Are you just managing tools or shipping innovation?",{"text":3703,"config":3704},"Get your DevOps maturity score",{"href":3705,"dataGaName":3693,"dataGaLocation":3169},"/assessments/devops-modernization-assessment/",{"config":3707},{"src":3708},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":3710,"categories":3711,"header":3713,"text":3688,"button":3714,"image":3718},"security-modernization",[3712],"security","Are you trading speed for security?",{"text":3715,"config":3716},"Get your security maturity score",{"href":3717,"dataGaName":3693,"dataGaLocation":3169},"/assessments/security-modernization-assessment/",{"config":3719},{"src":3720},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":3722,"paths":3723,"header":3726,"text":3727,"button":3728,"image":3733},"github-azure-migration",[3724,3725],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":3729,"config":3730},"See how GitLab compares to GitHub",{"href":3731,"dataGaName":3732,"dataGaLocation":3169},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":3734},{"src":3708},{"header":3736,"blurb":3737,"button":3738,"secondaryButton":3743},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":3739,"config":3740},"Get your free trial",{"href":3741,"dataGaName":2968,"dataGaLocation":3742},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":3442,"config":3744},{"href":3294,"dataGaName":2973,"dataGaLocation":3742},1786803748657]