mcpField
K
karpathy-idea-files

karpathy-idea-files

github.com/learnpromptAgent 工作流118126 次安装16 周前更新
代码仓库

关于 karpathy-idea-files

karpathy-idea-files 是一项 Agent 技能,用于在实现前将初步想法整理为结构化、可分享的规格说明。它提供模板和提示词,帮助明确目标、成功标准、约束及实现步骤。

主要功能

  1. 01想法文件模板
  2. 02完善模糊想法的提示词
  3. 03可验证的成功标准
  4. 04面向具体情境的 Agent 交接
  5. 05想法库分类结构

适用场景

  1. 01将初步想法整理为可执行规格
  2. 02准备可作为 Gist 分享的想法
  3. 03按进度状态记录和整理想法

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/learnprompt/andrej-karpathy-skills --skill karpathy-idea-files

安装后在 Claude Code 中输入/karpathy-idea-files确认已加载。

详细介绍

技能 9:想法文件 / Gist 优先分享(想法文件优先)

来源:https://x.com/karpathy/status/2040470801506541998 | https://github.com/multica-ai/andrej-karpathy-skills “LLM 知识库想法文件”——2.7 万个赞

核心原则

交付想法,而非实现。

Karpathy 的 Gist 模式:撰写清晰的摘要、成功标准和约束,然后让 Agent(或任何人)根据自己的具体情境来实现。一个想法规格 → 无限种实现方式。

旧模式:编写代码 → 分享代码 → 其他人改编代码。 Karpathy 模式:编写想法规格 → 分享规格 → Agent 根据具体情境实现。

想法文件模板

编写任何代码之前,每个新想法都要采用以下格式:

# [IDEA NAME]
> Status: [DRAFT / SPEC / ACTIVE / ARCHIVED]
> Created: [DATE]
> Source inspiration: [LINK or "original"]

## Abstract (2-3 sentences)
What is this? What problem does it solve? Why does it matter?

## The Core Insight
What's the one non-obvious observation that makes this idea work?
(If you can't write this, the idea isn't ready yet.)

## Success Criteria
When is this "done"? List 3-5 verifiable outcomes:
- [ ] [Observable outcome 1]
- [ ] [Observable outcome 2]
- [ ] [Observable outcome 3]

## Minimal Viable Version
Describe the simplest possible thing that would prove the concept works.
(One paragraph. No code yet.)

## Constraints
- Must work with: [tools/stack/dependencies]
- Must NOT require: [what to avoid]
- Scale target: [personal use / team / public]
- Time budget: [hours/days]

## Open Questions
Things I don't know yet that matter:
1. [Question 1]
2. [Question 2]

## Implementation Notes (optional)
Hints for whoever (agent or human) implements this:
- Suggested approach: [rough approach]
- Key risk: [what might go wrong]
- Prior art: [similar things that exist]

## Example Input/Output
Input: [example]
Output: [example]

将模糊想法转化为规格

有了初步想法后,使用此提示词将其明确下来:

I have a rough idea I want to turn into an implementation-ready spec.

Rough idea: [YOUR VAGUE IDEA IN NATURAL LANGUAGE]

Help me write a proper idea file with:
1. A precise 2-sentence abstract (what + why)
2. The core non-obvious insight (the thing that makes it work)
3. 3-5 verifiable success criteria
4. The minimal viable version (simplest proof of concept)
5. 3 things an implementer needs to know
6. 2 open questions I should resolve before building

Be precise. Remove vagueness. If something is unclear, ask — don't invent.

Agent 实现提示词

有了想法文件后,将其交给 Agent:

Implement this idea spec for my specific context.

Idea spec:
[PASTE IDEA FILE]

My context:
- Environment: [OS, language, tools available]
- Existing codebase: [describe or paste relevant parts]
- Constraints: [anything specific to my setup]

Implementation rules:
1. Follow the success criteria exactly
2. Start with the minimal viable version
3. Ask before adding anything not in the spec
4. Output code + a README explaining how to run it
5. Flag any open questions from the spec that affect implementation

分享想法文件

Karpathy 的公开分享模式:

Polish this idea file for public sharing as a Gist.

[PASTE IDEA FILE]

Requirements:
- Abstract should be compelling but honest (no hype)
- Success criteria should be so clear anyone could verify them
- Implementation notes should be context-independent
- Add a "Variations" section: 3 different ways someone might implement this differently
- Add a note: "Implementations welcome — tag me in yours"

Format: clean markdown, no implementation code, pure idea.

捕捉想法(快速模式)

随时快速记录想法(30 秒):

I have a quick idea: [ONE SENTENCE]

Extract:
1. Problem solved (1 sentence)
2. Core mechanism (1 sentence)  
3. Minimum viable success criterion (1 testable statement)
4. What I need to figure out before building (top 1-2 questions)

Save as a minimal idea file. I'll flesh it out later.

想法文件库结构

ideas/
├── active/         ← being built right now
│   └── llm-wiki.md
├── backlog/        ← solid specs, not started
│   └── autoresearch.md
├── draft/          ← rough, needs more thinking
│   └── neural-output.md
└── archived/       ← built or abandoned, kept for reference
    └── old-idea.md

工作流

属于工作流:想法到上线(入口)

位置上游下游
入口(第 1 步)用户有新想法时直接触发karpathy-agentic-engineering(开始工程化实现)

完整链路:idea-files → agentic-engineering → minimalism → supply-chain-hygiene → vibe-to-agentic

提示词约定

Turn my idea into an idea file. Produce: 1) Abstract (2-3 sentences, what and why), 2) Target user (who benefits), 3) Success criteria (how to know it's done — verifiable), 4) Constraints (budget, tech stack, non-goals), 5) Implementation sketch (steps an agent could follow), 6) Open questions (what I haven't decided yet). Format as a single Markdown file ready to share as a Gist.

验证清单

  • 想法文件有明确的摘要(不是模糊愿景)
  • 成功标准可验证(不是“做得好”)
  • 约束条件写明“绝对不做什么”
  • 实现建议足够具体,让不了解你的 Agent 也能开始
  • 未决问题列出了你还没决定的部分
  • 整个文件可以直接发到 Gist,无需额外解释

评论

支持 Markdown