是时候彻底抛弃古法编程了
AI 编程半年实战经验分享
Leo · 2026
AI 编程半年实战经验分享 — Slidev 演示文稿
layout: center class: text-center
layout: section transition: fade
进展不顺时,解决方案从来不是"再努力一点"
而是退一步追问:Agent 还缺什么?
上下文 · 工具 · 约束
layout: section transition: fade
layout: section transition: fade
sequenceDiagram
participant C as Agent
participant A as 应用
participant D as Chrome DevTools
C->>D: 选择目标页面 + 清空控制台
C->>D: 截取操作前快照
C->>A: 触发 UI 操作路径
A-->>D: 运行时事件
C->>D: 截取操作后快照
C->>A: 应用修复 + 重启
loop 循环直到通过
C->>D: 重新执行验证
end
layout: section transition: fade
上下文是稀缺资源 — 庞大的指令文件会挤占真正重要的内容
什么都"重要" = 什么都不重要 — 信息太多,Agent 只会就近模式匹配
大文件腐烂得极快 — 过时规则的坟场,人停止维护就变成 bug 温床
无法自动化校验 — 覆盖率、新鲜度、所有权,全部失控
AGENTS.md ≈ 100 行目录 → 指向 docs/ 下的真实文档
layout: section transition: fade
layout: two-cols layoutClass: gap-8
::right::
Skill 的优势:
帮我安装这个 skill:https://github.com/leeguooooo/zentao-mcp
sequenceDiagram
participant PM as 上游方
participant Dev as 开发者
participant Agent as Agent
participant YApi as YApi
PM->>Dev: 发送对接需求 + YApi 接口地址
Dev->>Agent: 贴入接口地址
Agent->>YApi: 通过 Skill 读取接口定义
Agent->>YApi: 自动跳转读取关联接口
Agent->>Agent: 理解完整上下文,生成对接代码
Agent->>Dev: 输出实现 + 自动更新本地文档
Dev->>YApi: yapi docs-sync 同步文档
flowchart LR
A[禅道 Bug] -->|ZenTao Skill| B[读取 Bug 详情]
B --> C[定位相关代码]
C -->|Log Skill| D[查询运行日志]
C -->|DB Skill| E[查询数据库]
C -->|KV Skill| F[查询缓存]
C -->|Token Skill| G[验证鉴权]
D & E & F & G --> H[分析根因]
H --> I[修复代码并提交]
layout: section transition: fade
flowchart TD
P[实施计划] --> S1[Subagent 1: 任务 A]
P --> S2[Subagent 2: 任务 B]
P --> S3[Subagent 3: 任务 C]
S1 --> R1[审查: 规格合规]
S2 --> R2[审查: 规格合规]
S3 --> R3[审查: 规格合规]
R1 --> Q1[审查: 代码质量]
R2 --> Q2[审查: 代码质量]
R3 --> Q3[审查: 代码质量]
Q1 & Q2 & Q3 --> M[合并集成]
layout: section transition: fade
layout: center class: text-center
layout: section transition: fade
layout: center class: text-center
layout: center class: text-center
layout: center class: text-center