# Safe Edit

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

- Skill: `davidondrej/safe-edit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add davidondrej/safe-edit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/davidondrej/safe-edit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: David Ondrej (https://skillmd.com/u/davidondrej)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/davidondrej/safe-edit

---


# 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.


