Agent skill

Karpathy Agentic Engineering

by LearnPrompt in LearnPrompt/andrej-karpathy-skills

Apply Karpathy-style agentic engineering to any coding or building task.

MITAuto-check passedAgent Workflows

Install Karpathy Agentic Engineering

skills CLI
$ npx skills add LearnPrompt/andrej-karpathy-skills --skill karpathy-agentic-engineering -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LearnPrompt/andrej-karpathy-skills karpathy-agentic-engineering --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LearnPrompt/andrej-karpathy-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/karpathy-agentic-engineering .claude/skills/karpathy-agentic-engineering && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
karpathy-agentic-engineering
GitHub stars
109
Token cost
~1.2k tokens
SKILL.md length
306 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Apply Karpathy-style agentic engineering to any coding or building task.

  • Works in 7 steps: Stuff context — Load entire project into… → Discuss plan — Ask agent for high-level… → Request first draft — Pick one approach,… → …
  • The user wants to set up an agent-driven workflow
  • SKILL.md covers Core Principle, The 7-Step Inner Loop…, CLAUDE.md / AGENTS.md Template and Master Prompt Template, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Karpathy Agentic Engineering is an agent skill from LearnPrompt/andrej-karpathy-skills. Apply Karpathy-style agentic engineering to any coding or building task. Use this skill when the user wants to set up an agent-driven workflow, needs to write a CLAUDE.md or AGENTS.md, wants to orchestrate agents with clear success criteria, or says things like "agent loop", "let the agent handle it", "agentic coding", "set up agent workflow". Includes the 7-step inner loop from Karpathy claude coding notes.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files and Autonomous loops. The repository describes itself as: Karpathy-inspired Agent Skills collection. The licence is MIT.

When your agent uses it

  • The user wants to set up an agent-driven workflow
  • Needs to write a CLAUDE.md
  • Wants to orchestrate agents with clear success criteria
  • Says things like agent loop

Example prompts

  • “agent loop”
  • “let the agent handle it”
  • “agentic coding”
  • “/karpathy-agentic-engineering”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Stuff context — Load entire project into context (files-to-prompt, relevant docs, recent diffs)
  2. Discuss plan — Ask agent for high-level approaches with pros/cons before any code
  3. Request first draft — Pick one approach, get a minimal first implementation
  4. Inline learning — Manually review the diff; ask agent to explain any API you don't recognize
  5. Test — Run tests, check outputs, verify success criteria
  6. Commit — Only commit what you understand and have verified
  7. Ask for next — Let agent suggest the next incremental step

What it can do on your machine

Read from SKILL.md and the folder at commit 9e46dec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Karpathy Agentic Engineering loads about 1.2k tokens when it runs. Until then it costs about 110 tokens; SKILL.md has 306 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LearnPrompt/andrej-karpathy-skills at commit 9e46dec, republished under its MIT licence (© LearnPrompt). 306 words, ~1,224 tokens.

Download SKILL.mdSave it as .claude/skills/karpathy-agentic-engineering/SKILL.md (or your agent's skills folder).
name
karpathy-agentic-engineering
description
Apply Karpathy-style agentic engineering to any coding or building task. Use this skill when the user wants to set up an agent-driven workflow, needs to write a CLAUDE.md or AGENTS.md, wants to orchestrate agents with clear success criteria, or says things like "agent loop", "let the agent handle it", "agentic coding", "set up agent workflow". Includes the 7-step inner loop from Karpathy claude coding notes.
disable-model-invocation
false
user-invocable
true
related_skills
karpathy-idea-files, karpathy-minimalism, karpathy-supply-chain-hygiene, karpathy-vibe-to-agentic, karpathy-understanding-first

Skill 1: Agentic Engineering(代理工程)

Source: https://x.com/karpathy/status/2004607146781278521 | https://x.com/karpathy/status/2015883857489522876 | https://x.com/karpathy/status/2026731645169185220 "It is hard to communicate how much programming has changed." — ~37k likes

Core Principle

You are no longer writing code. You are directing a team of tireless junior engineers.

The shift: write code → write tasks with success criteria → agent loops → human taste review

The 7-Step Inner Loop (Karpathy's Incremental Coding Rhythm)

This is the micro-loop for every coding session:

  1. Stuff context — Load entire project into context (files-to-prompt, relevant docs, recent diffs)
  2. Discuss plan — Ask agent for high-level approaches with pros/cons before any code
  3. Request first draft — Pick one approach, get a minimal first implementation
  4. Inline learning — Manually review the diff; ask agent to explain any API you don't recognize
  5. Test — Run tests, check outputs, verify success criteria
  6. Commit — Only commit what you understand and have verified
  7. Ask for next — Let agent suggest the next incremental step

Never skip step 4. Understanding atrophies if you rubber-stamp every diff.

CLAUDE.md / AGENTS.md Template

Write this file at the project root to prevent the most common agent failure modes:

markdown
# Agent Instructions for [Project Name]

## Behavior Rules
- Make one incremental change at a time. Do NOT refactor unrelated code.
- Always explain WHY you're making a change before the diff.
- If unsure about intent, ASK before implementing.
- Do NOT add new dependencies without explicit approval.
- Prefer simple, readable solutions over clever ones.

## Success Criteria (task-specific — fill in per session)
- [ ] Tests pass: `[test command]`
- [ ] No new lint errors: `[lint command]`
- [ ] Behavior matches: [description of expected output]

## Project Context
- Stack: [language, framework, key libs]
- Entry point: [file]
- Test command: [command]
- Forbidden: [list things agent must never do]

Master Prompt Template

You are an agentic engineer on this project.

Project context: [paste relevant files or use files-to-prompt output]

Task: [specific, unambiguous description]

Success criteria (ALL must be true when done):
1. [verifiable check 1]
2. [verifiable check 2]
3. [verifiable check 3]

Constraints:
- Only change files relevant to this task
- No new dependencies without asking
- Output: one incremental diff at a time

Start by proposing a high-level plan with 2-3 options and trade-offs. Wait for approval before writing code.

Common Failure Modes to Prevent

Agent SinPrevention
Over-refactoring"Only touch files directly related to the task"
Sycophantic confirmation"Tell me what could go wrong with this plan"
Hallucinated APIs"Cite the exact line in the docs for any API you use"
Dependency creep"No new pip/npm installs without asking"
No success criteriaAlways define DONE before starting

Workflow

属于工作流:想法到上线(开发者)

位置上游下游
第2步karpathy-idea-files(先定义想法)karpathy-minimalism(极简实现)

完整链路:idea-files → agentic-engineering → minimalism → supply-chain-hygiene → vibe-to-agentic

也常在反偏见决策工作流中作为执行层出现——当决策完成后需要落地时,切换到本 Skill。

Prompt Contract

text
You are an agentic engineer. Project context: <files, constraints, current state>. Task: <specific goal>. Success criteria: <verifiable checklist>. First propose a high-level plan with tradeoffs. Then make only the next incremental change. After each change, run the relevant verification and report: changed files, evidence of success, remaining risk, and next step.

Verification Checklist

  • 成功标准已经写成可检查项目(不是模糊描述)
  • 每轮变更都有实际验证证据:测试通过、lint clean、diff 范围正确
  • Agent 没有修改任务范围外的文件
  • 人类已 review 每个 diff 中不理解的部分(不跳步)
  • 最终提交前,能用一句话向同事解释改了什么、为什么

When to Apply This Skill

  • Starting any coding task > 30 minutes
  • Setting up a new project with agent assistance
  • Debugging a complex issue (agent as rubber duck + implementer)
  • Writing CLAUDE.md / AGENTS.md for a repo

© LearnPrompt, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in karpathy-agentic-engineering of LearnPrompt/andrej-karpathy-skills.

Open the folder on GitHubat commit 9e46dec

Compare with similar skills

Karpathy Agentic Engineering next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Karpathy Agentic Engineering compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Karpathy Agentic Engineering this skillLearnPrompt/andrej-karpathy-skills109—~1.2kAutomated safety check: PassMIT
Goal Prompt Builderwin4r/goal-prompt-builder229—~3.1kAutomated safety check: PassMIT
Harness Engineering10xChengTu/harness-engineering1021 repos~1kAutomated safety check: PassNone
Handoffanombyte93/prd-taskmaster604—~5kAutomated safety check: PassMIT
Show Me Your Work Decision Logcursor/plugins10k9 repos~1.6kAutomated safety check: PassNone
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT

Similar skills

  • Goal Prompt Builder

    win4r/goal-prompt-builder

    Build high-quality /goal commands for OpenAI Codex CLI 0.128+ that maximize audit-friendliness and minimize false-completion.

    229 GitHub stars~3.1k tokensUpdated 5 mo ago
    Agent WorkflowsAuto-check passed
  • Harness Engineering

    10xChengTu/harness-engineering

    Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.

    102 GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check passed
  • Handoff

    anombyte93/prd-taskmaster

    Phase 3 of the prd-taskmaster pipeline: smart mode selection and user handoff.

    604 GitHub stars~5k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Official

    Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.

    10k GitHub starsUsed in 9 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed

More from LearnPrompt/andrej-karpathy-skills

All 15 skills in this repo
  • Karpathy Methodology Index

    LearnPrompt/andrej-karpathy-skills

    Apply Andrej Karpathy AI methodology and principles from his 2023-2026 insights. Use this skill when the user wants to apply Karpathy-style thinking, needs…

    109 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • AutoResearch Loop

    LearnPrompt/andrej-karpathy-skills

    Sets up an autonomous research loop where an agent runs experiments on git branches, logs results and proposes the next iteration while you approve each hypothesis change.

    109 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy Education First

    LearnPrompt/andrej-karpathy-skills

    Apply the education-first mindset — make everything you build teachable, create nano-project explanations, write for beginners.

    109 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy Idea Files

    LearnPrompt/andrej-karpathy-skills

    Create and share ideas as abstract Gist-style specs instead of code — letting agents or others implement.

    109 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy LLM Simulator

    LearnPrompt/andrej-karpathy-skills

    Use LLM as a simulator of expert debates and opposing viewpoints instead of getting a single sycophantic answer.

    109 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy LLM Wiki

    LearnPrompt/andrej-karpathy-skills

    Build and maintain an LLM-powered personal knowledge base or wiki.

    109 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Karpathy Agentic Engineering

What does Karpathy Agentic Engineering do?

Apply Karpathy-style agentic engineering to any coding or building task. Karpathy Agentic Engineering is an agent skill from LearnPrompt/andrej-karpathy-skills. Apply Karpathy-style agentic engineering to any coding or building task.

When should I use Karpathy Agentic Engineering?

Karpathy Agentic Engineering fits situations like: the user wants to set up an agent-driven workflow; needs to write a CLAUDE.md; wants to orchestrate agents with clear success criteria; says things like agent loop.

How do I install Karpathy Agentic Engineering in Claude Code?

Run `npx skills add LearnPrompt/andrej-karpathy-skills --skill karpathy-agentic-engineering -a claude-code`. Or copy the skill folder (karpathy-agentic-engineering in LearnPrompt/andrej-karpathy-skills) into .claude/skills/karpathy-agentic-engineering in your project. Claude Code loads it when a task matches its description.

How do I install Karpathy Agentic Engineering in Codex?

Run `npx skills add LearnPrompt/andrej-karpathy-skills --skill karpathy-agentic-engineering -a codex`. Or copy the skill folder (karpathy-agentic-engineering in LearnPrompt/andrej-karpathy-skills) into .agents/skills/karpathy-agentic-engineering in your project. Codex loads it when a task matches its description.

Can I use Karpathy Agentic Engineering in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LearnPrompt/andrej-karpathy-skills --skill karpathy-agentic-engineering -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/karpathy-agentic-engineering, .gemini/skills/karpathy-agentic-engineering, .github/skills/karpathy-agentic-engineering and .opencode/skills/karpathy-agentic-engineering in your project.

What does Karpathy Agentic Engineering need to run?

SKILL.md names no scripts, command-line tools or credentials: Karpathy Agentic Engineering is instructions for the agent only.

Does Karpathy Agentic Engineering access the network?

SKILL.md names 1 domain. As links in the text: x.com. This is read from the text; nothing was executed.

Is Karpathy Agentic Engineering safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Karpathy Agentic Engineering use?

Karpathy Agentic Engineering is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Karpathy Agentic Engineering use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Karpathy Agentic Engineering?

Skills that share tags, products or a category with Karpathy Agentic Engineering: Goal Prompt Builder (win4r/goal-prompt-builder, 229 stars), Harness Engineering (10xChengTu/harness-engineering, 102 stars), Handoff (anombyte93/prd-taskmaster, 604 stars) and Show Me Your Work Decision Log (cursor/plugins, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Karpathy Agentic Engineering?

LearnPrompt (a GitHub user) maintains it in LearnPrompt/andrej-karpathy-skills, which has 109 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on July 10, 2026.

Source: LearnPrompt/andrej-karpathy-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.