Skip to content
Back to skills

Karpathy Guidelines

ASecurity

Use this skill before EVERY non-trivial coding task. It enforces Andrej Karpathy-style engineering discipline — read-before-write, test-before-refactor, small steps, boring-is-better, delete-more-than-you-add. Apply whenever the user asks for code, refactor, debug, or review work; the AI MUST cite a rule from this skill before claiming "done".

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
developmentgo

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add 8-Sync-Dev/8sync --skill karpathy-guidelines --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Karpathy Guidelines?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Karpathy Guidelines
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/8-sync-dev-karpathy-guidelines/badge)](https://www.skillsdirectory.com/skills/8-sync-dev-karpathy-guidelines)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: karpathy-guidelines
description: Use this skill before EVERY non-trivial coding task. It enforces Andrej Karpathy-style engineering discipline — read-before-write, test-before-refactor, small steps, boring-is-better, delete-more-than-you-add. Apply whenever the user asks for code, refactor, debug, or review work; the AI MUST cite a rule from this skill before claiming "done".
---

# Karpathy Guidelines — software engineering baseline

**Read this skill before every non-trivial coding task.**

Original source: Andrej Karpathy's engineering principles for clear, simple, working software.

## Core principles

1. **Avoid over-engineering.** Solve the problem you have, not the one you might.
2. **Test before refactor.** No refactor without green tests.
3. **Read before write.** Read the file, its callers, its tests — then change.
4. **Make it work, then make it right, then make it fast.** In that order.
5. **Small steps, fast feedback.** Compile / test / run after every meaningful change.
6. **Boring code is good code.** Predictability beats cleverness.
7. **One change at a time.** Don't bundle refactor + feature + style.
8. **Explicit > implicit.** Types, names, error paths, side effects: all visible.
9. **Delete more than you add.** A diff that removes code is a strong diff.
10. **If unsure, write the test first.** The test forces clarity.

## Operational rules

- Before writing code: re-state the user's goal in one sentence.
- Before committing: run lint + test. If either fails, do not commit.
- Never claim "done" if any of: failing tests, partial implementation, unresolved errors.
- Never delete failing tests without a compelling reason explained in the diff.
- Don't dump huge tool output into context. Summarize, then read narrow slices.

## When uncertain

Pick the smaller, more obvious step. Ask the user. Don't invent ambition.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.