Provides React/Next.js component guidelines focusing on testability, colocation, and directory structure. Use when implementing components, refactoring code, organizing project structure, extracting conditional branches, or ensuring code quality standards.
Guidelines for React/Next.js development focusing on testability and proper architecture. Each guideline file contains principles, code examples, and anti-patterns to avoid.
When: Writing "use client" components, useEffect, or event handlers Read: testability.md
Key topics:
When: Deciding whether to use useEffect, managing dependencies, or avoiding unnecessary re-renders Read: useeffect-guidelines.md
Key topics:
When: Creating files, functions, or organizing code structure Read: architecture.md
Key topics:
When: Creating or updating test code during Phase 2 (Testing & Stories) Read: test-guidelines.md
Key topics:
utils/, api/, services/, lib/, helpers/ directories