intent-driven-development
它能做什么
这个工具帮助你把关于产品或技术改动的模糊想法,转化为清晰、可测试的指令。它会明确需要做什么,以及如何验证是否做对了。
适用场景
- ✓想让某个功能构想更清晰时。
- ✓在动手实现之前,想先定义如何测试某项改动时。
- ✓规划安全、数据或集成方面的重要改动时。
技能链接
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/intent-driven-development/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把“为仪表盘数据添加导出为 CSV 的功能”这个想法,整理成验收标准。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先分析可用的技术上下文,然后判断所需的详细程度,并提出少量问题来澄清需求,重点关注可观察、可测试的结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Intent-Driven Development
Produce useful acceptance criteria without turning specification into ceremony. Inspect available context first, expose genuine ambiguity, and choose verification methods that fit the work and its risk.
When to Activate
- User asks to clarify a feature, define acceptance criteria, or de-risk a change before implementation
- Request touches security, authentication, persistent data, migrations, external APIs, or compliance
- User wants to prepare a handoff artifact for another agent or team
- Request is ambiguous enough that the expected outcome is not yet observable or testable
- User explicitly invokes this skill with
/intent-driven-development
Do not activate for trivial edits, straightforward one-line fixes, active debugging sessions, code review requests, or implementation requests whose acceptance conditions are already clear.
How It Works
- Inspect context first — reads the repository, docs, schemas, and test infrastructure for technical facts before asking any question, while treating product/business constraints as something only the user or a product artifact can supply
- Choose depth — selects Quick Capture (3-7 criteria, low/moderate risk) or Full Acceptance Brief (security, data, migration, cross-system changes) based on the risk profile
- Ask minimally — only asks questions whose answers cannot be inferred and that materially change scope or behavior
- Write observable criteria — each AC-NNN describes a starting condition, trigger, expected outcome, prohibited side effect, verification method, and priority; no vague words like "correctly" or "securely" without evidence
- Proceed or hand off — for clear requests with no blocking risks, records criteria and continues; for risky changes, presents blockers and waits for confirmation
- Handle revision — if an AC fails mid-implementation due to architectural constraints, marks it
[revised], updates scope or verification method, increments the revision number, and re-presents only the changed criteria
Examples
Quick Capture — "Add CSV export to the dashboard"
Goal: Authenticated users can download dashboard data as a CSV file.
In scope: Export of currently filtered rows; filename includes date.
Out of scope: Scheduled exports, email delivery, Excel format.
Assumptions: Max row count is under 10k; no PII in exported fields.
AC-001: Export generates file with correct headers
- Scenario: authenticated user, at least one data row visible
- Action: click "Export CSV"
- Expected: browser downloads file with columns [id, name, created_at]
- Must not: expose internal fields or rows belonging to other users
- Verification: automated integration test + manual schema spot-check
- Priority: Required
Full Acceptance Brief trigger — "Migrate user auth to OAuth"
Auth change + external dependency + existing session data → Full Brief with Risk Review table, blocking decisions on session invalidation strategy, and explicit rollback AC.
Existing spec review — user pastes a PRD
Skill reviews it for missing scope boundaries, unverifiable requirements ("the system shall be fast"), and silent assumptions, then returns corrected or supplemental criteria without restarting discovery.
Operating Rules
- Inspect the available repository, documentation, issue, design, and test context before asking for technical facts that can be discovered locally.
- Do not infer product or business constraints from code. Business rules, compliance and regulatory obligations, contractual SLAs, pricing, data-retention policy, prioritization, and target users cannot be read from a repository. Treat them as unknown until the user supplies them or an authoritative product artifact (PRD, contract, policy document) states them. Record them as assumptions flagged for confirmation, never as discovered facts. The repository tells you how the system behaves today, not what the business requires it to do.
- Ask only questions whose answers are required and cannot be safely inferred. Group short, related questions when that saves unnecessary turns.
- Do not block implementation by default. When the user has asked to implement a sufficiently clear change, record key assumptions and acceptance criteria briefly, then proceed or hand them to the implementation workflow.
- Require explicit user confirmation before proceeding only when an unresolved decision could
…
常见问题
什么是“验收标准”(acceptance criteria)?
这是一些清晰的规则,用来界定一个功能何时算完成、何时算正确工作。它就像一份检查清单,确保每件事都按预期完成。
什么时候不应该使用这个工具?
简单的修复、代码调试、代码审查,或者测试条件已经非常明显的情况,都不需要使用它。
遇到有风险的改动时会怎样处理?
对于复杂或高风险的改动(比如涉及安全或数据迁移),它会制定更详细的计划,并在继续之前请你确认。
详情
作者的原始描述
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, straight
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #190
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。