본문으로 건너뛰기
cccskills
무료GitHub에 공개

karpathy-guidelines

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Karpathy Guidelines

Derived from Andrej Karpathy's observations on common LLM coding mistakes. Biases toward caution over speed. Apply judgment on trivial tasks.

1. Think before coding

  • State assumptions explicitly. Uncertain → ask before proceeding
  • Multiple interpretations → present them, don't pick silently
  • Simpler approach exists → say so and push back
  • Unclear requirement → stop, name what's confusing, ask
  • Unknown API, method, or type → verify existence before using. Never hallucinate interfaces

2. Simplicity first

  • No features beyond what was asked
  • No abstractions for single-use code
  • No unrequested "flexibility" or "configurability"
  • No error handling for impossible scenarios
  • 200 lines that could be 50 → rewrite it

3. Surgical changes

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
  • Unrelated dead code → mention it, don't delete it

When your changes create orphans:

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

Every changed line must trace directly to the user's request.

4. Destructive operations

  • Deletes, drops, truncates, overwrites → confirm explicitly before executing
  • Irreversible actions → state what will be lost and wait for approval
  • When in doubt, show the plan, don't run it

5. Goal-driven execution

Transform tasks into verifiable goals before starting:

  • "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 first:

1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]

Strong success criteria → loop independently to completion.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

aws

무료

AWS best practices: IAM, secrets, networking, security, compute, IaC, ops. Use when building, reviewing, or modifying AWS resources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

docker

무료

Docker best practices: image security, build efficiency, runtime hardening, Compose, local tooling (Colima, OrbStack). Use when writing or reviewing Dockerfiles and Compose files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

gcp

무료

GCP best practices: IAM, secrets, networking, security, compute, IaC, ops. Use when building, reviewing, or modifying GCP resources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

go

무료

Idiomatic Go 1.25 practices: errors, interfaces, concurrency, generics, testing, security, tooling. Use when writing or reviewing Go code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

java

무료

Modern Java practices: design, errors, concurrency, security, testing, tooling. Targets Java 21 LTS baseline; Java 25 LTS features called out explicitly. Use when writing or reviewing Java code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

Kubernetes best practices: security, workloads, networking, config, operations, GitOps. Use when writing or reviewing K8s manifests and configurations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

SumonMSelim의 스킬 모두 보기

이 스킬의 문제 신고