본문으로 건너뛰기
Skillpedia
일반 코딩48k · #3740

andrej-karpathy

하는 일

이 가이드는 흔한 실수를 피하면서 AI가 더 나은 코드를 작성하도록 돕습니다. 작고 명확한 변경, 행동하기 전에 생각하기, 코드가 의도대로 작동하도록 보장하는 것에 중점을 둡니다.

사용하는 경우

  • ✓AI에게 새 코드를 작성하도록 요청할 때.
  • ✓AI에게 기존 코드를 검토하거나 개선하도록 요청할 때.
  • ✓단순한 작업을 AI가 지나치게 복잡하게 만들지 않도록 하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/andrej-karpathy/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/andrej-karpathy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“AI, 두 숫자를 더하는 간단한 함수를 작성해 주세요. 가능한 한 명확하고 직접적인 방법으로, 불필요한 것은 넣지 말고 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 다음과 같은 단계를 따릅니다. 작성 전에 생각하기, 문제를 해결하는 데 필요한 최소한에 집중하기, 요청된 변경만 하기, 결과가 올바른지 판단하는 기준 정하기.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Karpathy Guidelines

Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

When to Use This Skill

  • Use when writing, reviewing, or refactoring code with an LLM.
  • Use when a change needs to stay surgical and avoid speculative abstractions.
  • Use when assumptions, tradeoffs, and verification criteria should be made explicit.
  • Use when code has become overcomplicated and needs to be simplified.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State your assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them - don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No "flexibility" or "configurability" that wasn't requested.
  • No error handling for impossible scenarios.
  • If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

When editing existing code:

  • Don't "improve" adjacent code, comments, or formatting.
  • Don't refactor things that aren't broken.
  • Match existing style, even if you'd do it differently.
  • If you notice unrelated dead code, mention it - don't delete it.

When your changes create orphans:

  • Remove imports/variables/functions that YOUR changes made unused.
  • Don't remove pre-existing dead code unless asked.

The test: Every changed line should trace directly to the user's request.

4. Goal-Driven Execution

Define success criteria. Loop until verified.

Transform tasks into verifiable goals:

  • "Add validation" -> "Write tests for invalid inputs, then make them pass"
  • "Fix the bug" -> "Write a test that reproduces it, then make it pass"
  • "Refactor X" -> "Ensure tests pass before and after"

For multi-step tasks, state a brief plan:

1. [Step] -> verify: [check]
2. [Step] -> verify: [check]
3. [Step] -> verify: [check]

Strong success criteria let you loop independently. Weak criteria such as "make it work" require constant clarification.

Examples

User request: "Add validation to this form."

Better response:
1. Assumption: validation should run before submit and show inline errors.
2. Plan: add a small validator, add tests for invalid inputs, then verify existing submit behavior.
3. Scope: only touch the form component and its test file.
User request: "Refactor this service."

Better response:
1. Ask what behavior must remain unchanged.
2. Identify a concrete smell, such as duplicated parsing logic.
3. Make the smallest refactor and run the existing service tests.

Limitations

  • These guidelines are behavioral guardrails, not a replacement for project-specific architecture or style rules.
  • For emergency fixes, prioritize the smallest verified correction over extensive planning.
  • For exploratory prototypes, some caution can be relaxed, but assumptions and verification should still be explicit.
자주 묻는 질문

AI는 왜 코딩 전에 생각해야 하나요?

추측하거나 혼란을 숨기거나 필요 이상으로 복잡한 해결책을 만들지 않기 위해서입니다. 묻고 명확히 하는 것이 더 낫습니다.

‘외과적 변경(surgical changes)’은 무슨 뜻인가요?

요청을 이행하는 데 꼭 필요한 부분만 건드리고, 요청되지 않은 다른 코드 부분은 바꾸지 않는다는 뜻입니다.

AI는 코드가 좋은지 어떻게 아나요?

AI는 목표가 달성되었는지 판단하는 명확한 기준을 정합니다. 예를 들어 ‘버그를 고쳐라’ 대신 ‘버그를 보여 주는 테스트를 만들고, 그 테스트가 통과하게 하라’처럼 정의할 수 있습니다.

상세 정보

작성자의 원본 설명

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#3740
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