karpathy-guidelines

Enforce minimal, surgical, and verifiable code changes with explicit tradeoffs.

Updated Jun 25, 2025
One-click install
npx skills add https://github.com/wangdaqian08/werewolf-simple --skill karpathy-guidelines-wangdaqian08
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/wangdaqian08/werewolf-simple/tree/main/.claude/skills/karpathy-guidelines
Command: npx skills add https://github.com/wangdaqian08/werewolf-simple --skill karpathy-guidelines-wangdaqian08

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid common LLM coding mistakes such as assuming missing context, overengineering simple fixes, and changing unrelated code.

Core Features & Use Cases

  • Surface assumptions early: Call out uncertainty instead of silently guessing.
  • Keep changes minimal: Make the smallest surgical edit that satisfies the request.
  • Verify success: Define concrete checks or tests so completion is measurable.
  • Use case: Before modifying a feature, use this Skill to compare options, choose the simplest path, and state how you will confirm it worked.

Quick Start

Use this skill to review my planned code change for assumptions, unnecessary complexity, and a clear verification step.

Frequently Asked Questions about karpathy-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent LLM from overcomplicating code changes during refactoring?

To prevent overcomplicating LLM-assisted code changes during refactoring, enforce minimal, surgical edits that leave adjacent logic untouched. Surface assumptions explicitly, define testable success criteria, and require clear tradeoffs before considering any code modification complete.

What is the best way to surface assumptions during AI-assisted code review?

Surfacing assumptions during AI-assisted code review involves explicitly calling out uncertainty instead of silently guessing. You must state missing context, evaluate tradeoffs, and define concrete verification checks to ensure the minimal code change is fully measurable and correct.

How do I verify success when making minimal surgical code edits?

You verify success of minimal surgical code edits by defining concrete checks or tests before making changes. This ensures completion is measurable, prevents touching unrelated code, and confirms the simplest implementation path satisfies the original request without overengineering.

Why does my LLM change unrelated code when fixing a simple bug?

Your LLM changes unrelated code because it lacks enforced minimal scope constraints. By applying coding guidelines that require the smallest surgical edit and explicit tradeoff analysis, you prevent the LLM from overengineering simple fixes and modifying adjacent logic unnecessarily.

Can I use coding guidelines to compare refactoring options before modifying a feature?

Yes, you can use coding guidelines to compare refactoring options before modifying a feature. This approach helps you choose the simplest implementation path, surface hidden assumptions early, and state concrete verification steps to confirm the change worked without overcomplicating the logic.