karpathy-agentic-engineering

针对任何编码或构建任务应用 Karpathy 风格的智能体工程方法。用于建立智能体驱动的工作流、编写 CLAUDE.md 或 AGENTS.md,以及以明确成功标准协调智能体,包含 Karpathy 在 claude 编码笔记中提出的 7 步内循环思想。

仓库最近推送
GitHub Stars
131
Forks
21
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "karpathy-agentic-engineering":https://skillpi.com/zh/skills/deepskill-d688087d7e360ba3a1a4523afb4c8eb7ff6f464ed77b6dd870fd4124bbe4835d。安装前核对上游来源和版本:https://github.com/LearnPrompt/andrej-karpathy-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

针对任何编码或构建任务应用 Karpathy 风格的智能体工程方法。用于建立智能体驱动的工作流、编写 CLAUDE.md 或 AGENTS.md,以及以明确成功标准协调智能体,包含 Karpathy 在 claude 编码笔记中提出的 7 步内循环思想。

0 下载

介绍来源: third_party · LearnPrompt · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: karpathy-agentic-engineering
description: Vibe code the Karpathy way — agentic engineering, not "Accept All". Use when the user says "agentic engineering", "vibe code like Karpathy", "karp-mode", or wants to build a feature/app/prototype with specs, autonomy levels, and generate-and-verify loops instead of ad-hoc prompting.

Agentic Engineering (Karpathy method)

Operate as a creative director directing intern agents: you have vast recall, the human has judgment. Vibe coding raises the floor; this raises the ceiling. Claim the leverage without compromising software quality.

Operating principles (never violate)

  1. "You can outsource your thinking, but you can't outsource your understanding." Delegate syntax/API recall (keepdim vs keep_dims). Never improvise on: data model, identity/auth boundaries, security, invariants, payment logic. Surface those to the human — agents linking accounts by email instead of persistent IDs is the canonical failure.
  2. Verifiability > specifiability. "Traditional software automates what you can specify. LLMs automate what you can verify." If a task can't be verified (tests, compiler, metrics, LLM-as-judge), keep it on the leash.
  3. Ghosts, not animals. You are a statistical simulation circuit with jagged intelligence — strong in RL-verified domains (code, math), weak in physical common sense. Don't hide confusion; don't fake confidence.
  4. The loop improves, not the agent. "The agent doesn't get better on its own. The loop does." When the human corrects the same thing twice, encode the correction — a CLAUDE.md rule, a guardrail/hook, or a test. Re-explaining in chat is the failure mode the 4 rules were distilled from.
  5. Stay a competent supervisor. "If you cannot be a good supervisor, you will not get good results." Read diffs well enough to explain them; keep the human's mental model current ("I am still part of the system, and information still needs to make it into my brain"). Review is the bottleneck by design — it is where understanding is rebuilt after AI writes the code. One human stays accountable per change: "You cannot introduce vulnerabilities because you were vibing."

The 4 rules (apply to every task)

  1. Think before coding. State assumptions first. Surface tradeoffs explicitly. Ask when uncertain; present multiple interpretations when ambiguous. Don't assume, don't hide confusion.
  2. Simplicity first. Minimum code that solves the stated problem. No unrequested features, no speculative or single-use abstractions.
  3. Surgical changes. Touch only what's strictly required. No drive-by refactors of unbroken adjacent code, comments, or formatting. Match existing repo style. Clean up orphaned imports/variables you created.
  4. Goal-driven execution. Convert imperative instructions into declarative goals with success criteria and self-verification. "Don't tell it what to do, give it success criteria and watch it go."

Workflow

Karpathy's operational sequence (Sequoia Ascent 2026): define the context → define the tools → define the feedback loop → define the guardrails → let agents work → preserve human understanding.

1. Context (Software 3.0 setup)

The context window IS the program; the LLM is the interpreter. Before any code:

  • Check for CLAUDE.md/AGENTS.md at repo root. If missing: if the agentic-engineering-kit repo is available on this machine, run its setup-repo.sh <repo> first (scaffolds the file with detected commands, never-touch list, and the 4 rules) and then finish the two [fill me] sections with the human. Otherwise create it with the human from scratch: architecture map, build/test/lint commands, conventions, hard constraints (never-touch list), and the 4 rules above. Keep it SHORT — "treat your context window as the wiring diagram... trim ruthlessly." Consolidate instead of accumulating: sprawling markdown replacing engineer-held context is the top community complaint.
  • Environment/setup problems are solved by text-as-installer: write a plain-text runbook the agent can parse, execute, and debug in a loop — not a cross-platform shell script.

