Safe Edit

Use when making code or documentation changes in a workspace with multiple human or agent contributors.

David Ondrej 6503d57 672 B Updated

File contents

Safe Edit

Use this skill to avoid overwriting someone else's work.

Steps

  1. Check whether the workspace is a git repository.
  2. If it is, inspect git status --short.
  3. Read files before editing them.
  4. Keep edits scoped to the requested task.
  5. Avoid broad formatting changes unless the task requires them.
  6. Never delete or revert unrelated changes.
  7. After editing, run the smallest useful validation command.

Notes

If unrelated local changes affect the same file, work with them instead of reverting them.

davidondrej/monorepo/tree/main/_shared/skills/safe-edit commit 6503d57c70

Frequently asked questions

npx skillmds@latest add davidondrej/safe-edit