karpathy-guidelines

仓库创建 2026年7月27日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由

对写、审查或重构代码的代理有很强的防错指导价值。

这个 Skill 做什么

一套减少 LLM 编码错误、强调小步改动与可验证性的行为准则。

一套写代码和复审时用的行为准则,帮减少 LLM 常犯的编码错误:少做大改、分小步改动、把假设说清楚并定义可验证的成功标准。写新功能、重构或审查自动生成代码时用,尤其要避免一次性复杂改动。重点是偏向谨慎和可验证,而不是赶进度的激进改动。

▸ 展开 SKILL.md 英文原文

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.

Skill 开发管理编码准则可验证谨慎改动通用
0
Stars
0
Forks
10
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/chan9yu/docagents/main/skills/karpathy-guidelines/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/chan9yu/docagents/main/skills/karpathy-guidelines/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Karpathy Guidelines

Behavioral guidelines to reduce common LLM coding mistakes, derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls.

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

## 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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有