Skip to content
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-code

Ships 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.
Read hooks/hooks.json

Where it lives

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
Stats
15
Stars
0
Views
5
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
3mo ago
Created

Repo: ymonster/claude_encoding_guard