/good-skills:coding-guidelinesfrom good-skills
减少常见 LLM 编码失误的行为准则。Use when "写代码", "改代码", "重构", "code", "refactor", "implement", "review code", "编写/修改本仓库代码" — 即任何在本项目里写、改、重构、审查代码之前。 四条原则:先想后写 / 极简优先 / 外科手术式改动 / 目标驱动执行。 Derived from Andrej Karpathy's observations on LLM coding pitfalls.
Ships in good-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
减少常见 LLM 编码失误的四条行为准则,源自 Andrej Karpathy 对 LLM 编码缺陷的观察。
权衡: 这些准则偏向「稳」而非「快」。琐碎任务(改错别字、明显的一行修复)用判断力即可,不必套用全套。
不要默认假设,不要掩饰困惑,主动摆出权衡。
动手前:
用解决问题的最少代码,不写任何投机性的东西。
自问:「资深工程师会不会觉得这过度复杂?」会,就简化。
只动该动的地方,只清理自己造成的烂摊子。
改已有代码时:
自己的改动产生孤儿时:
检验标准:每一行改动都能直接追溯到用户的请求。
定义成功标准,循环到验证通过为止。
把任务转成可验证的目标:
多步任务先给简短计划:
1. [步骤] → 验证:[检查]
2. [步骤] → 验证:[检查]
3. [步骤] → 验证:[检查]
强成功标准让你能独立循环推进;弱标准(「让它能跑」)会逼着用户反复澄清。
准则生效的信号: diff 里没有多余的改动、不会因过度复杂而返工、澄清问题出现在动手前而非出错后。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sunchendd/good_skills --plugin good-skills26 skills in this plugin
/arxiv-daily每日 arXiv AI 论文精选系统。自动从 arXiv 抓取最新 cs.AI/cs.LG/cs.CL/cs.CV/cs.RO 论文,用 DeepSeek 评分筛选,生成中文摘要,通过邮件和 Bark 推送。/claude-apiReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.
TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens).
SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file)./code-walkthrough为代码仓库生成面向专家评审的代码讲解材料,并可选地为 .c/.py 源文件补充中文注释。当用户说"讲解代码""代码讲解""给专家讲这个特性""梳理主流程和重点函数""这个模块怎么讲""准备评审材料""代码走读",或要求给 .c/.py 文件加文件头注释/函数注释时使用。核心能力:先问用户是否要加注释(默认不加,绝不擅自改源码),再按"一句话定调 → 全景图 → 主流程链路 → 重点函数 → 证据 → 预判追问"的结构输出讲解内容,所有结论必须带真实文件路径与行号。不用于从零起草无源码的文档,也不用于普通文档润色或翻译。