Skip to content

Advanced prompting guide for AI-assisted engineering

Structured prompting patterns for using AI in more complex, higher-risk environments.

Justin Reock

Deputy CTO

This post was originally published in Engineering Enablement, DX’s newsletter dedicated to sharing research and perspectives on developer productivity. Subscribe to be notified when we publish new issues.

In 2025, we saw engineering leaders focus on rolling out AI coding assistants at scale across their organizations. As these tools became more widely used, it became clear that outcomes depended less on having access to AI and more on how teams were educated and enabled. In response, DX published the Guide to AI Assisted Engineering, outlining best practices and high-value prompting use cases to help engineering teams use AI effectively in their day-to-day work.

Now, as organizations move beyond pilots, the focus has shifted from adoption and enablement to operational improvements and more complex use cases. Successfully applying AI in these contexts requires more structured prompting practices than those used during early experimentation. To support that next step, we’ve created our first supplement to the original guide: Advanced Prompting Guide for AI Engineering.

This new guide follows the same format as the original, with clear Do and Don’t scenarios, full prompt examples, and code output examples. It is vendor-agnostic, with an emphasis on prompting structure, constraints, and context so the techniques can be applied across tools and architectures.

Inside, you’ll find prompt and code examples that focus on:

  • Complexity management - For systems with cascading rules or conflicting requirements, the guide demonstrates graph-based prompting to reveal hidden dependencies, prioritize rules, and deal with changing state
  • Governance and quality - Workflows that execute controlled validation loops, which result in higher accuracy, and can deal with more edge cases
  • Risk mitigation - Dual-implementation strategies can yield more bulletproof outcomes, especially when dealing with critical transactions that require 100% accuracy
  • Operational efficiency - Techniques like diff-only refactoring can reduce invasive changes to large, complex code repositories, as well as reduce tokens

These use cases are drawn from interviews, educational talks, and community interaction, and can be deployed across multiple scenarios. Whether you’re using coding assistants, building prompts for agents, or writing specs for spec-driven-development, you’ll find applicable methods in the guide.

One other important update: When the original guide was published, it was written primarily for developers. But 2025 was a pivotal year for elevating traditional non-builders. As highlighted in our Q4 AI Impact Report, engineering leaders are shipping more code, and designers and PMs have the ability to create deeper designs and prototypes. We still encourage engineering leaders to distribute this guide to their engineering teams, but this guide need not be exclusive to engineers. Whether engineer, designer, PM, or leader, if you are working on complex problems, this guide can provide useful perspectives.

Last Updated
February 4, 2026