Skip to content

Instantly share code, notes, and snippets.

View firec0der's full-sized avatar

Ivan Stetsenko firec0der

  • Matosinhos, Kyiv
View GitHub Profile
@firec0der
firec0der / INSTALL.md
Last active April 23, 2026 12:05
Claude Code UserPromptSubmit hook — real-time English proofreader using Haiku. Displays corrections via systemMessage (visible to user, zero context tokens).

Installation

1. Save the script

mkdir -p ~/.claude/hooks
curl -o ~/.claude/hooks/english_check.py \
  https://gist.githubusercontent.com/firec0der/f8609b641ccbcd46522471d4b4810d64/raw/english_check.py
chmod +x ~/.claude/hooks/english_check.py
onSearchSuccess = (places) => {
const changeHeader = (num, callback) => {
const header = { formHeader: `We Found ${num} Local Caregivers` };
this.setState(
...(callback ? [header, callback] : [header])
);
};
Array.isArray(places) && (
places.reduceRight((acc, place, index) =>