Skip to content

Commit 6dcad20

Browse files
committed
chore(docs): update .cursorrules
1 parent f0cc71e commit 6dcad20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.cursorrules

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Before any work, read:
1616

1717
- User intent unclear or multiple valid approaches exist
1818
- Breaking changes or core architecture modifications
19-
- Creating new files/modules not explicitly requested
19+
- Creating ANY new files/modules not explicitly requested (including docs, notes, examples)
2020
- Large refactors (ALWAYS ask strategy questions first)
2121
- Architectural decisions: HashMap keys, error handling, etc.
2222

@@ -149,8 +149,11 @@ STOP if you think:
149149
- "I can refactor later if wrong"
150150
- "This is a minor detail"
151151
- "I'll create helpful documentation"
152+
- "I'll write a summary file"
153+
- "Let me document this implementation"
152154

153155
Self-check: "Could this be done differently?" → Ask user
156+
Self-check: "Am I creating a file user didn't request?" → STOP
154157

155158
### Code Search: MUST use ast-grep for .rs files
156159

@@ -180,7 +183,7 @@ Use grep/rg ONLY for: multiple file types, intentionally searching comments, non
180183
- Don't change: Public APIs (breaking)
181184
- Don't add: Dependencies without discussion
182185
- Don't remove: Tests
183-
- Don't create: Files unless explicitly requested
186+
- Don't create: Files unless explicitly requested (NO docs, notes, examples, summaries)
184187

185188
## Design Rationale
186189

0 commit comments

Comments
 (0)