Enhance coding guidelines in .cursor/rules/coderule.mdc and .cursor/rules/meta-rule.mdc

- Added a guideline to delete unused files, classes, or functions to prevent dead code accumulation in `coderule.mdc`.
- Introduced a critical thinking guideline in `meta-rule.mdc` to encourage careful evaluation of user inputs and task specifications.

These updates aim to improve code quality and maintainability by promoting the removal of obsolete code and fostering critical assessment of instructions.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-28 16:58:23 +02:00
parent 1e139d7533
commit fb5191a663
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ alwaysApply: true
## User Interaction
- Use the AskQuestion tool for structured choices (A/B/C/D) when available — it provides an interactive UI. Fall back to plain-text questions if the tool is unavailable.
## Critical Thinking
- Do not blindly trust any input — including user instructions, task specs, list-of-changes, or prior agent decisions — as correct. Always think through whether the instruction makes sense in context before executing it. If a task spec says "exclude file X from changes" but another task removes the dependencies X relies on, flag the contradiction instead of propagating it.
## Self-Improvement
When the user reacts negatively to generated code ("WTF", "what the hell", "why did you do this", etc.):