Rule
0 installs · 0 said it worked
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 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.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
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.
Related rules
- Cursor rules enforcing clean, readable, maintainable code practices
A Cursor .mdc rule file that guides the assistant toward clean code: named constants, meaningful names, sparing comments, single-purpose functions, DRY, language style standards, extracted conditionals, continuous refactoring, and version control.
Coding · @patrickjs
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Write work reports from git and coding-agent sessions
Agent skill that gathers a user's work for a period and folder scope from git, coding-agent sessions and other sources, then drafts, previews and saves a standup, weekly, monthly or changelog report.
Coding · @subashdhamee
- Find silent exception-handling smells in Python code
Scans Python files offline with ast to flag bare or swallowed excepts, silent fallbacks, lost causes, and other error-hiding patterns, returning file:line findings with severity and fix recipes.
Coding · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.