More on the topic...
Generating detailed summary...
Failed to generate summary. Please try again.
Forrest Chang’s repo packages Andrej Karpathy’s hard-won lessons on LLM coding into a single CLAUDE.md file or a Claude Code plugin. You can grab the file directly into any project or install it via the Claude Code marketplace. Either way, you get four clear rules that tackle real LLM missteps: making bad assumptions, overengineering, unintended edits, and aimless execution.
Principle one forces the model to lay out assumptions, offer alternatives, and ask questions when it’s stuck. Principle two clamps down on feature bloat—no abstractions, error handling, or flexibility beyond what you asked. Principle three limits edits to exactly what your request demands—style, structure, and unrelated dead code stay untouched. Principle four turns tasks into verifiable goals: write tests first, define success criteria, then loop until they pass.
Install via “/plugin marketplace add forrestchang/andrej-karpathy-skills” plus “/plugin install” in Claude Code, or append CLAUDE.md with a curl command. A built-in Cursor rule file can enforce these same guidelines whenever you open the project in Cursor. Use project-specific sections (like “TypeScript strict mode” or “all API endpoints need tests”) to blend Karpathy’s framework with your team’s rules.
Questions about this article
No questions yet.