# Rewrite a Paragraph with an AI Agent and Keep Its Facts

> Canonical: https://skillalmanac.com/learn/rewrite-a-paragraph-with-an-ai-agent | Updated: 2026-11-26 | Index status: index-eligible

Rewrite a paragraph with an AI agent while keeping every claim, number, name and date, using a fact list and a separate compare-back check.

## Facts

- 2026-11-26: Anthropic's prompt engineering guidance says to define success criteria and tests before refining a draft prompt (https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview)
- 2026-11-26: Anthropic's prompting page recommends 3 to 5 examples, each wrapped in example tags (https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices)
- 2026-11-26: The same page recommends XML tags with consistent names to separate instructions, context and input (https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices)
- 2026-11-26: The same page says that giving the reason behind an instruction helps the model generalize to new cases (https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices)

To rewrite a paragraph with an AI agent and keep its meaning, give the agent the paragraph, a numbered list of every fact it must keep, and a rule that it may change only wording. Then run a separate compare-back pass that checks the new paragraph against the original claim by claim before you accept it.

## Steps

1. **Freeze the facts first.** Before you write any prompt, list every claim, number, name, date and quoted term in the original paragraph, one per line. Anything left off this list can be lost in the rewrite, so read the list against the original once more.

2. **Write the rewrite prompt in labeled sections.** Anthropic's prompting guidance recommends wrapping each kind of content in its own tag, such as `<instructions>`, `<context>` and `<input>`, and using consistent tag names across prompts. This template adds its own `<facts>` tag for the fact list:

```text
<instructions>
Rewrite the paragraph in <input>. Change wording and sentence structure only.
Keep every item in <facts> exactly as written, including numbers, names and dates.
Do not add claims, certainty words or examples. Return only the rewritten paragraph.
Keep the paragraph unchanged in meaning because it is going into a filing, where an added figure is an error.
</instructions>
<facts>
1. ...
2. ...
</facts>
<input>
...the original paragraph...
</input>
```

The reason sentence in the instructions is deliberate. The guidance notes that a stated reason helps the model apply a rule to cases the list does not name.

3. **Run the compare-back pass in a new request.** Send the original paragraph and the rewrite together, with no earlier conversation. Ask the agent to list each original claim and mark it as kept, changed or missing, and then to list any claim in the rewrite that does not appear in the original.

4. **Decide from the report.** Accept the rewrite only when every fact is marked kept and the added-claims list is empty. If anything is changed or missing, rerun step 2 with the failing items placed in `<facts>`, rather than asking the agent to "try again."

5. **Check the numbers yourself.** Count the digits, names and dates in both versions. The compare-back report is a second check, and it does not replace your own count.

**Check that it worked:** the rewrite reads differently from the original, every numbered fact appears with the same value, and the compare-back report lists zero changed or missing items.

## Pitfalls

- **Dropped qualifiers.** Words like "may," "about" and "at least" often disappear during rewrites. Add each hedge to the facts list as its own item, so the compare-back pass has a specific line to check.
- **Silent number changes.** "3 to 5" can become "several." Look for words that replace a figure, and keep the figure in `<facts>`.
- **Merged or split claims.** A sentence with two conditions can come back as two sentences that drop one condition. Split the original into numbered claims before you rewrite.
- **A checker that agrees with the rewriter.** A check run in the same conversation may be swayed by the earlier conversation. Use a new request for the compare-back pass.
- **Added certainty.** Rewrites often introduce "shows," "proves" or "clearly." Name these words in the instructions and search the output for them.

## When to use a skill instead

Ad-hoc prompting is enough for one paragraph you will read closely yourself. A reusable skill gives you the same output format each time you rewrite many paragraphs: keep every claim, number, name and date, and report what changed. A repeatable format is not a proven improvement. With [paragraph-meaning-preserving-rewrite](/skills/skill-almanac/paragraph-meaning-preserving-rewrite), you hand over a single paragraph and get back new phrasing plus a table that tallies the claims before and after the edit. The skill's recorded result is NO_LIFT (measured 2026-11-23), with a Platform Score of 52. The run used 12 tasks and 12 paired runs with and without the skill. The pass-rate difference was -4.6 points, with a 95% confidence interval of -16.0 to +6.8. Assertions passed were 69 of 78 with the skill and 73 of 78 without. The interval includes zero, so the data do not show a reliable gain. The full evidence is on the skill page. The table is the skill's own report, produced in the same run as the rewrite. It does not independently check the rewrite, so you still need a separate check (step 3) and your own count (step 5). If you only need a style pass with no fact check, no related skill applies, and the prompt structure above is enough.

## FAQ

**Why run the fact check as a separate request?**
Anthropic's prompting page describes review as its own step, with each step a separate API call that you can log, evaluate or branch from. A fresh request also means the checker sees only the original and the rewrite.

**Why should the prompt include a reason for each rule?**
Anthropic's prompting guidance says that a reason gives the model more context about your goal, so it can apply the rule to cases your list does not cover.

**Why put the facts in their own tag?**
Anthropic's prompting page recommends wrapping each kind of content in its own tag, which reduces misinterpretation when a prompt mixes instructions and input. Keeping `<facts>` separate from `<input>` also lets the compare-back pass check each fact by name.

## Related skills

- [paragraph-meaning-preserving-rewrite](https://skillalmanac.com/skills/skill-almanac/paragraph-meaning-preserving-rewrite.md): Platform Score 52/100

## Related guides

- [Format SQL with an AI agent without changing its meaning](https://skillalmanac.com/learn/format-sql-with-an-ai-agent.md)
- [How to Use an AI Agent on a First Task You Can Check](https://skillalmanac.com/learn/how-to-use-an-ai-agent.md)
- [Check a Resume for ATS Problems With an AI Agent](https://skillalmanac.com/learn/check-a-resume-for-ats-with-an-ai-agent.md)
- [No-code AI agent builders: what to check first](https://skillalmanac.com/learn/no-code-ai-agent-builders-what-to-check.md)
- [How to Use AI at Work: Pick Tasks Where a Check Is Cheap](https://skillalmanac.com/learn/how-to-use-ai-at-work.md)
- [How to Use AI in Excel: Formulas Versus Whole-Sheet Analysis](https://skillalmanac.com/learn/how-to-use-ai-in-excel.md)

## Sources

- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Platform Scores report our assessment under a published method. They are not a safety guarantee.
