Skip to content

feat: add karpathy coding discipline guidelines#4

Merged
furkankoykiran merged 2 commits into
mainfrom
feat/karpathy-guidelines
May 14, 2026
Merged

feat: add karpathy coding discipline guidelines#4
furkankoykiran merged 2 commits into
mainfrom
feat/karpathy-guidelines

Conversation

@furkankoykiran
Copy link
Copy Markdown
Owner

Adds a Karpathy-derived coding discipline section to the global CLAUDE.md.

Why

Andrej Karpathy's public observations on LLM coding pitfalls (wrong assumptions, over-engineering, drive-by edits, weak success criteria) line up with the gaps in the current Approach Rules. multica-ai/andrej-karpathy-skills distills these into four principles under MIT — worth merging into the setup we publish.

Changes

  • docs/karpathy-guidelines.md — full four-principle reference (Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution) with attribution to the upstream repo and Karpathy's original post.
  • CLAUDE.md — new "Coding Discipline (Karpathy)" section between Approach Rules and GitHub Workflow: four headline bullets plus an @docs/karpathy-guidelines.md import. Follows the same pattern used for github-workflow.md, mcp-reference.md, skills-reference.md, etc.

Why not just copy CLAUDE.md from upstream

Their install methods are (a) a Claude Code plugin, or (b) curl their CLAUDE.md over our own. Both fight our existing structure. The doc-import pattern keeps the rules first-class in our setup, attributes the source cleanly, and avoids a runtime dependency.

Verification

  • grep -n "Karpathy" CLAUDE.md shows the new section is loaded.
  • @docs/karpathy-guidelines.md resolves on session start (matches the pattern of the other @docs/*.md imports already in CLAUDE.md).

…karpathy-skills

Four principles (Think Before Coding, Simplicity First, Surgical Changes,
Goal-Driven Execution) addressing common LLM coding pitfalls. Sourced from
multica-ai/andrej-karpathy-skills (MIT), itself distilled from Karpathy's
public observations. Doc lives in docs/ so CLAUDE.md can @-import a tight
summary while keeping the full reference one click away.
…rules

Adds a four-bullet 'Coding Discipline (Karpathy)' section between Approach
Rules and GitHub Workflow with an @-import to docs/karpathy-guidelines.md.
Mirrors the existing pattern used for github-workflow, mcp-reference, etc.
Complements existing approach rules rather than duplicating them — adds
explicit guardrails against over-engineering and drive-by edits that the
current rules don't spell out.
@furkankoykiran furkankoykiran merged commit 09e6ac6 into main May 14, 2026
@furkankoykiran furkankoykiran deleted the feat/karpathy-guidelines branch May 14, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant