ai-first-engineering
它能做什么
这份指南帮助团队在 AI 编写大部分代码的情况下组织工作。重点是如何规划、审查和测试 AI 生成的代码,确保一切都能正常运行。
适用场景
- ✓确定团队如何与 AI 生成的代码协作时。
- ✓制定审查 AI 所写代码的规则时。
- ✓决定 AI 生成的代码中,哪一部分由谁负责时。
技能链接
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/ai-first-engineering/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们应该如何组织团队,才能让 AI 高效、安全地帮我们写代码?”
每周 5 个新技能,1 分钟读完。
工作原理
指南认为,详细的规划和测试比编码速度更重要。它还建议软件架构要清晰,便于 AI 理解,并配合能验证一切按预期运行的测试。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AI-First Engineering
Use this skill when designing process, reviews, and architecture for teams shipping with AI-assisted code generation.
Process Shifts
- Planning quality matters more than typing speed.
- Eval coverage matters more than anecdotal confidence.
- Review focus shifts from syntax to system behavior.
Architecture Requirements
Prefer architectures that are agent-friendly:
- explicit boundaries
- stable contracts
- typed interfaces
- deterministic tests
Avoid implicit behavior spread across hidden conventions.
Code Review in AI-First Teams
Review for:
- behavior regressions
- security assumptions
- data integrity
- failure handling
- rollout safety
Minimize time spent on style issues already covered by automation.
Hiring and Evaluation Signals
Strong AI-first engineers:
- decompose ambiguous work cleanly
- define measurable acceptance criteria
- produce high-signal prompts and evals
- enforce risk controls under delivery pressure
Testing Standard
Raise testing bar for generated code:
- required regression coverage for touched domains
- explicit edge-case assertions
- integration checks for interface boundaries
常见问题
为什么现在规划变得更重要?
AI 来写代码时,最关键的是给出正确的指令,并确保最终结果符合预期,而这依赖于良好的规划。
审查 AI 写的代码时应该重点关注什么?
重点关注代码的行为是否符合预期、是否安全、错误处理是否妥当,以及上线后会不会出问题。格式之类的问题交给自动化工具处理即可。
哪些代码应该避免让 AI 生成?
避免生成行为隐蔽或规则不清晰的代码。更推荐结构清楚、功能可预测、测试明确的代码。
详情
作者的原始描述
Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #134
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。