Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding code optimization with DRY and SOLID principles

A Cursor rules file that steers the assistant toward DRY and SOLID-compliant optimization work, covering code quality, naming, response format, file-name comments on code blocks, sticking to pyproject.toml architecture, and asking for clarification when needed.

People use this for

  • cursor rules for dry solid code
  • cursor rules code optimization
  • python refactoring prompt with solid principles
  • ai assistant rules for clean code
Name
cursor-rules-guiding-code-optimization-with-dry-and-solid-princi
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-code-optimization-with-dry-and-solid-principles-f28c/export/mdc" -o .cursor/rules/cursor-rules-guiding-code-optimization-with-dry-and-solid-princi.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-code-optimization-with-dry-and-solid-princi.mdc
Manual install

Save cursor-rules-guiding-code-optimization-with-dry-and-solid-princi.mdc as .cursor/rules/cursor-rules-guiding-code-optimization-with-dry-and-solid-princi.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-code-optimization-with-dry-and-solid-princi.mdc for every project, then start a new session.

Rule


description: "Cursor rules for optimization development with DRY and SOLID principles integration." globs: */ alwaysApply: false

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.

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.