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

# Recipes

> Step-by-step guides that use Trunk's API, webhooks and MCP server to fix flaky tests, guard your CI, and keep teams informed.

Each recipe solves one problem end to end, with the calls, code and configuration it needs. Some run as a script or a CI step, some as a small service, and some hand the work to a coding agent such as Cursor or Claude Code.

## Fix

> [card] [Fix Flaky Tests](https://docs.trunk.io/flaky-tests/recipes/autofix-flaky-tests.md)
>
> Give a coding agent the context it needs to fix a flaky test.

> [card] [Autofix CI Failures](https://docs.trunk.io/flaky-tests/recipes/autofix-ci-failures.md)
>
> Have a coding agent investigate a red CI run and open a fix.

> [card] [Tighten Test Timeouts](https://docs.trunk.io/flaky-tests/recipes/tighten-test-timeouts.md)
>
> Bring inflated timeouts down to fit each test's passing runtime.

## Guard

> [card] [Evaluate Release Branch Test Health](https://docs.trunk.io/flaky-tests/recipes/release-branch-test-health.md)
>
> Report the failing tests on a release branch before you cut a release.

> [card] [Never Quarantine Tests in Protected Paths](https://docs.trunk.io/flaky-tests/recipes/never-quarantine-protected-paths.md)
>
> Keep every test under the paths you choose out of quarantine.

## Notice

> [card] [Explain a Failed Pull Request](https://docs.trunk.io/flaky-tests/recipes/explain-failed-pr-tests.md)
>
> Tell the author which failed tests are known flaky and which are probably real.

> [card] [Route Flaky Tests to Their Owners](https://docs.trunk.io/flaky-tests/recipes/route-flaky-tests-to-owners.md)
>
> File a ticket for a newly flaky test's owners and tell their team in Slack.

> [card] [Alert When a Test Escalates](https://docs.trunk.io/flaky-tests/recipes/alert-on-test-escalation.md)
>
> Send a Slack alert when a test gets worse, not only when it's first flagged.

> [card] [Post a Weekly Flaky Test Digest](https://docs.trunk.io/flaky-tests/recipes/weekly-triage-digest.md)
>
> Post the tests that changed status this week to Slack, grouped by owner.
