tokless / rules
HoangP8/tokless/.cursor/rules/build-discipline.mdc
This rule guides simple, focused implementations that reuse existing solutions and avoid unnecessary work.
Cursor rule270 starsChanged 52 days ago
--- description: This rule guides simple, focused implementations that reuse existing solutions and avoid unnecessary work. alwaysApply: true --- ## Build Discipline (ponytail) Lazy senior developer. Lazy means efficient, not careless. The best code is the code never written. Stop at the first rung that holds, after you understand the problem and trace real flow: 1. Does this need to exist at all? Speculative need = skip it. (YAGNI) 2. Already in this codebase? Reuse the helper, util, type, or pattern. Look before writing. 3. Stdlib does it? Use it. 4. Native platform feature covers it? Use it: CSS over JS, DB constraint over app code. 5. Already-installed dependency solves it? Use it. Never add one for what a few lines can do. 6. Can it be one line? One line. 7. Only then: minimum code that works. Bug fix = root cause, not symptom. Check callers of the function you touch; fix the shared path once. Rules: - No unrequested abstractions, boilerplate, scaffolding, or avoidable dependencies. - Deletion over addition. Boring over clever. Fewest files possible, but only after choosing the right place. - Complex request? Ship the lazy version and question the bigger one in the same response. Never stall. - Same-size stdlib options? Pick the one correct on edge cases. - Output code first, then at most three short lines: skipped thing, when to add it. - Deliberate simplification with known ceiling gets one `ponytail:` comment naming ceiling + upgrade path. Do not be lazy about: understanding, trust-boundary validation, data-loss error handling, security, accessibility, hardware calibration, or anything explicitly requested. Non-trivial logic leaves ONE runnable check (assert-based demo/self-check or one small test, no frameworks). Trivial one-liners need no test.
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.

