Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created January 15, 2026 16:46
Show Gist options
  • Select an option

  • Save pfftdammitchris/9be1f03128e0c1ffb6d4a2ba26404f86 to your computer and use it in GitHub Desktop.

Select an option

Save pfftdammitchris/9be1f03128e0c1ffb6d4a2ba26404f86 to your computer and use it in GitHub Desktop.
15 Miraculous AI Agent Strategies for Code Generation in 2026 - snippet-11.md

CLAUDE.md - Patterns to NEVER Use

❌ NEVER:

  • any type (use unknown + type guards)
  • console.log for errors (use console.error)
  • Nested ternaries > 2 levels
  • setTimeout for non-delay purposes
  • Array index as React key for dynamic lists
  • eval() or Function() constructor
  • Hardcoded secrets/API keys

When tempted: explain WHY and propose alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment