Development
Hook
Hooks
What encoding-guard runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Install
$ npx -y skills add ymonster/claude_encoding_guard --agent claude-codeShips with encoding-guard. Installing the plugin gets these hooks.
What fires, and when
PreToolUse
- Runs pre.
PostToolUse
- Runs post.
Stop
- Runs restore-all.
SessionStart
Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.
- Runs restore-all.
SessionEnd
- Runs restore-all.
Where it lives
- hooks/encoding_guard.pyGitHub
Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.
Ships withencoding-guard
Preserve non-UTF-8 file encodings and line endings when Claude Code edits your files.
Get the whole plugin, auto-invoked

