What problem does it solve?
Provide safety guardrails for code changes in the RevealUI monorepo to prevent credential exposure, enforce import boundaries, ensure code quality, and verify work before completion.
Core Features & Use Cases
- Protected Files: Prohibits editing of sensitive files like .env*, lock files, and certain database schema files without proper planning.
- Protected Paths: Prevents edits in system directories and credential stores.
- Import Boundaries: Restricts allowed module usage across repository boundaries to minimize risk.
- Code Quality: Enforces no use of any, avoids console in production, forbids hardcoded secrets, and recommends secure randomness.
- Static Analysis & Governance: Prefers AST-based checks over regex and implements validation steps after edits and before marking work done.
- Known Limitations: Documents advisory nature and when to explicitly invoke safety checks.
Quick Start
Follow the safety rules and enforce guardrails on the next code change before merging.