> ## Documentation Index
> Fetch the complete documentation index at: https://usefulai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Best AI Use Cases for Software Engineering in 2026

> The 8 best AI use cases for software engineers - features, bug investigation, tests, reviews, and incidents - each with integrations and exact setup steps.

<div className="uai-updated-row">Updated July 25, 2026</div>

Most of an engineering week disappears into tracing code, reproducing bugs, scaffolding tests, and rebuilding context that never ships anything. These are the eight AI use cases that hand that work to a coding agent, ranked by the time they give back.

<p className="uai-agentline">All eight run on whichever AI coding agent you already use - <span className="uai-nowrap"><img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="Claude Code" title="Claude Code" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" /><a href="https://claude.com/product/claude-code" target="_blank" rel="noreferrer">Claude Code</a></span>, <span className="uai-nowrap"><img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/openai.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=21ac965dc6ee5751127e6d435043629b" alt="Codex" title="Codex" noZoom width="48" height="48" data-path="images/icons/48/openai.com.png" /><a href="https://openai.com/codex/" target="_blank" rel="noreferrer">Codex</a></span>, <span className="uai-nowrap"><img src="https://mintcdn.com/usefulai/XcFilG3Fp3z_o28-/images/icons/48/gemini.google.com.png?fit=max&auto=format&n=XcFilG3Fp3z_o28-&q=85&s=5c434f620bb7ec5b5a3b5aeec74fd971" alt="Gemini CLI" title="Gemini CLI" noZoom width="48" height="48" data-path="images/icons/48/gemini.google.com.png" /><a href="https://github.com/google-gemini/gemini-cli" target="_blank" rel="noreferrer">Gemini CLI</a></span>, <span className="uai-nowrap"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Copilot" title="GitHub Copilot" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><a href="https://github.com/features/copilot" target="_blank" rel="noreferrer">GitHub Copilot</a></span>, or <span className="uai-nowrap"><img src="https://mintcdn.com/usefulai/VO-39uGyUn-FtcaD/images/icons/48/cursor.com.png?fit=max&auto=format&n=VO-39uGyUn-FtcaD&q=85&s=3472188040350aa6fc703d0d14923751" alt="Cursor" title="Cursor" noZoom width="48" height="48" data-path="images/icons/48/cursor.com.png" /><a href="https://cursor.com/" target="_blank" rel="noreferrer">Cursor</a></span> - connected to the tools listed with each use case.</p>

## Best AI Engineering Use Cases

<div className="uai-overview-table uai-overview-table--ranked uai-overview-table--metric-right">
  | # | Use case                                                                                        | Key integrations                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Est. time saved <Tooltip tip="Directional estimates for one software engineer in a normal product-development week. Savings vary with repository size, test coverage, task complexity, and review standards."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">About the estimate</span></span></Tooltip> |
  | - | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | 1 | <a href="#implement-features" className="uai-tbllink no-underline">Implement features</a>       | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span></span>                            | **3** hr/wk                                                                                                                                                                                                                                                                                                                                                                     |
  | 2 | <a href="#investigate-bugs" className="uai-tbllink no-underline">Investigate bugs</a>           | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" title="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /><img src="https://mintcdn.com/usefulai/5xfT_ObZX_-BobJd/images/icons/48/grafana.com.png?fit=max&auto=format&n=5xfT_ObZX_-BobJd&q=85&s=17bdc20f270ab7b6fc04976ecb6b9c05" alt="Grafana" title="Grafana" noZoom width="48" height="48" data-path="images/icons/48/grafana.com.png" />Observability</span></span>      | **2** hr/wk                                                                                                                                                                                                                                                                                                                                                                     |
  | 3 | <a href="#generate-tests" className="uai-tbllink no-underline">Generate tests</a>               | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span></span>                            | **2** hr/wk                                                                                                                                                                                                                                                                                                                                                                     |
  | 4 | <a href="#review-pull-requests" className="uai-tbllink no-underline">Review pull requests</a>   | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span></span>                            | **1.5** hr/wk                                                                                                                                                                                                                                                                                                                                                                   |
  | 5 | <a href="#understand-codebases" className="uai-tbllink no-underline">Understand codebases</a>   | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" title="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" title="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" />Docs</span></span> | **1.5** hr/wk                                                                                                                                                                                                                                                                                                                                                                   |
  | 6 | <a href="#refactor-code-safely" className="uai-tbllink no-underline">Refactor code safely</a>   | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span></span>                            | **1.5** hr/wk                                                                                                                                                                                                                                                                                                                                                                   |
  | 7 | <a href="#update-documentation" className="uai-tbllink no-underline">Update documentation</a>   | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" title="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" title="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" />Docs</span></span> | **1** hr/wk                                                                                                                                                                                                                                                                                                                                                                     |
  | 8 | <a href="#investigate-incidents" className="uai-tbllink no-underline">Investigate incidents</a> | <span className="uai-tblpills"><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" title="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /><img src="https://mintcdn.com/usefulai/5xfT_ObZX_-BobJd/images/icons/48/grafana.com.png?fit=max&auto=format&n=5xfT_ObZX_-BobJd&q=85&s=17bdc20f270ab7b6fc04976ecb6b9c05" alt="Grafana" title="Grafana" noZoom width="48" height="48" data-path="images/icons/48/grafana.com.png" />Observability</span><span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span></span>      | **0.5** hr/wk                                                                                                                                                                                                                                                                                                                                                                   |
</div>

