--- name: ms-file-write description: Use this skill when writing any file. disable-model-invocation: false --- # ms-file-write Write files so the write is provable and reversible. ## Rules 1. Write to a temp file and rename for atomic replacement of an existing file. 2. Verify the write: re-read or checksum before claiming success. 3. Never overwrite a file that carries identity or history (seat records, run records, logs). They are append-only or write-once for a reason. 4. No secrets in written files. Ever. 5. Match the file's existing style. Do not reformat regions you did not touch.