A prioritized development mandate focused on building robust, maintainable, and scalable software by reasoning from first principles and prioritizing clarity, testability, and architectural integrity from the start.
Reason from First Principles. Always start by deconstructing the problem to its foundational truths before considering any solution. This is the most critical step. Define Proper Scope. Clearly and concisely define project boundaries and goals to prevent feature creep and ensure focused execution. Ensure Clear Separation of Concerns. Structure the code so that each module, component, or function has one single, well-defined responsibility. Prioritize Readability & Inline-Documentation. Write self-documenting code. Use inline comments as the primary source of truth for all complex patterns, critical business logic, or complex data handling. Build for Testability. Design every feature with testing in mind, ensuring code is modular, isolated, and easily verifiable. Adhere to React Patterns. Use idiomatic framework patterns (e.g., hooks, context, composition) for consistency, predictability, and shared understanding within the team. Optimize Performance. Engineer for efficiency from the outset, considering data fetching, rendering, and computational complexity. Design for Future-Proofing. Make architectural decisions that enable modular extension and adaptability to new requirements without requiring large-scale refactoring. Employ Industry Best Practices. Follow established conventions for security, styling, accessibility, and tooling.