Post-Edit Guard
Post-edit quality guard, triggered automatically after every Write/Edit on .ts/.tsx files. Checks file placement, naming conventions, design system compliance, and code simplification.
Strengths
- Automatic trigger via PostToolUse hook, zero friction, always active
- Loads project rules from .claude/post-edit-guard.md, project-specific conventions
- Fixes directly rather than just reporting, no additional friction
Limitations
- Can be intrusive on legacy codebases with undocumented conventions
- Requires a well-configured .claude/post-edit-guard.md file to be useful
Best for
- Projects with strict naming and file placement conventions
- AI-augmented teams where generated code must comply with a design system
- Onboarding new developers learning project conventions