home/categories/code-quality/hkuds-openspace-showcase-skills-idempotent-file-replace-skill-md
code-qualitytesting-security

idempotent-file-replace

Read-then-diff before writing a file to ensure the write is skipped when the content already matches, preventing unnecessary modifications and downstream side effects.

HKUDS
maintainer
HKUDS
更新於 3/24/2026
星標
4934
分支
588
quick start

Installation and usage

Read-then-diff before writing a file to ensure the write is skipped when the content already matches, preventing unnecessary modifications and downstream side effects.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use idempotent-file-replace