optimize dry solid principles cursorrules prompt f
via PatrickJS/awesome-cursorrules
Apply DRY and SOLID principles to optimize code quality and maintainability.
What is optimize dry solid principles cursorrules prompt f?
This rule guides code optimization by integrating DRY (Don't Repeat Yourself) and SOLID principles into development workflows. Use it when refactoring code, designing new features, or improving existing architecture to ensure clean, maintainable, and scalable solutions.
- Enforce semantic naming and clear abstractions to reduce cognitive load
- Maintain consistency with existing architecture defined in pyproject.toml
- Include file context in code blocks with surrounding lines for precise modifications
- Request clarification before implementing when requirements are ambiguous
- Apply paradigm-specific best practices for code quality and maintainability
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
Communication and Problem-Solving:
Code Quality and Best Practices:
Paradigms and Principles:
Semantic Naming and Abstractions:
Platform Thinking:
Response Format:
Handling Uncertainty and Limitations:
When outputting code blocks, include a # or // file name comment prior to the block, with a few lines before and after the modification. This helps the user identify where to make changes.
Stick to the current architecture choices located in pyproject.toml unless the user suggests a new method or module.
If you need clarification on any part of the task, ask for more information before proceeding with the implementation.
Related rules
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.