# 意图驱动开发 (intent-driven-development)

> 把模糊或高影响的改动整理成有范围、可验证的验收标准，再进入实现。

- 分类: [需求分析](https://www.myskills.tools/zh/categories/requirements/)
- 来源: 社区 · Affaan Mustafa
- 代码仓库: https://github.com/affaan-m/ECC/tree/main/skills/intent-driven-development (commit ff1bfa1)
- SKILL.md: https://github.com/affaan-m/ECC/blob/main/skills/intent-driven-development/SKILL.md
- 安装命令: `npx skills add affaan-m/ECC --skill intent-driven-development`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor, Copilot, OpenCode
- 权限: read-repo ✓, write-files ✗, shell ✗, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

先看仓库再提问；业务约束只来自用户或产品文档，不从代码推断。

## 执行阶段

1. **先读上下文** — 先读仓库、文档、schema 和测试设施获取技术事实，只问无法推断且会改变范围的问题。
2. **选择深度** — 低中风险用快速记录（3–7 条标准），安全、数据、迁移或跨系统改动用完整验收简报。
3. **写可观察的标准** — 每条 AC 写明前置条件、触发、预期结果、禁止的副作用、验证方式和优先级，不用“正确”“安全”等空泛词。
4. **继续或等待确认** — 需求清楚且无阻塞风险时记录标准后继续；高风险改动先列出阻塞项，等用户确认。
5. **修订标准** — 实现中某条 AC 因架构限制无法满足时，标记 [revised]、更新范围或验证方式，并只重新展示改动的条目。

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

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 部分需要 | 不擅自把验收文档写入仓库、改动项目文件或建分支，除非用户要求。 |
| 命令执行 | 部分需要 | 不运行破坏性测试、迁移、安全探测、压测或付费外部调用，除非用户明确授权。 |
| 网络外发 | 不需要 | 技能未要求访问网络。 |

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

```yaml
---
name: intent-driven-development
description: Turn ambiguous or high-impact product and engineering changes into scoped, verifiable acceptance criteria before or alongside implementation. Use when a user asks to clarify a feature, define acceptance criteria, de-risk a security/data/migration/integration change, prepare implementation requirements for another agent, or make a complex request testable. Do not trigger for trivial edits, straightforward fixes, active debugging, code review, or implementation requests whose acceptance conditions are already clear unless the user explicitly invokes this skill.
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/intent-driven-development/