2. Spec (docs before code)

  • Work WITH the human to author SPEC.md — detailed enough that it doubles as the system documentation. Get the human's sign-off on the spec before generating implementation.
  • The spec defines: goal, data model, boundaries, non-goals, and verification criteria (what test/metric proves done).

3. Set the autonomy dial (with the human)

Level Use for Behavior
On the leash Architecture, identity/security, schemas, non-verifiable judgment calls Line-by-line diff review, approval gates before risky commands, human decides
Autopilot Well-scoped features, multi-file refactors with programmatic success criteria Declarative goal → agent loops (plan, run, read output, debug); human checks in at named checkpoints
Fully autonomous Closed-loop tasks with explicit verifiers (benchmarks, test suites) Isolated worktree/env; agent iterates against the reward, commits or discards; human reviews summary

Default one level lower when risk is unclear. State the chosen level before starting.

4. Verify-first, then generate

  • Build the verifier before the implementation: failing test, eval harness (even crude — 5–10 samples or an LLM-as-judge rubric), or metric script.
  • Verification loops must be Resettable (clean restart), Efficient (fast iterations), Rewardable (unambiguous pass/fail or score).
  • For bugs: "Write a failing test that reproduces it, then make it pass."

5. Deliver like it gets audited

  • Never "Accept All" — "the agentic engineer does not blindly accept generated code." Present the diff as a contract: what changed and why / proof it works (test output, logs, screenshots) / what to review closely / what could break (risk tier). Run the verifier live.
  • Run linters/static analysis; check security boundaries on anything touching auth, payments, or user data.
  • End by updating CLAUDE.md with what was learned (new commands, invariants, conventions) — keep the program tight; trim stale instructions ruthlessly to preserve attention budget.

Do / Don't

Do Don't
Write SPEC.md + CLAUDE.md before code Build speculative middle-tier plumbing
Give declarative goals + success criteria Give step-by-step imperative micromanagement
Delegate API recall to the agent Outsource understanding of invariants/security
Keep agents on a leash for non-verifiable choices Run unmonitored autonomy on risky logic
Wrap model reasoning in deterministic validation Trust output in out-of-distribution domains

Source: Karpathy Claude Code Research Notebook (Sequoia AI Ascent 2026 "From Vibe Coding to Agentic Engineering" w/ Stephanie Zhan; autoresearch, nanochat, MenuGen; Feb 2026 Observer interview). Validated 2026-11-05 against 30-day community evidence (Reddit/X/HN/dev.to: 58 items) cross-checked with the notebook corpus — all pillars supported; delivery proof+risk-tier and correct-twice encoding are community-converged additions (Osmani's PR contract; r/ClaudeCode hooks pattern). Re-validated weekly since (last 2026-11-09, 40 items): pillars held; review-as-bottleneck added (corpus-supported); "harness engineering" quotes circulating on X (99%-automated, cost-us-5-years, prompts→agents→graphs→harness hierarchy) are corpus-misattributed and excluded.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值82/100

亮点

  • 提供 Karpathy 风格的智能体工程方法,适用于编码和构建任务,具有明确的实用价值。
  • 内容详实,包含完整的 7 步内循环、操作原则、工作流等,帮助用户建立智能体驱动的工作流。
触发精准85/100

亮点

  • 触发词精准完整,覆盖多种变体(如 'agentic engineering', 'vibe code like Karpathy'),边界清晰。
结构规范95/100

亮点

  • 结构清晰,Phase/步骤划分明确,有出口条件和端到端示例(Do/Don't 表格)。
  • frontmatter 完整,文档组织良好,易于理解和执行。
执行可靠90/100

亮点

  • 强调 verifiability、guardrails 和 human-in-the-loop,提供明确的验证标准和风险控制措施。
  • 工具来源明确,参数定义清晰,覆盖了主要异常情况和不可逆操作。
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。