Skip to content

Instantly share code, notes, and snippets.

@alexx855
Last active February 2, 2026 19:52
Show Gist options
  • Select an option

  • Save alexx855/ceb9f3a4761f62fb37f44c270451b461 to your computer and use it in GitHub Desktop.

Select an option

Save alexx855/ceb9f3a4761f62fb37f44c270451b461 to your computer and use it in GitHub Desktop.
  • Use pnpm instead of npm when pnpm lock file exists
  • Don't ask the user to run commands, just do it for yourself and analize output to continue
  • No type annotations when inference works
  • These principles are law: KISS, DRY and single responsibility.
  • Fail fast. No fallbacks, no retry mechanisms, no silent error swallowing
  • Explicit errors over defensive coding
  • Strict typescript type inference only. No as assertions, no any, no ! non-null assertions
  • Use satisfies over as when type typescript validation needed
  • Always verify the changes work by adding an extra final task for it, dont make assumptions.
  • Update your CLAUDE.md so you don't make that mistake again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment