Office, Feishu, DingTalk, WeChat

When a coding agent edits Office files, always save a new copy

The scene

You need Word, Excel, or PowerPoint files edited, possibly in bulk, and you do not want the originals overwritten.

Tools involved

Claude CodeOfficeCLIReproducible in ChinaEvidence: Second-hand / directory record

What they did

  1. Name the source files and the new filenames, and forbid overwriting the originals.
  2. State the edits and what “done” looks like, such as consistent terms or an updated column.
  3. Have it list every change, then open the new files in desktop Office and check the layout.
  4. Charts and master slides are easy to break; circulate the files only after that check.

Copyable prompt

Edit the Office files in [folder] according to [instructions]. Save every result as a new file with [naming rule]. Do not overwrite originals. When you finish, list each change you made.

Rewritten here for you to try; not a verbatim excerpt from elsewhere. What it asks:Point it at a folder, the edits, and a naming rule. It must save new copies and list the changes.

Things to watch

Public discussion described a working tool; this site did not run a comparison test. Complex layout can break, so open the files in desktop Office. Generally reproducible in China if the files and a coding agent are available.

Claude Code or a similar coding agent, plus a tool that can handle Office files.

Reusable templates

Save a new file; leave the original as it is

Editing Word, Excel, PowerPoint, or another existing document

Make the changes I asked for, but save the result as a new file with the name I give you. Do not overwrite the original, and list every change when you are done.