The moves that matter
| Move | Think of it as | What actually happens |
|---|---|---|
| Name the exact target | Pointing at one brick, not the wall | Say the selector, slide, cell, function or sentence. "Change .card padding to 16px", never "tidy the styling". |
| Lock everything else | Tape over the rest of the canvas | "Everything else stays byte-identical: no reformatting, no improvements, no renaming." |
| Edit in place | A patch, not a reprint | Claude changes the original file with targeted find-and-replace edits instead of rebuilding it from scratch. |
| Ask, don't guess | Stop at the fork | "If anything is ambiguous, stop and ask." Guesses are where drift starts. |
| Demand proof | Show me the receipt | A diff against the original, plus a line confirming nothing outside the scope changed. |
The edit contract (paste it, or keep it in a skill)
EDIT MODE: surgical, not generative.
- Change ONLY: [exact element / slide / cell / selector].
- Everything else stays byte-identical. No reformatting,
no "improvements", no renaming.
- Edit the original file in place. Never rebuild it.
- If anything is ambiguous, stop and ask. Do not guess.
- When done: show a diff vs. the original and confirm
nothing outside scope changed.
By file type: where each one drifts
| File | Ask for | Watch for |
|---|---|---|
| HTML / CSS | Targeted replace edits and a diff; name the selector or token | Whole-file rewrites, reformatted markup, renamed classes |
| PPTX / DOCX | Edit the underlying XML in place; render before and after to images and compare | Fonts, spacing, theme colours, master layouts |
| XLSX | List the exact cells; leave formulas alone; recalculate after | Formulas turned into values, formats, sheet order |
| Images / SVG | Code with explicit numbers: sizes, hex colours, coordinates | Redrawn shapes; "make it pop" is a wish, numbers are a spec |
| Markdown / docs | Quote the exact sentence or section, and the new text | Tidied wording elsewhere, merged sections |
| Code / JSON | Name the function or key; run the syntax check or tests | Refactors you didn't ask for, reordered keys |
Safe to try
None of these can damage your file. They only make drift visible before it lands.
| Safe move | Why it cannot hurt |
|---|---|
| "Show me the diff before you save" | Nothing is written until you've seen exactly what changes. |
| Keep a copy of the original | Any edit can be undone by putting the copy back. |
| Render before and after | For anything visual, side-by-side images catch what a diff can't show. |
| One change per request | A small diff is easy to check; ten changes at once hide the eleventh. |
The everyday loop
Name the one thing, paste the contract, read the diff, accept or say "undo that part". Repeat for the next change. The checking step is what makes it trustworthy: the same request can come back slightly different twice, but a diff tells you every time.
Practice, start to finish
- Copy the file you'll change, so the original is safe. You now have two identical files.
- Ask: "Edit mode: surgical. Change only the heading colour in
.titleto #0d3b66. Show the diff first." Claude replies with a short diff: one line removed, one added. - Read the diff. If anything else appears in it, say "only the colour; revert the rest".
- Tell Claude to save, then open the file. The heading is the new colour; everything else looks exactly as before.
When you make a mess
| Situation | Way out | What it does |
|---|---|---|
| The diff shows extra changes | "Revert everything except [the target]." | Puts the untouched parts back exactly. |
| Formatting shifted across the file | Restore your copy and ask again with the contract. | Starts from the clean original. |
| A slide or doc looks off but the text is right | Render before/after and point at the difference. | Turns "something's wrong" into a specific fix. |
Leave this alone: asking Claude to "clean up", "improve" or "regenerate" a file you care about. That's an invitation to rewrite everything, and it's how one-line changes become fifty.
Words you will see
Deliberately not here
Temperature and API settings (the chat doesn't expose them, and checking beats tuning), version control tools like git (a saved copy does the job for one file), and building your own edit tooling. Put the contract in a skill and you'll rarely need more.
Deterministic edits with Claude · two-page primer · October 13, 2026 · Rich Price