# 增量实现 (incremental-implementation)

> 以薄而可验证的切片逐步交付改动：实现一小块、测试、验证、提交，再进入下一块。

- 分类: [功能开发](https://www.myskills.tools/zh/categories/feature-development/)
- 来源: 社区 · Addy Osmani
- 代码仓库: https://github.com/addyosmani/agent-skills/tree/main/skills/incremental-implementation (commit cda4542)
- SKILL.md: https://github.com/addyosmani/agent-skills/blob/main/skills/incremental-implementation/SKILL.md
- 安装命令: `npx skills add addyosmani/agent-skills --skill incremental-implementation`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor, Copilot, Gemini CLI
- 权限: read-repo ✓, write-files ✓, shell ✓, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

每个增量都必须让系统保持可构建、可测试的正常状态。

## 执行阶段

1. **选择切片方式** — 优先纵向切片；前后端并行时先定接口契约，不确定性高时先做风险最大的部分。
2. **最小实现** — 先问最简单可行的做法是什么，只改任务需要的部分，范围外的问题记下来而不动手。
3. **测试与验证** — 用仓库自己的命令运行测试、构建、类型检查和 lint，并确认新功能按预期工作。
4. **提交并继续** — 每个增量只改一件事并单独提交，保持可回滚；未完成功能放在默认关闭的功能开关后面。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 需要 | 修改任务所需的代码和测试，不改动任务范围外的文件。 |
| 命令执行 | 需要 | 运行仓库的测试、构建、类型检查和 lint 命令，并执行 git 提交。 |
| 网络外发 | 不需要 | 技能未要求访问网络。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: incremental-implementation
description: Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/incremental-implementation/
