ajitta

Karpathy Regula — Development skill for Claude Code

Development community

Karpathy coding guidelines with explicit conditions and reasons for Claude Code and Codex, with process-comparison research.

How to install Karpathy Regula

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ajitta/karpathy-regula and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Karpathy Regula does

Karpathy coding guidelines with explicit conditions and reasons for Claude Code and Codex, with process-comparison research.

Alternatives in Development

README

Karpathy Regula

Karpathy's coding guidelines for Claude Code and Codex, rewritten so that each instruction keeps its condition, its action and its reason together (one clause added in 0.2.0 still lacks its own reason; see [Remaining limits](#remaining-limits-of-the-text)). Both hosts load one shared English skill, `coding-guidelines`, with four principles: think before coding, keep implementations simple, make scoped changes, and define verifiable goals.

This is an unofficial adaptation of the Karpathy Guidelines skill by [forrestchang](https://github.com/forrestchang) and contributors; see [attribution](plugins/karpathy-regula/NOTICE.md). It has not been shown to produce better code than the original; see [Evidence and limits](#evidence-and-limits).

Install

Claude Code

  1. In Claude Code, add the marketplace:

    /plugin marketplace add ajitta/karpathy-regula
  2. Install the plugin:

    /plugin install karpathy-regula@karpathy-regula
  3. Start a new session.

  4. Put the skill's name in front of a coding task:

    /karpathy-regula:coding-guidelines Fix the discount bug in cart.py without touching anything else.

From a terminal, steps 1 and 2 are `claude plugin marketplace add ajitta/karpathy-regula` and `claude plugin install karpathy-regula@karpathy-regula`. The plugin is also listed in the [ajitta catalog](https://github.com/ajitta/claude-plugins) as `karpathy-regula@ajitta`. Install it through one route only; two routes give you two copies of the skill.

Codex

  1. In a terminal, add the marketplace:

    codex plugin marketplace add ajitta/karpathy-regula
  2. Install the plugin:

    codex plugin add karpathy-regula@karpathy-regula
  3. Start a new Codex session.

  4. Put the skill's name in front of a coding task:

    $karpathy-regula:coding-guidelines Fix the discount bug in cart.py without touching anything else.

In the desktop app, the register