| name | safe-edit |
| description | Use when making code or documentation changes in a workspace with multiple human or agent contributors. |
Safe Edit
Use this skill to avoid overwriting someone else's work.
Steps
- Check whether the workspace is a git repository.
- If it is, inspect
git status --short.
- Read files before editing them.
- Keep edits scoped to the requested task.
- Avoid broad formatting changes unless the task requires them.
- Never delete or revert unrelated changes.
- After editing, run the smallest useful validation command.
Notes
If unrelated local changes affect the same file, work with them instead of reverting them.