An agentic skills framework & software development methodology that works.
Karpathy coding skills for agent tools
This repository packages a short set of Karpathy-inspired rules for coding agents. You install the right adapter for your tool, and it writes the matching instruction file such as `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/...`, or `.windsurfrules`.
Builders who want their coding agent to think first, stay simple, make surgical changes, and verify work against a goal.
You can give different agents the same behavioral guidance without rewriting it for each tool.
What it does
Canonical skill source
Keeps the main guidance in `skills/karpathy-guidelines/SKILL.md` as the single source of truth.
Generated adapters
Builds tool-specific instruction files under `adapters/` for Claude, Codex, Cursor, Gemini, Copilot, OpenClaw, Warp, Windsurf, and more.
Installer and CLI
Provides `npx` and global install flows that copy the right adapter into a project.
Compatibility matrix
Lists supported agent targets and research notes in `install/targets.json` and `docs/agent-compatibility.md`.
Plugin metadata
Includes `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` for Claude plugin packaging.
How to get it
- 1Install through npm and run the installer with npx
npx @swarmclawai/andrej-karpathy-skills --list npx @swarmclawai/andrej-karpathy-skills --agent codex --dest /path/to/project
- 2Or install the CLI globally
npm install -g @swarmclawai/andrej-karpathy-skills andrej-karpathy-skills --agent cursor --dest /path/to/project
- 3Clone once, then copy the right adapter into any project. The installer reads…
git clone https://github.com/swarmclawai/andrej-karpathy-skills.git cd andrej-karpathy-skills node scripts/install.mjs --list node scripts/install.mjs --agent codex --dest /path/to/project
- 4Use --force if you intentionally want to overwrite an existing instruction file
node scripts/install.mjs --agent claude --dest /path/to/project --force node scripts/install.mjs --agent openclaw --dest /path/to/project --force
- 5Use --global for agents with supported user-level skill locations
node scripts/install.mjs --agent claude --global --force node scripts/install.mjs --agent hermes --global --force
README
Karpathy-Inspired Agent Skills
Karpathy-inspired coding-agent guidelines packaged for Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Aider, GitHub Copilot, OpenClaw, Warp, Windsurf, Cline, and the wider SwarmVault/SwarmClaw agent matrix.
The canonical source is skills/karpathy-guidelines/SKILL.md. Agent-specific files are generated under adapters/ so the repository root stays readable while every supported tool receives the same behavioral guidance.
English | Simplified Chinese
What This Adds
These guidelines address four common LLM coding failure modes described by Andrej Karpathy:
| Principle | Prevents |
|---|---|
| Think Before Coding | Silent assumptions, hidden confusion, missing tradeoffs |
| Simplicity First | Over-engineering, bloated abstractions, speculative features |
| Surgical Changes | Drive-by rewrites, unrelated cleanup, accidental behavior changes |
| Goal-Driven Execution | Vague completion criteria and unverified changes |
The content is intentionally short. It is meant to merge with project-specific instructions, not replace them.
Quick Install
Install through npm and run the installer with npx:
npx @swarmclawai/andrej-karpathy-skills --list
npx @swarmclawai/andrej-karpathy-skills --agent codex --dest /path/to/project
Or install the CLI globally:
npm install -g @swarmclawai/andrej-karpathy-skills
andrej-karpathy-skills --agent cursor --dest /path/to/project
The CLI copies the right adapter from the npm package into the destination project.
Clone Install
Clone once, then copy the right adapter into any project. The installer reads install/targets.json, copies from adapters/<agent-id>/..., and writes to the real path your agent expects.
git clone https://github.com/swarmclawai/andrej-karpathy-skills.git
cd andrej-karpathy-skills
node scripts/install.mjs --list
node scripts/install.mjs --agent codex --dest /path/to/project
Use --force if you intentionally want to overwrite an existing instruction file:
node scripts/install.mjs --agent claude --dest /path/to/project --force
node scripts/install.mjs --agent openclaw --dest /path/to/project --force
Use --global for agents with supported user-level skill locations:
node scripts/install.mjs --agent claude --global --force
node scripts/install.mjs --agent hermes --global --force
Adapter Layout
If you only need one file, copy the adapter source to the install target shown below:
| Agent | Adapter source | Installs to |
| --- | --- |
| Codex | adapters/codex/AGENTS.md | AGENTS.md |
| Claude Code | adapters/claude/CLAUDE.md | CLAUDE.md |
| Cursor | adapters/cursor/.cursor/rules/karpathy-guidelines.mdc | .cursor/rules/karpathy-guidelines.mdc |
| Gemini CLI | adapters/gemini/GEMINI.md | GEMINI.md |
| Aider | adapters/aider/CONVENTIONS.md | CONVENTIONS.md |
| GitHub Copilot | adapters/copilot/.github/copilot-instructions.md | .github/copilot-instructions.md |
| VS Code Copilot Chat | adapters/vscode/.github/chatmodes/karpathy-guidelines.chatmode.md | .github/chatmodes/karpathy-guidelines.chatmode.md |
| OpenClaw | adapters/openclaw/.openclaw/skills/karpathy-guidelines/SKILL.md | .openclaw/skills/karpathy-guidelines/SKILL.md |
| Warp or shared Agent Skills | adapters/warp/.agents/skills/karpathy-guidelines/SKILL.md | .agents/skills/karpathy-guidelines/SKILL.md |
| Windsurf | adapters/windsurf/.windsurfrules | .windsurfrules |
The full target matrix lives in install/targets.json.
Supported Agent Matrix
The matrix is based on SwarmVault's installer targets and SwarmClaw's agent provider registry, then cross-checked with public agent documentation where available.
Core targets:
codex, claude, cursor, goose, pi, gemini, opencode, aider, copilot, trae, claw, droid, kiro, hermes, antigravity, vscode.
Extended Agent Skills targets:
amp, augment, adal, bob, cline, codebuddy, command-code, continue, cortex, crush, deepagents, firebender, iflow, junie, kilo-code, kimi, kode, mcpjam, mistral-vibe, mux, neovate, openclaw, openhands, pochi, qoder, qwen-code, replit, roo-code, trae-cn, warp, windsurf, zencoder.
See docs/agent-compatibility.md for the research notes and source links.
Claude Code Plugin
This repo still includes Claude plugin metadata at the root because plugin tooling expects it there:
.claude-plugin/plugin.json
.claude-plugin/marketplace.json
skills/karpathy-guidelines/SKILL.md
When published as a Claude plugin marketplace entry, the plugin exposes the same canonical skill used by every other adapter.
Maintain The Package
Edit the canonical skill, then regenerate and verify:
npm run generate
npm run verify
npm run pack:dry-run
Generated adapters live under adapters/<agent-id>/ and start with a comment that names their source. Do not edit generated adapters by hand; update skills/karpathy-guidelines/SKILL.md or scripts/generate.mjs.
Attribution
This package is based on the original forrestchang/andrej-karpathy-skills repository and preserves the MIT license attribution.
License
MIT
Files in the repo
- .claude-plugin
- adapters
- docs
- install
- scripts
- skills
- CURSOR.md
- EXAMPLES.md
- LICENSE
- package.json
- README.md
- README.zh.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

Production-grade engineering skills for AI coding agents.