***

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Implement features</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for well-scoped product work with clear acceptance criteria</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>3 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes two bounded feature tasks a week, saving roughly 90 minutes of code tracing, scaffolding, and mechanical edits on each after review."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You translate a ticket into code, find the relevant entry points, trace data flow, copy established patterns, update tests, and repeatedly move between the issue, editor, and terminal.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Given the repository and acceptance criteria, your agent finds the existing pattern, proposes a small plan, implements the change across the necessary files, and runs the focused checks before returning the diff.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Ticket is ready</span>
            <span className="uai-ucflow-trigger-subtitle">scope and acceptance are clear</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Locates the relevant code path, follows local conventions, implements the smallest complete change, and reports the tests and decisions.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Code change <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Test results <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Review summary <span>            <img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-feature-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-feature-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the code, history, contribution rules, and existing implementation patterns.</p>
                <p className="uai-connect-rw"><span>Writes</span> a branch or patch containing the scoped change.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the required checks and prior failures.</p>
                <p className="uai-connect-rw"><span>Writes</span> new or updated tests and the local check results.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/IWAw2nPuNRwa_pHP/images/icons/48/code.visualstudio.com.png?fit=max&auto=format&n=IWAw2nPuNRwa_pHP&q=85&s=fedd87891a3f34c32a1ca1ce894e75d9" alt="VS Code" title="VS Code" noZoom width="48" height="48" data-path="images/icons/48/code.visualstudio.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/jetbrains.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=157d176e26ef0aed0fd1e3455dc6ec7d" alt="JetBrains" title="JetBrains" noZoom width="48" height="48" data-path="images/icons/48/jetbrains.com.png" />IDE</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> local diagnostics, language tooling, and runtime output while it works.</p>
              </div>
            </div>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/ri8jp4LyuU5sCXj0/images/icons/48/jira.atlassian.com.png?fit=max&auto=format&n=ri8jp4LyuU5sCXj0&q=85&s=a672f72effdf4c41711097b276e4642a" alt="Jira" title="Jira" noZoom width="48" height="48" data-path="images/icons/48/jira.atlassian.com.png" /><img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" title="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" />Issues</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the ticket, acceptance criteria, dependencies, and design decisions.</p>
                <p className="uai-connect-rw"><span>Writes</span> a concise implementation and verification summary.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">If the issue tracker is not connected, paste the complete ticket into the coding agent at the repository root. Repository access and executable checks matter far more than automatic ticket updates.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-feature-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-feature-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have a ready ticket, repository instructions, setup and test commands, and one similar implementation you trust. Start with changes that fit in one reviewable pull request.</p>

          ```text Setup prompt theme={null}
          Help me build a repeatable feature-implementation workflow.

          For each ready engineering ticket, produce a small reviewable change in the
          repository. Never merge or deploy it.

          1. Read the repository instructions and the ticket, then restate the requested
             behavior, constraints, acceptance criteria, and anything still ambiguous.
          2. Find the relevant entry points, tests, data models, and one similar feature.
          3. Propose the smallest implementation plan and name the files likely to change.
          4. Implement the complete behavior using existing patterns; avoid unrelated
             refactors and new dependencies unless the ticket requires them.
          5. Add or update focused tests for the acceptance criteria and important failure
             paths.
          6. Run formatting, lint, type checks, and the smallest relevant test suite.
          7. Return the diff, commands and results, assumptions, and manual verification.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>The diff should satisfy every acceptance criterion, resemble nearby code, avoid unrelated edits, include meaningful tests, and arrive with reproducible check results and no hidden decision disguised as implementation detail.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-feature-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-feature-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Start manually from a Ready for development ticket or a specific repository comment. Exclude vague discovery work, security-sensitive changes, large migrations, and tickets with unresolved product decisions.</p>
          <p className="uai-subh">What runs without you</p>
          <p>The agent can pick up a ready ticket, implement it, and open a draft pull request on its own - merging never stops being yours. Keep every diff human-reviewed; after five tasks that land with only normal review feedback, let it create branches and draft PRs automatically. Revisit the repository instructions whenever the stack or conventions change, or the agent will keep reproducing yesterday's patterns.</p>
          <p className="uai-pair">Pairs well with <a href="#generate-tests">generate tests</a> and <a href="#review-pull-requests">review pull requests</a> - the same ticket flows from change to coverage to first-pass review.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Investigate bugs</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for reproducible failures that still require code tracing</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>2 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes two meaningful bug investigations a week, saving about an hour of reproduction, log inspection, and call-path tracing on each."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You translate a vague report into reproduction steps, search logs and recent changes, trace the failing path through the codebase, form hypotheses, and manually assemble evidence for a fix.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent reproduces the reported behavior, collects the relevant logs and stack traces, follows the code path, tests competing hypotheses, and proposes the smallest fix with a regression test.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Bug is reproducible</span>
            <span className="uai-ucflow-trigger-subtitle">steps and expected behavior supplied</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Runs the reproduction, traces the failure through logs and code, narrows the cause, and verifies a minimal patch against the same steps.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Root-cause note <span>            <img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Fix and test <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Verification log <span>            <img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-bugs-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-bugs-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the implementation, recent history, tests, and repository instructions.</p>
                <p className="uai-connect-rw"><span>Writes</span> a proposed patch and regression test on a branch.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" title="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /><img src="https://mintcdn.com/usefulai/5xfT_ObZX_-BobJd/images/icons/48/grafana.com.png?fit=max&auto=format&n=5xfT_ObZX_-BobJd&q=85&s=17bdc20f270ab7b6fc04976ecb6b9c05" alt="Grafana" title="Grafana" noZoom width="48" height="48" data-path="images/icons/48/grafana.com.png" />Observability</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the relevant logs, traces, errors, environment, and timestamps.</p>
              </div>
            </div>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> existing failures and test commands.</p>
                <p className="uai-connect-rw"><span>Writes</span> the regression-test result and focused verification.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/ri8jp4LyuU5sCXj0/images/icons/48/jira.atlassian.com.png?fit=max&auto=format&n=ri8jp4LyuU5sCXj0&q=85&s=a672f72effdf4c41711097b276e4642a" alt="Jira" title="Jira" noZoom width="48" height="48" data-path="images/icons/48/jira.atlassian.com.png" /><img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" title="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" />Issues</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the report, reproduction, expected behavior, impact, and affected versions.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">Paste the report, stack trace, and a narrow log export into the coding agent if observability is not connected. A precise reproduction and timestamp are more useful than a long general description.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-bugs-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-bugs-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have one deterministic reproduction, expected versus actual behavior, environment details, a recent failure timestamp, and the commands needed to run the affected service or test.</p>

          ```text Setup prompt theme={null}
          Help me build a bug-investigation workflow.

          Given a bug report, reproduce the failure, identify the supported root cause,
          and prepare a minimal fix for review. Never deploy it.

          1. Ask for exact reproduction steps, expected and actual behavior, environment,
             frequency, impact, timestamps, and known recent changes.
          2. Reproduce before editing. Capture the failing output, logs, trace, or test.
          3. Trace the execution path and list plausible causes with evidence for and
             against each one.
          4. Make the smallest change that addresses the supported cause without changing
             public behavior elsewhere.
          5. Add a regression test that fails before the fix and passes after it.
          6. Rerun the original reproduction, focused tests, lint, and type checks.
          7. Report cause, patch, evidence, commands, results, and remaining uncertainty.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>The original failure must be demonstrated, the claimed cause must explain it, the regression test must protect the behavior, and the same reproduction must pass after a minimal diff without unrelated cleanup.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-bugs-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-bugs-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run manually when a report has clear reproduction steps or automatically when a known deterministic test fails. Exclude intermittent production incidents without a bounded evidence pack; those belong in incident investigation.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Every fix stays human-reviewed - what graduates is the investigation itself. After five cases where the root cause held up, let the agent start on new reports automatically and post its reproduction and evidence as a ticket note before anyone picks the bug up. Check monthly that it still has access to the logs and test fixtures it relies on; a silent permissions change turns good investigations into guesses.</p>
          <p className="uai-pair">Pairs well with <a href="#generate-tests">generate tests</a> and <a href="#investigate-incidents">investigate incidents</a> - a confirmed root cause hands the regression test and the incident timeline their starting evidence.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Generate tests</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for closing clear coverage gaps around important behavior</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>2 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes four focused test additions a week, saving about 30 minutes of fixture, assertion, and edge-case setup on each."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You read the implementation and existing test style, identify meaningful behavior gaps, build fixtures and mocks, write assertions, and repeatedly tune brittle tests until they pass reliably.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent maps important behavior and failure paths, follows the nearest test pattern, creates focused cases, and runs them both independently and inside the relevant suite.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Coverage gap identified</span>
            <span className="uai-ucflow-trigger-subtitle">behavior and boundary are known</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Derives cases from observable behavior, reuses local fixtures, and proves each test can fail for the intended reason before returning it.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Test cases <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Coverage note <span>            <img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Suite results <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-tests-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-tests-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the implementation, nearest tests, fixtures, helpers, and behavior contract.</p>
                <p className="uai-connect-rw"><span>Writes</span> focused test files or additions.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> test commands, coverage output, and flaky-test history.</p>
                <p className="uai-connect-rw"><span>Writes</span> the focused and suite-level results.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/IWAw2nPuNRwa_pHP/images/icons/48/code.visualstudio.com.png?fit=max&auto=format&n=IWAw2nPuNRwa_pHP&q=85&s=fedd87891a3f34c32a1ca1ce894e75d9" alt="VS Code" title="VS Code" noZoom width="48" height="48" data-path="images/icons/48/code.visualstudio.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/jetbrains.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=157d176e26ef0aed0fd1e3455dc6ec7d" alt="JetBrains" title="JetBrains" noZoom width="48" height="48" data-path="images/icons/48/jetbrains.com.png" />IDE</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> language diagnostics and local runtime output while the tests are built.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">A local coding agent with repository access is enough. Supply the exact behavior to protect; a percentage coverage target by itself tends to produce low-value tests.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-tests-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-tests-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have the target behavior, relevant files, test command, and one nearby test that represents the preferred style. Decide whether the goal is regression protection, edge cases, or a missing contract.</p>

          ```text Setup prompt theme={null}
          Help me build a focused test-generation workflow.

          For each named behavior or coverage gap, add tests that protect observable
          behavior rather than implementation trivia.

          1. Read the target code, public contract, closest test files, fixtures, and
             repository test instructions.
          2. State the behaviors, boundaries, and failure paths worth testing, and skip
             cases already covered.
          3. Reuse existing helpers and realistic fixtures; avoid snapshots or mocks that
             merely duplicate the implementation.
          4. Add the smallest set of normal, boundary, error, and regression cases that
             provide distinct protection.
          5. Demonstrate that each regression test fails for the intended reason when the
             protection is absent, then restore the code.
          6. Run the focused tests and the nearest relevant suite, and flag any flakiness.
          7. Summarize what is now protected and what remains intentionally untested.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>The tests should exercise observable behavior, fail for a meaningful reason, match local style, avoid unnecessary mocks, run reliably, and add protection not already present in the suite.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-tests-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-tests-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run from a review comment, a bug fix, or an explicit coverage-gap task. Do not auto-generate tests for every changed line; require a named behavior or risk.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Test diffs stay reviewed like any other code change. Once five additions in a row have landed without rework, let the agent push updates to a draft PR on its own - the red-green proof inside each test is what keeps this safe. Watch the flaky-test signals weekly; a generated test that flakes erodes trust in the whole suite faster than a missing one.</p>
          <p className="uai-pair">Pairs well with <a href="#implement-features">implement features</a> and <a href="#investigate-bugs">investigate bugs</a> - both produce the changes that need exactly this protection.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Review pull requests</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for a consistent first pass before a human reviewer</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>1.5 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes five non-trivial pull requests a week, saving about 18 minutes of diff tracing and routine checks on each."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You open the ticket, inspect the diff, trace changed call paths, cross-check conventions and tests, and write review comments while trying to separate real defects from style preferences.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">When a pull request is ready, your agent compares it with the stated intent, inspects affected code and tests, runs relevant checks, and leaves a short list of evidence-backed findings for the reviewer.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Pull request ready</span>
            <span className="uai-ucflow-trigger-subtitle">draft status removed</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Checks behavior, correctness, security, tests, and repository conventions, then reports only actionable findings with exact locations.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Review findings <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Check results <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Risk summary <span>            <img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-review-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-review-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the pull request, base branch, ticket, surrounding code, and review rules.</p>
                <p className="uai-connect-rw"><span>Writes</span> review comments or a draft review for the engineer.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> required check results, coverage changes, and failure logs.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/ri8jp4LyuU5sCXj0/images/icons/48/jira.atlassian.com.png?fit=max&auto=format&n=ri8jp4LyuU5sCXj0&q=85&s=a672f72effdf4c41711097b276e4642a" alt="Jira" title="Jira" noZoom width="48" height="48" data-path="images/icons/48/jira.atlassian.com.png" /><img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" title="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" />Issues</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> acceptance criteria and linked design decisions.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">Run the coding agent against the pull-request branch locally if repository review integration is unavailable. Ask for a review report rather than copying the raw diff into a general chatbot.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-review-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-review-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have repository review guidance, the ticket, required checks, and examples of useful versus noisy review comments. Define focus areas such as correctness, security, migrations, or backward compatibility.</p>

          ```text Setup prompt theme={null}
          Help me build a pull-request review workflow.

          When a pull request leaves draft, perform a first-pass review and return only
          actionable, evidence-backed findings. Never approve or merge it.

          1. Read the ticket, acceptance criteria, repository instructions, diff, and
             surrounding code before commenting.
          2. Trace the changed behavior through callers, data boundaries, and tests.
          3. Check correctness, failure handling, security, compatibility, migrations,
             concurrency where relevant, and whether the tests protect the new behavior.
          4. Run the smallest relevant checks when the environment allows it.
          5. For each finding, cite the exact file and line, explain the concrete failure
             scenario, and distinguish blocking defects from suggestions.
          6. Suppress style comments already enforced by tooling and do not restate the diff.
          7. End with a short risk and verification summary.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>Comments should identify a real failure or maintainability risk, point to the exact code, explain how to reproduce or reason about it, and avoid noise that a formatter or human preference would settle.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-review-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-review-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run when a pull request leaves draft or when a reviewer explicitly requests it. Skip generated files, dependency-lock-only changes, and repositories without review instructions until those rules exist.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Approval and merge are permanently human - the agent's review is a first pass, not a gate. Keep its comments in draft for the first ten pull requests and compare them with what your reviewers caught. When the overlap is consistently useful, let non-blocking comments post automatically. Once a month, sample merged PRs for defects it missed; the agent's silence should never be read as approval.</p>
          <p className="uai-pair">Pairs well with <a href="#implement-features">implement features</a> - both work from the same repository rules, on opposite sides of the diff.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Understand codebases</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for onboarding to an unfamiliar service or tracing one feature</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>1.5 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes three codebase questions a week, saving about 30 minutes of repository search and call-path tracing on each."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You search folders and symbols, jump between callers and data models, read stale architecture pages, and ask teammates to explain how one request or feature moves through the system.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent maps the relevant files, traces the execution and data flow, explains project-specific terms, and gives you a source-linked walkthrough you can challenge with follow-up questions.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">New area to understand</span>
            <span className="uai-ucflow-trigger-subtitle">service or feature named</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Starts broad, narrows to the requested path, and supports every explanation with files, symbols, and the current implementation.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Architecture map <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Execution trace <span>            <img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Glossary <span>            <img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-understand-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-understand-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the current code, tree, symbols, history, and repository instructions.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" title="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" title="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" />Docs</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> architecture decisions, runbooks, diagrams, and product terminology.</p>
                <p className="uai-connect-rw"><span>Writes</span> a source-linked walkthrough or onboarding note.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/IWAw2nPuNRwa_pHP/images/icons/48/code.visualstudio.com.png?fit=max&auto=format&n=IWAw2nPuNRwa_pHP&q=85&s=fedd87891a3f34c32a1ca1ce894e75d9" alt="VS Code" title="VS Code" noZoom width="48" height="48" data-path="images/icons/48/code.visualstudio.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/jetbrains.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=157d176e26ef0aed0fd1e3455dc6ec7d" alt="JetBrains" title="JetBrains" noZoom width="48" height="48" data-path="images/icons/48/jetbrains.com.png" />IDE</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> language intelligence and runtime commands for confirming the execution path.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">Run the agent at the repository root and point it at a specific feature or service. Broad requests such as “explain everything” are less useful than tracing one user action end to end.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-understand-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-understand-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have the repository instructions, setup commands, any current architecture docs, and three questions a new engineer genuinely needs answered.</p>

          ```text Setup prompt theme={null}
          Help me build a codebase-understanding workflow.

          For a named service or feature, create a source-linked walkthrough of how it
          works in the current repository.

          1. Read the repository instructions and produce a short map of packages,
             entry points, tests, data stores, and external dependencies relevant to the area.
          2. Ask what I need to understand: architecture, a user flow, a data model, an
             operational path, or where to make a change.
          3. Trace one concrete request from entry point through important calls, state
             changes, persistence, and response.
          4. Cite files and symbols for every material statement and label uncertain or
             apparently stale documentation.
          5. Explain project-specific terms and the conventions a new engineer must follow.
          6. Identify the safest extension points and the tests that protect the path.
          7. Test the workflow on three different areas of the repository.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>A new engineer should be able to navigate from the explanation to the exact code, follow the real execution path, distinguish current implementation from stale docs, and know where changes and tests normally belong.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-understand-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-understand-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run manually when onboarding, picking up a ticket in an unfamiliar area, or preparing a design. Require a named feature, service, or path so the output stays useful.</p>
          <p className="uai-subh">What runs without you</p>
          <p>This workflow is read-only, so the risk is staleness, not damage. After three accurate walkthroughs, let it save its output automatically as onboarding notes - but treat them as snapshots until an engineer confirms them, not as durable documentation. Regenerate after any major architecture change; an outdated walkthrough misleads more than no walkthrough at all.</p>
          <p className="uai-pair">Pairs well with <a href="#update-documentation">update documentation</a> - a verified walkthrough is halfway to the documentation page.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Refactor code safely</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for mechanical improvements with behavior that must stay fixed</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>1.5 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes one medium refactor a week, saving about 90 minutes of call-site discovery, repetitive edits, and verification."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">You inventory references, characterize current behavior, make repetitive changes across files, repair tests and types, and inspect the diff for accidental behavior changes.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent maps every affected call site, establishes a behavior-preserving test baseline, applies the refactor in small steps, and reruns focused and broader checks after each stage.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Refactor scoped</span>
            <span className="uai-ucflow-trigger-subtitle">behavior must remain unchanged</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Builds a reference map and test baseline, performs staged edits, and stops when checks reveal a behavior change outside the agreed scope.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Refactor diff <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Reference map <span>            <img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/sourcegraph.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=3b0e63f491d150d91daf7445d158ee59" alt="Sourcegraph" noZoom width="48" height="48" data-path="images/icons/48/sourcegraph.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Check report <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-refactor-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-refactor-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> all definitions, references, tests, generated boundaries, and repository rules.</p>
                <p className="uai-connect-rw"><span>Writes</span> the staged refactor on a branch.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the behavior baseline and required checks.</p>
                <p className="uai-connect-rw"><span>Writes</span> focused and full-suite results.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/IWAw2nPuNRwa_pHP/images/icons/48/code.visualstudio.com.png?fit=max&auto=format&n=IWAw2nPuNRwa_pHP&q=85&s=fedd87891a3f34c32a1ca1ce894e75d9" alt="VS Code" title="VS Code" noZoom width="48" height="48" data-path="images/icons/48/code.visualstudio.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/jetbrains.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=157d176e26ef0aed0fd1e3455dc6ec7d" alt="JetBrains" title="JetBrains" noZoom width="48" height="48" data-path="images/icons/48/jetbrains.com.png" />IDE</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> symbol references, type errors, and runtime verification.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">A local coding agent can do this with repository and terminal access. Do not paste isolated files into chat for a cross-cutting refactor; the reference map is part of the work.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-refactor-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-refactor-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have the exact boundary to change, the behavior that must not change, known public APIs, test commands, and a rollback-friendly branch. Split migrations from cleanup where possible.</p>

          ```text Setup prompt theme={null}
          Help me build a behavior-preserving refactor workflow.

          For a scoped refactor, change structure without changing external behavior.

          1. Ask for the target, motivation, in-scope and out-of-scope areas, public APIs,
             performance constraints, and required checks.
          2. Find every definition, reference, test, configuration, and generated boundary
             affected by the change.
          3. Establish a passing baseline and add characterization tests where behavior is
             important but unprotected.
          4. Propose small reversible stages and apply one stage at a time.
          5. After each stage run focused tests, type checks, and lint; stop on an
             unexplained behavior or performance change.
          6. Avoid opportunistic cleanup and preserve compatibility unless explicitly told otherwise.
          7. Return the staged diff, reference map, commands, results, and rollback note.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>The external behavior and public interfaces should remain unchanged, all references should be accounted for, the diff should contain only the agreed structural change, and tests should pass before and after each stage.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-refactor-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-refactor-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Start manually from an approved technical task. Exclude emergency production fixes, broad “clean up the codebase” requests, and migrations that intentionally change behavior.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Refactors never graduate to autonomy - every stage stays reviewed and merges small. What the agent earns over time is scope: start with renames and extractions before trusting it with module boundaries. Recheck how it finds references whenever the language tooling changes; a refactor that misses one dynamic call site is worse than no refactor.</p>
          <p className="uai-pair">Pairs well with <a href="#generate-tests">generate tests</a> and <a href="#review-pull-requests">review pull requests</a> - characterization tests and a careful first pass are what make staged refactors safe.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Update documentation</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for keeping reference and runbook changes beside the code change</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>1 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes three documentation updates a week, saving about 20 minutes of tracing and rewriting for each."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">After code changes, you locate every affected README, reference page, example, runbook, and diagram, then rewrite them while checking that commands and names still match the implementation.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent reads the diff, finds documentation that describes the changed behavior, updates examples and commands, and flags pages that appear stale or need a product decision.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Code change ready</span>
            <span className="uai-ucflow-trigger-subtitle">behavior or interface changed</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Maps the diff to affected reader tasks, updates the nearest sources of truth, and validates commands, links, names, and examples.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Docs changes <span>            <img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Example updates <span>            <img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Stale-page list <span>            <img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-docs-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-docs-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> the code diff, tests, examples, changelog, and documentation references.</p>
                <p className="uai-connect-rw"><span>Writes</span> documentation changes stored with the code.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" title="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/notion.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=f55a7df0c5b731f07a0985551af40510" alt="Notion" title="Notion" noZoom width="48" height="48" data-path="images/icons/48/notion.com.png" />Docs</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> external guides, runbooks, architecture pages, and style guidance.</p>
                <p className="uai-connect-rw"><span>Writes</span> reviewable updates or an affected-page list.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub Actions" title="GitHub Actions" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab CI" title="GitLab CI" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />CI/CD</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> documentation link, snippet, and example-validation results.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">Point the agent at the diff and documentation roots. If external docs are not connected, have it produce a precise patch list with old and replacement text for each page.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-docs-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-docs-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have the final diff, docs style guide, ownership map, link and snippet checks, and an example of a good release-linked documentation update.</p>

          ```text Setup prompt theme={null}
          Help me build a documentation-update workflow.

          When a code change affects reader-visible behavior, find and prepare every
          necessary documentation update for review.

          1. Read the diff and state what changed for users, operators, integrators, and developers.
          2. Search documentation, examples, READMEs, runbooks, changelogs, and diagrams
             for the changed names, commands, behavior, and concepts.
          3. Classify each match as update, verify, or unaffected; do not rewrite pages
             that merely share a word.
          4. Update procedures, examples, expected output, links, and version notes using
             the documentation style guide.
          5. Run available link, snippet, and example checks and manually verify commands
             that can run locally.
          6. Flag uncertain ownership or product wording instead of inventing it.
          7. Return the docs diff and a checklist mapped to the code change.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>Every affected reader task should remain accurate, examples and commands should work, stale names and links should be gone, and the documentation diff should explain the behavior rather than repeat implementation details.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-docs-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-docs-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run when a pull request changes a public interface, command, workflow, configuration, or operational procedure. Skip internal-only refactors that do not affect documented behavior.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Documentation changes stay reviewed alongside the code change they belong to. After five accurate change-to-page mappings, let the agent attach its docs checklist to qualifying pull requests automatically - the author confirms it instead of reconstructing it. Audit for stale pages quarterly; this workflow only catches drift for changes that go through review.</p>
          <p className="uai-pair">Pairs well with <a href="#implement-features">implement features</a> and <a href="#understand-codebases">understand codebases</a> - both create the change context the docs update needs.</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="uai-itemcard uai-itemcard--v6" role="article">
  <div className="uai-itemcard-head uai-itemcard-head--noicon">
    <div className="uai-itemcard-identity">
      <div className="uai-itemcard-row uai-itemcard-row--title">
        <h2>Investigate incidents</h2>
      </div>

      <div className="uai-itemcard-row">
        <span className="uai-itemcard-note uai-itemcard-note--green">Best for assembling the timeline and evidence while responders stay focused</span>
      </div>
    </div>

    <div className="uai-itemcard-end">
      <div className="uai-itemcard-metric"><strong>0.5 hr/wk</strong><span>est. time saved <Tooltip tip="Assumes one meaningful incident or follow-up a week, saving about 30 minutes of log gathering, timeline assembly, and code correlation."><span className="uai-tip-icon"><Icon icon="circle-info" size={12} color="currentColor" /><span className="uai-sr-only">How this estimate is calculated</span></span></Tooltip></span></div>
    </div>
  </div>

  <div className="uai-itemcard-body">
    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How it's done today</span>
      <p className="uai-itemcard-summary">Responders jump between alerts, logs, traces, deployments, chat, and code while someone manually reconstructs the timeline and tries to separate symptoms from the likely change.</p>
    </section>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How AI helps</span>
      <p className="uai-itemcard-summary">Your agent gathers the bounded evidence pack, correlates alerts with deployments and code paths, maintains a timestamped timeline, and prepares hypotheses and follow-up work for the incident lead.</p>
    </section>

    <div className="uai-figure uai-figure--light">
      <div className="uai-ucflow-stage">
        <div className="uai-ucflow-trigger">
          <span className="uai-ucflow-trigger-icon">
            <img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" />
          </span>

          <span>
            <span className="uai-ucflow-trigger-title">Incident declared</span>
            <span className="uai-ucflow-trigger-subtitle">service and time window set</span>
          </span>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-agent">
          <div className="uai-ucflow-agent-header">
            <span className="uai-ucflow-agent-logos">
              <img src="https://mintcdn.com/usefulai/DapqcZBWDcIyQCBz/images/icons/48/claude.ai.png?fit=max&auto=format&n=DapqcZBWDcIyQCBz&q=85&s=fb415c7174f1e2e8f24101e1c7275b99" alt="" noZoom width="48" height="48" data-path="images/icons/48/claude.ai.png" />

              <img src="https://mintcdn.com/usefulai/C5xOaAf4Os-Vu41o/images/icons/48/chatgpt.com.png?fit=max&auto=format&n=C5xOaAf4Os-Vu41o&q=85&s=5e7f3de17cf2c7fc46864bfdcb97b95e" alt="" noZoom width="48" height="48" data-path="images/icons/48/chatgpt.com.png" />
            </span>

            <span className="uai-ucflow-agent-name">Your AI agent</span>

            <span className="uai-ucflow-agent-status" />
          </div>

          <p className="uai-ucflow-agent-task">Builds a live evidence timeline, links symptoms to recent changes and affected paths, and updates hypotheses without taking production action.</p>
        </div>

        <span className="uai-ucflow-link" />

        <div className="uai-ucflow-outputs">
          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Incident timeline <span>            <img src="https://mintcdn.com/usefulai/HJ0On2gL236nYMqk/images/icons/48/docs.google.com.png?fit=max&auto=format&n=HJ0On2gL236nYMqk&q=85&s=99f0055b99bf8d2b22343a2704756f55" alt="Google Docs" noZoom width="48" height="48" data-path="images/icons/48/docs.google.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Evidence links <span>            <img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /></span></div>

            <span className="uai-ucflow-line uai-ucflow-line-90" />

            <span className="uai-ucflow-line uai-ucflow-line-70" />
          </div>

          <div className="uai-ucflow-output">
            <div className="uai-ucflow-output-title">Follow-up tasks <span>            <img src="https://mintcdn.com/usefulai/MfWPxrmA3ZwUYT3b/images/icons/48/asana.com.png?fit=max&auto=format&n=MfWPxrmA3ZwUYT3b&q=85&s=9ec0decd304a812943ee11e0ed45d99b" alt="Asana" noZoom width="48" height="48" data-path="images/icons/48/asana.com.png" /></span></div>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-70" />
            </span>

            <span className="uai-ucflow-task">
              <span className="uai-ucflow-line uai-ucflow-line-50" />
            </span>
          </div>
        </div>
      </div>
    </div>

    <section className="uai-itemcard-section">
      <span role="heading" aria-level="3" className="uai-card-h">How to set it up</span>
    </section>

    <div className="uai-itemcard-details-group uai-stepflat">
      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-incident-connect" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-incident-connect"><span><span className="uai-steplabel">Step 1</span>Connect your tools</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <div className="uai-connect-list uai-connect-fill uai-connect-list--tight uai-connect-list--nolines">
            <p className="uai-subh">Required</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/V3UY3aFtaYLn-mrg/images/icons/48/datadoghq.com.png?fit=max&auto=format&n=V3UY3aFtaYLn-mrg&q=85&s=64d250e9d7f697dc6b5251769effd9fb" alt="Datadog" title="Datadog" noZoom width="48" height="48" data-path="images/icons/48/datadoghq.com.png" /><img src="https://mintcdn.com/usefulai/5xfT_ObZX_-BobJd/images/icons/48/grafana.com.png?fit=max&auto=format&n=5xfT_ObZX_-BobJd&q=85&s=17bdc20f270ab7b6fc04976ecb6b9c05" alt="Grafana" title="Grafana" noZoom width="48" height="48" data-path="images/icons/48/grafana.com.png" />Observability</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> alerts, logs, traces, dashboards, service health, and the incident time window.</p>
              </div>
            </div>

            <p className="uai-subh">Recommended</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/82PG1Up2qz4DPkMj/images/icons/48/github.com.png?fit=max&auto=format&n=82PG1Up2qz4DPkMj&q=85&s=428c02db7ed3f5dc78be2e665f3142c1" alt="GitHub" title="GitHub" noZoom width="48" height="48" data-path="images/icons/48/github.com.png" /><img src="https://mintcdn.com/usefulai/uuQvup7PYSSgULe9/images/icons/48/gitlab.com.png?fit=max&auto=format&n=uuQvup7PYSSgULe9&q=85&s=c12b6d923e13e6bd18e777ebaf61c031" alt="GitLab" title="GitLab" noZoom width="48" height="48" data-path="images/icons/48/gitlab.com.png" />Code repo</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> recent deployments, commits, runbooks, ownership, and relevant code paths.</p>
              </div>
            </div>

            <p className="uai-subh">Optional</p>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/-BdB1T4cTAq9nNj4/images/icons/48/slack.com.png?fit=max&auto=format&n=-BdB1T4cTAq9nNj4&q=85&s=80f705a24524a002fdc059299d494a6b" alt="Slack" title="Slack" noZoom width="48" height="48" data-path="images/icons/48/slack.com.png" /><img src="https://mintcdn.com/usefulai/AHrz0Wwy4lVZj5MG/images/icons/48/teams.microsoft.com.png?fit=max&auto=format&n=AHrz0Wwy4lVZj5MG&q=85&s=82b2bde2aca7704a34aa28bc3b17e4b5" alt="Microsoft Teams" title="Microsoft Teams" noZoom width="48" height="48" data-path="images/icons/48/teams.microsoft.com.png" />Chat</span>

              <div>
                <p className="uai-connect-rw"><span>Reads</span> incident-channel decisions and timestamps.</p>
                <p className="uai-connect-rw"><span>Writes</span> concise evidence updates for the incident lead to review.</p>
              </div>
            </div>

            <div className="uai-connect-row--pill">
              <span className="uai-connect-pill uai-connect-pill--stack uai-connect-pill--sm uai-connect-pill--plain"><img src="https://mintcdn.com/usefulai/ri8jp4LyuU5sCXj0/images/icons/48/jira.atlassian.com.png?fit=max&auto=format&n=ri8jp4LyuU5sCXj0&q=85&s=a672f72effdf4c41711097b276e4642a" alt="Jira" title="Jira" noZoom width="48" height="48" data-path="images/icons/48/jira.atlassian.com.png" /><img src="https://mintcdn.com/usefulai/hy16G83xN3DfF0qA/images/icons/48/linear.app.png?fit=max&auto=format&n=hy16G83xN3DfF0qA&q=85&s=e2533d11149de9e50153045ffda61093" alt="Linear" title="Linear" noZoom width="48" height="48" data-path="images/icons/48/linear.app.png" />Issues</span>

              <div>
                <p className="uai-connect-rw"><span>Writes</span> approved remediation and prevention follow-ups after the incident.</p>
              </div>
            </div>
          </div>

          <p className="uai-connect-foot">Export the relevant logs, deploy history, and incident chat for the defined time window. Do not give the agent unrestricted production action; its default role here is evidence and coordination.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-incident-configure" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-incident-configure"><span><span className="uai-steplabel">Step 2</span>Build the workflow</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p>Have the affected service, start time, impact, incident channel, dashboard links, deployment history, runbooks, and a named incident lead who decides actions.</p>

          ```text Setup prompt theme={null}
          Help me build an incident-investigation workflow.

          When an incident is declared, maintain an evidence-backed timeline and support
          the incident lead. Never change production or communicate externally.

          1. Ask for affected services, impact, start time, known symptoms, incident lead,
             evidence window, dashboards, deployments, and runbooks.
          2. Collect alerts, logs, traces, deploy events, and decisions with exact timestamps
             and links; keep observed facts separate from hypotheses.
          3. Correlate the first symptoms with recent changes and the relevant code paths.
          4. Maintain ranked hypotheses with supporting and contradicting evidence, and
             state the next observation that would distinguish them.
          5. Update a concise timeline and surface material changes to the incident lead.
          6. After resolution, draft the impact summary, root-cause evidence, and follow-ups.
          7. Test the workflow on three past incidents before enabling it live.
          ```

          <p className="uai-subh">What good looks like</p>
          <p>The timeline should use exact timestamps and source links, hypotheses should never be reported as facts, evidence should stay within the incident scope, and follow-ups should map to observed failure modes.</p>
        </div>
      </div>

      <div className="uai-itemcard-details">
        <input type="checkbox" id="eng-incident-activate" className="uai-itemcard-details-toggle" />

        <label htmlFor="eng-incident-activate"><span><span className="uai-steplabel">Step 3</span>Turn it on</span><span className="uai-itemcard-details-chevron" /></label>

        <div className="uai-itemcard-details-body">
          <p className="uai-subh">Choose your trigger</p>
          <p>Run when an incident record is created with an affected service, lead, and time window. Exclude low-priority alerts and automated flapping unless a human declares an incident.</p>
          <p className="uai-subh">What runs without you</p>
          <p>Evidence collection can run automatically from the moment an incident is declared - that is the point of the workflow. Remediation and every external or company-wide message stay with the incident lead, permanently. After each incident, spend five minutes on what the agent missed or mis-linked; that review is what makes the next timeline trustworthy.</p>
          <p className="uai-pair">Pairs well with <a href="#investigate-bugs">investigate bugs</a> and <a href="#update-documentation">update documentation</a> - the incident evidence pack becomes the bug reproduction, and the postmortem becomes the runbook update.</p>
        </div>
      </div>
    </div>
  </div>
</div>

## How to choose

* Start with **investigate bugs** or **generate tests** if you want proof quickly - both are bounded, and the result is verifiable the same day.
* **Shipping features weekly?** **Implement features** pays off most once the agent knows your repository rules; add **review pull requests** to protect the other side of the diff.
* **New to the codebase, or growing the team?** **Understand codebases** and **update documentation** turn every question into a durable artifact.
* **Own production?** **Investigate incidents** assembles evidence while responders respond, and **refactor code safely** is for the debt you keep deferring - scoped, staged, never during an incident.

## What didn't make the list (yet)

Two engineering categories are marketed heavily and deliberately missing here:

**Autonomous "AI software engineers"** - agents that take a ticket to production without review - are the loudest promise in the category and absent from every workflow above by design. The working pattern is agent-drafts, engineer-reviews: an agent can earn branch and draft-PR autonomy, never merge or deploy. Deployment and production remediation stay excluded until approval gates are environment-specific and tested.

**Unattended auto-merge** - bots that merge dependency updates or AI fixes the moment CI turns green - is excluded on purpose. Green checks measure what your tests cover, not what changed; the review and refactor workflows above exist precisely because "passing" and "safe" are different claims.

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="What software engineering tasks are best suited to AI?">
    AI works best on bounded repository tasks with a clear result and executable checks: implementing a scoped feature, reproducing a bug, adding tests, reviewing a pull request, explaining unfamiliar code, and updating documentation alongside a change.
  </Accordion>

  <Accordion title="Can an AI coding agent work on an existing codebase?">
    Yes. Connect it to the repository and provide the project instructions, setup commands, architecture notes, and test commands. The agent should inspect existing patterns before editing and report the files and checks it changed or ran.
  </Accordion>

  <Accordion title="How should teams verify AI-generated code?">
    Require the smallest relevant tests, lint and type checks, a diff review, and a direct verification of the requested behavior. For risky changes, add focused regression tests and use the same CI gates as any human-authored pull request.
  </Accordion>

  <Accordion title="Will AI replace software engineers?">
    These workflows shift time from searching, scaffolding, and repetitive edits toward problem definition, design, verification, and review. They are most valuable when an engineer remains responsible for scope and correctness.
  </Accordion>
</AccordionGroup>
