944 B
944 B
| tags | |
|---|---|
|
Rules I give Claude to get better code (curious what works for you)
After months working with Claude for dev work, I built a set of strict instructions to avoid bad outputs, hallucinated code, or bloated files.
These rules consistently give me cleaner results, feel free to copy/adapt:
- No artifacts.
- Less code is better than more code.
- No fallback mechanisms — they hide real failures.
- Rewrite existing components over adding new ones.
- Flag obsolete files to keep the codebase lightweight.
- Avoid race conditions at all costs.
- Always output the full component unless told otherwise.
- Never say “X remains unchanged” — always show the code.
- Be explicit on where snippets go (e.g., below “abc”, above “xyz”).
- If only one function changes, just show that one.
- Take your time to ultrathink when on extended thinking mode — thinking is cheaper than fixing bugs.