Back to browse
GitHub Repository

AI automation offer validation kit for people paying for tools but still seeing deposits

3 starsHTML

A 60-line PreToolUse hook that stops Claude Code from editing your .env

by gaiinmaster·Jul 27, 2026·3 points·0 comments

AI Analysis

●●SolidSolve My ProblemCozy

Sixty-line hook stops Claude Code from editing .env files and breaking working code.

Strengths
  • Uses negative constraints ('Do not touch') which prove more effective than positive requests.
  • Includes specific prompt patterns for impact analysis and test verification before merging.
  • Works across multiple agents via standard config files like CLAUDE.md and .cursorrules.
Weaknesses
  • Relies entirely on model adherence to instructions rather than enforced technical guardrails.
  • Basic file protection logic that could be implemented as a simple pre-commit hook script.
Target Audience

Developers using Claude Code, Cursor, or GitHub Copilot.

Similar To

Pre-commit · Husky · Cursor Rules

Similar Projects

Developer Tools●●Solid

Fixing Claude Code's amnesia with persistent memory

Scatter-gather retrieval with prompt caching beats naive vector search for Claude Code memory.

Big BrainSolve My Problem
NBenkovich
133mo ago
AI/ML●●●Banger

A hook that stops Claude Code from re-trying fixes that failed

Hard-blocks AI agents from re-applying failed fixes across session restarts.

Big BrainSolve My Problem
anlor1002-alt
2010d ago