夜雨聆风学习资料网

ARTICLE · 1126661

AI 写的代码能跑却越改越烂?把 25 个工程 Skill 装进 Agent,一条斜杠命令走流程

AI 写的代码能跑却越改越烂?把 25 个工程 Skill 装进 Agent,一条斜杠命令走流程

格物致知 MatterMind2026.10.05

深读 · Deep Read

AI 写的代码能跑却越改越烂?把 25 个工程 Skill 装进 Agent,一条斜杠命令走流程

《AI 工程化协作生存指南》第 3 期 · 25 个 Skill

导读

在上一期《告别盲目试错!拆解 AI Hero 学习地图》(10-04 已发:<https://www.aihero.dev/learn> )中,我们拆解了 AI 时代的工程化学习路径。地图页底部的 Next 指引,正是本期的核心——The Skill System(<https://www.aihero.dev/skills> )。如果你的 AI Coding 工具经常写出看似能跑、实则悄悄腐烂的代码库,这一期将为你解开破解之道。

0125 个工程 Skill,按场景分 6 组

02主链从 /grill-with-docs 走到 /code-review

03只装需要的,一条斜杠命令走流程

01摘要DIGEST

AI Agent 不是代替工程标准的黑盒,通过 25 个精细化的工程 Skill,你能让 Agent 像资深工程师一样,按标准严谨地完成每一次代码交付。

02痛点导语PROBLEM

很多工程师在使用 AI 辅助编程时都会遇到同样的难题:AI 写的代码表面上能跑,但越改越烂,项目架构逐渐失控。

页面上的这句话直击痛点:

KEY TAKEAWAY

An agent is only as good as the process you give it. Left to guess, it writes plausible code that quietly rots the codebase.

(Agent 的表现上限完全取决于你给它的流程。如果任由它凭空瞎猜,它只会写出看似合理、却在悄悄腐烂的代码库的代码。)

AI 并不会自动遵循资深工程师的质量标准。当你只给它一段模糊的 Prompt 时,它就只能靠猜测去堆砌逻辑。要让 Agent 像资深工程师一样工作,你需要一套标准化的工程 Skill 系统。

03原理解析PRINCIPLE

AI Skills for Real Engineers 是一套面向追求工程标准工程师的实用 Skill 系统(A practical skill system for engineers who want to use AI without giving up their standards. Install the ones you want, then type a slash command)。

目前该项目在 GitHub 上已获得 276,118 stars,采用 MIT 开源协议,全面适配 Claude Code · Cursor · Codex · Copilot 等主流平台。此外,官方还提供了一门 7 节课的免费邮件课程:Learn how I actually engineer with these (seven-lesson email course) (订阅地址:<https://www.aihero.dev/skills/subscribe> )。

什么是 Skill?

●本质:Skills 是你交付给 AI Agent 的精简、精准的指令集,让 Agent 能够按照资深工程师的习惯和规范来工作(Skills are small, sharp instructions you hand your coding agent so it works the way a senior engineer would)。

●核心作用:每一个 Skill 固化了一个良好的工程习惯(比如审视方案、撰写 Spec、审查 Diff),确保 Agent 每次执行时都保持同一标准(A skill encodes one good habit, so the agent runs it the same way every time)。

●复利效应:Skill 之间可以形成链条,前一个 Skill 的输出正是下一个 Skill 的输入(Skills form a chain. Each one’s output is the next one’s input)。

●不锁平台:Skill 本质上是纯文本文件(plain files),不绑定任何特定平台(plain files, not a lock-in platform),无论你使用 Claude Code、Cursor、Codex、Amp 还是 Copilot 都能通用。

25 个技能的 6 大分组(按使用场景分类)

页面将技能划分为 6 组(Grouped by when you reach for them. Most people start with the main flow):

01 Getting Started|Set up once, then find your way around.

●/setup-matt-pocock-skills <https://www.aihero.dev/skills-setup-matt-pocock-skills> | Set up one repo so the other skills know how it works.

●/ask-matt <https://www.aihero.dev/skills-ask-matt> | Find out which skill to use for the situation you are in.

02 The Main Flow|The idea→ship spine, in order.

●/grill-with-docs <https://www.aihero.dev/skills-grill-with-docs> | Get interviewed about a plan, and record the decisions.

●/to-spec <https://www.aihero.dev/skills-to-spec> | Turn an agreed conversation into a written spec.

●/to-tickets <https://www.aihero.dev/skills-to-tickets> | Split a spec into small tickets an agent can build.

●/implement <https://www.aihero.dev/skills-implement> | Build a finished spec into code, test-first.

●/code-review <https://www.aihero.dev/skills-code-review> | Review a diff against your standards and against the spec.

03 Shaping|Explore an open question and produce a decision/answer that feeds the flow.

●/wayfinder <https://www.aihero.dev/skills-wayfinder> | Chart a large effort as a map of decisions, and settle them.

●/prototype <https://www.aihero.dev/skills-prototype> | Answer a design question with code you then delete.

●/research <https://www.aihero.dev/skills-research> | Get a cited answer, read from primary sources.

04 Upkeep|Keep the codebase and issue list healthy; generate work for the flow.

●/improve-codebase-architecture <https://www.aihero.dev/skills-improve-codebase-architecture> | Find the modules worth refactoring, as a visual report.

●/diagnosing-bugs <https://www.aihero.dev/skills-diagnosing-bugs> | Diagnose a hard bug, starting from a repro that fails.

●/resolving-merge-conflicts <https://www.aihero.dev/skills-resolving-merge-conflicts> | Finish a merge or rebase conflict, hunk by hunk.

●/triage <https://www.aihero.dev/skills-triage> | Sort raw issues into work someone can pick up.

●/wizard <https://www.aihero.dev/skills-wizard> | Generate a script that walks a human through setup.

05 Productivity Skills|Human-facing workflows you run, not about code.

●/grill-me <https://www.aihero.dev/skills-grill-me> | Align on an idea before committing to it.

●/handoff <https://www.aihero.dev/skills-handoff> | Write up a long session so another agent can continue it.

●/to-questionnaire <https://www.aihero.dev/skills-to-questionnaire> | Turn open questions into a doc someone else fills in.

●/teach <https://www.aihero.dev/skills-teach> | Learn a topic across many sessions that build on each other.

●/wait-what <https://www.aihero.dev/skills-wait-what> | Ask the agent to say that again, in plain English.

●/writing-for-agents <https://www.aihero.dev/skills-writing-for-agents> | How to write skills and other documents agents read.

06 Reference Skills|The reusable layer other skills invoke or cite.

●/codebase-design <https://www.aihero.dev/skills-codebase-design> | The vocabulary for designing deep modules.

●/domain-modeling <https://www.aihero.dev/skills-domain-modeling> | Sharpen the words a project uses, and write them down.

●/grilling <https://www.aihero.dev/skills-grilling> | The interview other skills run to stress-test a plan.

●/tdd <https://www.aihero.dev/skills-tdd> | The rules of the red-green-refactor loop.

KEY TAKEAWAY

更新日志补充:系统持续保持迭代,v1 版本(Jun 18, 2026)实现了 63% Token Reduction;v1.1(Jul 8, 2026)上线了 /wayfinder、/to-spec、/to-tickets;最新 v1.2(Aug 5, 2026)新增了 /wait-what、/writing-for-agents 并发布了 Claude Code Plugin。

04Bad Case+SOPBAD CASE

常见 Bad Case(反面模式)

1一口气全装

不看当前工程处于哪个阶段,一股脑把 25 个技能全塞进提示词,导致 Agent 上下文过载、难以精准识别。

2当作提示词收藏夹

把 Skill 当作散乱的 Prompt 存着,没有形成首尾相接的流程链条。

3不知道用哪个就乱敲

不清楚当前处于项目哪一环,随手敲斜杠命令,打乱了正确的研发脊柱。

标准操作流程(SOP)

●步骤 1:准备上下文

打开 <https://www.aihero.dev/skills> 浏览 6 组分类,先确定自己当前处于哪一组(是刚开始 Getting Started、正在走主线 Main Flow,还是在做架构维护 Upkeep)。

●步骤 2:输入安装指令并执行命令

根据团队需求,选择以下两种官方安装方式之一:

推荐方式(本地可编辑模式):

运行 npx skills@latest add mattpocock/skills(挑选你使用的技能和 Agent,安装程序会在项目中写入可编辑的文件)。需要更新时,运行 npx skills update。(详细参考 <https://www.skills.sh/mattpocock/skills> 及 GitHub 源码 <https://github.com/mattpocock/skills> )。

Claude Code 插件方式(托管只读模式):

运行 claude plugins install mattpocock-skills(从官方 marketplace 安装完整集合,由系统自动更新与维护)。

安装后,在编辑器中敲出对应斜杠命令。如果一时不知道选哪个,直接输入 /ask-matt 让 Agent 为你指路。

●步骤 3:校验输出

确认你的项目能够顺畅跑通主线 5 步(/grill-with-docs ➔ /to-spec ➔ /to-tickets ➔ /implement ➔ /code-review),且项目本地生成了可编辑的 skill 文件(或 Claude Code 插件已被正常加载)。

05避坑指南PITFALLS

1坚持按需安装(Install the ones you want)

页面明示“只安装你需要的”。不要盲目加载全部技能,保持 Agent 提示词环境的高效与干净。

2认清纯文件机制(plain files, not a lock-in platform):Skill 是纯文本文件,不锁死在特定工具上,无论使用 Claude Code、Cursor、Codex 还是 Copilot,都可以随时迁移与调用。

3搞清“可编辑文件”与“只读插件”的区别

如果需要根据项目自定义规则,选择 npx 安装方式;如果希望随官方同步更新且无需手动维护,选择 Claude Code 插件模式。

06总结 + 下期预告 + 评论区NEXT

一句话总结:

AI Agent 不是代替工程标准的黑盒,通过 25 个精细化的工程 Skill,你能让 Agent 像资深工程师一样,按标准严谨地完成每一次代码交付。

下期预告:

官方页面提到:“Most people start with the main flow”。下期我们将沿着 02 组 The Main Flow 的核心脊柱(The idea→ship spine, in order),带大家一步步走通从 Idea 到正式 Ship 的完整工程闭环!

评论区互动:

看了上面的 6 组技能分类,你现在最卡在 01~06 组里的哪一组?欢迎在评论区留言交流!

END

深读

格物致知 MatterMind

把复杂的 AI 进展拆成你能用的判断依据。

点赞 · 在看 · 转发,我们下篇见。

AI Heroes · MatterMind

相关学习资料