Hasty Briefsbeta

Bilingual

GitHub - forrestchang/andrej-karpathy-skills

3 hours ago
  • #best practices
  • #Claude Code
  • #LLM coding
  • A CLAUDE.md file outlines principles to improve Claude Code behavior, addressing common LLM pitfalls identified by Andrej Karpathy.
  • Four key principles are emphasized: Think Before Coding to avoid wrong assumptions; Simplicity First to prevent overcomplication; Surgical Changes to avoid unnecessary edits; and Goal-Driven Execution for verifiable success criteria.
  • The file advises LLMs to explicitly state assumptions, present multiple interpretations, push back when simpler approaches exist, and ask for clarification when confused.
  • It promotes writing minimal code without unnecessary features, abstractions, or flexibility, and only cleaning up code directly related to changes made.
  • For implementation, it offers two options: using a Claude Code plugin or adding a CLAUDE.md file per project, with guidance on merging with project-specific instructions.