cursor-solo-dev-template / rules
Amrobillions/cursor-solo-dev-template/.cursor/rules/01-code-style.mdc
Code style. Apply when writing or reviewing any code file.
Cursor rule0 starsChanged 7 months ago
--- description: Code style. Apply when writing or reviewing any code file. alwaysApply: true --- # Code Style Rules ## Hard limits - Max file size: 300 lines → split if exceeded - Max function size: 30 lines → split if exceeded - One function = one job only ## Naming - Meaningful names only. No: x, tmp, foo, data, stuff - Comment WHY not WHAT ## Error handling - Every external call (API, DB, file I/O) → must have error handling - Never swallow errors silently ## Forbidden - Hardcoded credentials or secrets - print/console.log in production paths (use logging) - TODO comments in code (use TASKS.md instead)
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

