xiji2646-netizen
Has anyone tried the Karpathy CLAUDE.md rules? (97.8k stars)
There’s a GitHub repo at forrestchang/andrej-karpathy-skills that’s sitting at 97.8k stars. It’s a single CLAUDE.md file with four behavioral rules for Claude Code, derived from Andrej Karpathy’s observations about LLM coding failure modes.
The four rules:
-
Think Before Coding — ask instead of assuming
-
Simplicity First — no abstractions nobody asked for
-
Surgical Changes — touch only what you must, every diff line traces to the request
-
Goal-Driven Execution — define success criteria, loop until met
I’ve been using it for a few weeks. The one that made the biggest difference for me is Surgical Changes. Before, I’d ask for a bug fix and get a 40-line diff with type hints, reformatted quotes, and renamed variables mixed in with the actual fix. Now the diff is clean.
Has anyone else tried it? Curious whether the “simplicity first” rule causes problems in codebases that genuinely need abstractions — I’ve had to work around it a couple of times.
Installation is one command:
/plugin marketplace add forrestchang/andrej-karpathy-skills
/plugin install andrej-karpathy-skills@karpathy-skills
First Post!
usernametakenaaaa
I basically came up with something very similar on my own. These kind of commands definitely help but you need to adapt them to your project and to the AI models you use.
Especially ideas like “investigate instead of assuming” - to a human it sounds easy and models do make those errors and they cause catastrophic issues .. but telling a model to not assume is quite fruitless.
A rule against Abstractions is among the most helpful rules I use.
Popular Ai topics
Other popular topics
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /emacs
- /haskell
- /svelte
- /typescript
- /onivim
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /deepseek
- /zig
- /centos
- /php
- /scala
- /react-native
- /lisp
- /sublime-text
- /textmate
- /nixos
- /debian
- /agda
- /deno
- /django
- /kubuntu
- /arch-linux
- /nodejs
- /spring
- /ubuntu
- /revery
- /manjaro
- /lua
- /diversity
- /julia
- /markdown
- /quarkus









