Skip to content
RCreddit.com·
Not on the current live radar

Claude keeps naming things after the mistakes I told it not to make. So I built a hook for it.

AI summary

A developer created a hook to prevent Claude from naming files based on past mistakes, like adding "no_ketchup" to a grilled cheese file name after being told not to include ketchup. The solution, called "ship-the-result," involves a SKILL.md file for rules and tests, a scanner script to flag six types of residue, and a PreToolUse hook. This hook runs the scanner on git commit, gh pr create, staged comments, test names, and new filenames, blocking the action and explaining why if a flag is hit. The developer notes that prompt rules fade, but regex does not, making this a more robust solution.

Why this one

This solution uniquely addresses the issue of LLM prompt rules fading over time by implementing a PreToolUse hook and regex-based scanning, unlike typical prompt engineering approaches.

Time & source

Times shown in UTC

Display time zone: UTC

Local time zone unavailable; showing UTC.

IngestedOffset at this time: UTC+0Sep 15, 2026, 03:01 UTC

Ingested
Sep 15, 2026, 03:01
Source type
Dev community

Full text isn't available here.

Read at source →
Source·reddit.com