Andrej karpathy skills

From seaworld008/Commonly-used-high-value-skills · View interactive version

Andrej karpathy skills is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Karpathy-inspired coding discipline for AI agents: think before coding, keep changes simple, edit surgically, and define verifiable success criteria before implementation.

How to use this skill

Skill file

Andrej Karpathy Skills

Use this skill to keep AI-assisted engineering grounded, simple, and verifiable. It is especially useful for backend, architecture, refactoring, debugging, migrations, and any task where an agent might overbuild, guess, or change unrelated code.

The core idea is simple: do not let the model drift. Make assumptions explicit, prefer minimal changes, touch only what the request requires, and verify with concrete checks before calling the work done.

When to Use

Skip When

Core Principles

  1. Think before coding.
  2. Simplicity first.
  3. Surgical changes.
  4. Goal-driven execution.
  5. Verification before completion.
  6. Respect the existing system.
  7. Surface uncertainty early.
  8. Prefer reversible, observable steps.

Principle 1: Think Before Coding

Before implementation, establish what is known and what is assumed.

Do not silently guess when the guess would affect data integrity, security, public API behavior, billing, auth, or destructive operations.

Principle 2: Simplicity First

Write the minimum code that fully solves the actual problem.

Ask this before committing to an approach:

Can the same behavior be achieved with fewer concepts, fewer files, and less surface area?

If yes, simplify.

Principle 3: Surgical Changes

Every changed line should trace to the request.

Use this edit filter:

If I had to explain this line in the PR, could I tie it directly to the requested outcome?

If not, do not change it.

Principle 4: Goal-Driven Execution

Turn vague tasks into verifiable goals.

For multi-step work, use a compact plan:

1. Inspect current behavior -> verify with failing test or local reproduction.
2. Make minimal change -> verify targeted test passes.
3. Run broader checks -> verify no nearby regression.

Principle 5: Verification Before Completion

Do not finish on intuition.

Good final status includes changed files, validation performed, and known residual risk.

Backend Discipline

For backend and architecture work:

Architecture Discipline

Use architecture changes only when they reduce current pain.

If the change cannot be validated in this turn, keep it smaller.

Review Checklist

Anti-Patterns

Output Format

For implementation planning:

## Assumptions
- ...

## Minimal Approach
- ...

## Verification
- Targeted:
- Broader:

For code review:

## Findings
- [Severity] file:line - issue and impact

## Verification Gaps
- ...

Boundaries

This skill is a discipline layer, not a replacement for domain expertise. Pair it with security, testing, DevOps, database, or frontend skills when the task needs specialized checks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.