karpathy-guidelines
БесплатноБез исполняемых скриптовНе проверенBehavioral checklist for disciplined LLM coding. Use when starting non-trivial tasks to enforce assumption surfacing, minimal changes, and verifiable goals…
от blacktop★ 17 звёзд на GitHubОб этом скилле
Karpathy Guidelines
Four behavioral rules for non-trivial coding tasks. Trivial one-liners don't need the full rigor.
1. Surface Assumptions
Before implementing, state your assumptions explicitly. When several interpretations exist, name the one you chose and why rather than picking silently; stop and ask only when the choice is hard to reverse or fixes an interface, data model or architecture. If something is unclear, name it.
Test: Can you trace every design choice to something the user said? If not, you assumed.
2. Minimum Viable Change
Write the least code that solves the problem. No speculative abstractions, no configurable hooks for single-use logic, no error handling for impossible scenarios. If 200 lines could be 50, rewrite.
Test: Would a senior engineer say "this is overcomplicated"? If yes, simplify.
3. Surgical Edits
Every changed line traces to the user's request. Don't improve adjacent code, comments, or formatting. Match existing style. If your changes orphan imports or variables, clean those up — but don't touch pre-existing dead code unless asked.
Test: Can every diff hunk be justified by the request? If not, revert the extras.
4. Verifiable Goals
Transform tasks into goals with success criteria:
| Vague | Verifiable |
|---|---|
| "Add validation" | Write tests for invalid inputs, make them pass |
| "Fix the bug" | Write a reproducing test, make it pass |
| "Refactor X" | Tests pass before and after |
For multi-step work, state a plan with verification at each step:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
Working Indicators
These rules are working when: diffs contain only requested changes, code is simple on the first attempt, assumptions are stated before implementation, and PRs have no drive-by refactoring.
Установить karpathy-guidelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл karpathy-guidelines?
Behavioral checklist for disciplined LLM coding. Use when starting non-trivial tasks to enforce assumption surfacing, minimal changes, and verifiable goals. Derived from Andrej Karpathy's observations on LLM coding pitfalls.
Как установить скилл karpathy-guidelines?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл karpathy-guidelines запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic