RepoGuard is an open-source architecture guardian for AI-assisted codebases. AI coding assistants (Cursor, Copilot, Claude Code) write 300 lines in seconds, but often bypass service layers, duplicate helpers, and scatter ": any" types. RepoGuard scans your repository stack, auto-generates strictcursorrules, CLAUDE.md &windsurfrules, and audits PRs in real-time with an instant Architectural Health Score (A+ to F). Zero dependencies, 100% free CLI on npm.
Hi Product Hunt! 👋 I'm Taylor, creator of RepoGuard.
Like many developers here, I rely on AI coding editors (Cursor, Copilot, Claude Code) to build faster. But after a few months on a medium-sized project, we noticed an alarming trend: "AI code rot".
The AI models were querying Prisma/ORM directly inside React components, re-implementing existing helpers with zero reuse, and sprinkling ": any" everywhere to pass quick compilation. Reviewing 800-line AI PRs became painful.
We built RepoGuard to automate architectural discipline without tedious manual rule writing:
- Runs in your terminal with zero config: `npx repoguard-rules init`
- Instantly generates tailored .cursorrules, CLAUDE.md & .windsurfrules
- Audits your entire codebase for an Architectural Health Score: `npx repoguard-rules audit`
- Pre-commit hook & GitHub Action for inline PR drift blocking
The local CLI is completely free, open-source (MIT), and live on npm.
Would love to hear your thoughts, feedback, and what architectural rules or frameworks you'd like to see next! 🛡️