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

# Draft, Validate, Rewrite

> Have Claude write a message, check it with ZeroDrift, fix it, and check it again until it passes.

**Install first.** These guides need the ZeroDrift plugin in Claude Code, which is in preview. Install it and sign in on the [Claude Plugin](https://docs.zerodrift.com/claude-plugin.md) page, then run `/zerodrift:status` to confirm.

Have Claude draft a message, validate it, rewrite the flagged parts, and validate again until the result is `Passed`. You can ask for the whole loop in one prompt.

ZeroDrift detects. It does not write. Claude does the rewriting, and ZeroDrift checks each version.

## Prompts

```text theme={null}
Write an email to a client about our new fund and make it compliant. Validate it with ZeroDrift, rewrite anything flagged, and validate again until it passes.
```

```text theme={null}
Draft a LinkedIn post announcing our Q4 performance. Check it with ZeroDrift and fix what it flags. Show me each version and each result.
```

A single prompt like the first one is enough. Say that you want it validated and fixed. Without that, Claude validates once and stops.

## The loop

**1. Draft**

Claude writes the message.

**2. Validate**

Claude sends the draft to ZeroDrift. The result is `Passed`, `Warned`, or a do-not-send verdict shown as `Flagged`, then each flagged line with its quote and the rules it breaks.

**3. Rewrite**

Claude rewrites the flagged lines to meet the rules listed. This is Claude's wording. ZeroDrift has not checked it.

**4. Validate again**

Claude validates the new version. Repeat until the result shows `Passed`.

## Example: a fund announcement

The prompt:

```text theme={null}
Write an email to a client about our new fund and make it compliant. Validate it with ZeroDrift, rewrite anything flagged, and validate again until it passes.
```

**Version 1.** Claude's first draft:

```text theme={null}
Hi Sam,

We are launching the Growth Income Fund this month. It is guaranteed to outperform the market, and spots are limited, so let me know by Friday.

Best,
Alex
```

ZeroDrift's result:

```text theme={null}
ZeroDrift: Flagged — fix before sending (3 issues on 1 line: 2 do not send, 1 caution)
```

Line 3: "It is guaranteed to outperform the market, and spots are limited, so let me know by Friday."

| Severity | Rule | Policy |
| - | - | - |
| Do not send | Misleading performance claim | US Securities & Investment Communications |
| Do not send | Performance disclaimer missing | US Securities & Investment Communications |
| Caution | Urgency pressure tactics | US Marketing Channel Mechanics |

**Version 2.** Claude removes the guarantee and the pressure, and adds the disclosure:

```text theme={null}
Hi Sam,

We are launching the Growth Income Fund this month. It aims to deliver income and growth over the long term. Past performance does not guarantee future results, and you may lose money. I would be glad to walk you through the fund and its risks if that is useful.

Best,
Alex
```

```text theme={null}
ZeroDrift: Passed — no issues found.
```

Claude wrote both versions. ZeroDrift only checked them. If version 2 had failed, Claude would revise again and re-check. This example is illustrative: your rules and wording will differ.

## When the plugin checks without being asked

Claude can run the ZeroDrift check on its own, without you invoking it:

* **Before Gmail and Slack sends.** In Claude Code, a send, reply, forward or draft in Gmail, and a send, draft or schedule in Slack, is checked before the action runs. A do-not-send verdict shows as `Blocked` and the action is stopped.
* **Other channels, at Claude's discretion.** For Outlook, Teams, Google Drive documents and public web content, the plugin's validate skill tells Claude to check before it sends or shares. Nothing is stopped automatically. If the result is flagged, Claude holds the content and tells you.

## Limits

* **Rate limit.** 50 requests per minute for a single validation.
* **One check per draft by default.** Left alone, Claude validates once and does not revise or recheck unless you ask. Ask for the loop, as in the prompts above.
* **Rewritten text is Claude's.** ZeroDrift flags and never rewrites. Passing means the final text, as sent to ZeroDrift, passed your active rules at that time.
* **The loop can take several rounds.** There is no fixed number. Ask Claude to stop after a number of rounds you choose and show you the last result if it still does not pass.
* **Review before you send.** A pass is not a substitute for your own review.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.