skills/karpathy-guidelines/SKILL.md
减少常见 LLM 编码错误的行为指南。在编写、审查或重构代码时使用,以避免过度复杂化、进行精确修改、明确假设并定义可验证的成功标准。
npx skillsauth add long36708/longmo-skills karpathy-guidelinesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
减少常见 LLM 编码错误的行为指南,基于 Andrej Karpathy 对 LLM 编码陷阱的观察。
权衡: 这些指南偏向于谨慎而非速度。对于琐碎任务,请自行判断。
不要假设。不要隐藏困惑。明确权衡。
在实现前:
解决问题的最少代码。避免投机。
问自己:"资深工程师会说这过于复杂吗?" 如果是,简化它。
只触碰你必须触碰的。只清理你自己制造的混乱。
编辑现有代码时:
当你的更改产生了孤立代码时:
测试标准:每一行更改都应直接追溯到用户的请求。
定义成功标准。循环直到验证通过。
将任务转化为可验证的目标:
对于多步骤任务,陈述简要计划:
1. [步骤] → 验证:[检查]
2. [步骤] → 验证:[检查]
3. [步骤] → 验证:[检查]
明确的成功标准让你可以独立循环。模糊的标准("让它工作")需要不断澄清。
documentation
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
development
Portless development server proxy that eliminates port conflicts by routing through localhost subdomains. Use when setting up development servers, managing multiple apps, avoiding port conflicts, or working with monorepos and turborepo projects.
content-media
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
development
MSW (Mock Service Worker) v2 最佳实践、模式和API指南,用于 JavaScript/TypeScript测试和开发中的API模拟。涵盖处理器 设计、服务器设置、响应构造、测试模式、GraphQL和 v1到v2迁移。基准版本:msw ^2.0.0。 触发条件:msw导入,http.get,http.post,HttpResponse,setupServer, setupWorker,graphql.query,提及"msw"、"mock service worker"、 "api mocking"或"msw v2"。