Install
openclaw skills install skill-factory-clawAgent-first engineering knowledge base distilled from OpenAI's Harness Engineering post. Use this skill when the user asks about: agent-first development, agentic workflows, how to structure codebases for AI agents, context management for agents, AGENTS.md best practices, agentic code review, autonomous coding agents, agent-driven architecture, Codex engineering, how to work with AI coding agents, agent engineering principles, progressive disclosure in docs, architecture constraints for agents, error tolerance strategy, technical debt garbage collection, agent-readable observability, self-review loops, merge strategy for high-throughput agent systems, 智能体工程, 智能体优先开发, 智能体驱动编程, AGENTS.md 设计, 上下文管理, 智能体自主性, 代码库对智能体可读, harness engineering, 渐进式披露, 架构约束早期化, 错误容忍策略, 技术债务垃圾回收, 合并策略, 智能体自我审查, Ralph Wiggum 循环, 智能体可观测性.
openclaw skills install skill-factory-claw本 Skill 是对 OpenAI 团队在 Harness Engineering 实践中积累的第一手智能体工程经验的系统化蒸馏。
背景:5个月内,3名工程师仅用提示(无人工编码)、借助 Codex 智能体,构建了约 100 万行代码 的产品。
当用户问到以下问题时,加载本 Skill 的 references/ 文档作为上下文来回答:
harness/
├── SKILL.md # 本文件(入口)
└── references/
├── harness-engineering.md # OpenAI 原文完整蒸馏(主文档)
├── core-principles.md # 10大核心原则速查表
└── extended-sources.md # 扩展信息源索引(Anthropic/GitHub/大V等)
加载知识时:
references/core-principles.md 快速定位references/harness-engineering.mdreferences/extended-sources.md多源整合:本 skill 不仅包含 OpenAI Harness Engineering,还整合了 Anthropic Claude Code、GitHub Copilot Workspace、Aider 等业界最佳实践,持续追踪智能体工程前沿。
| 领域 | 黄金法则 |
|---|---|
| 情境管理 | AGENTS.md ≤ 100行,作为目录指向深层文档;不要巨型配置文件 |
| 架构 | 严格分层(Types→Config→Repo→Service→Runtime→UI),通过 linter 自动强制 |
| 可读性 | UI + 日志 + 指标对智能体直接可读;接入 DevTools 协议 |
| 技术债务 | 黄金原则 + 循环清理 = 持续垃圾回收;小额偿还,不累积 |
| 合并策略 | 纠错成本低 > 等待成本高;减少阻塞门 |
| 文档 | 仓库是唯一记录系统;知识必须 push 进 repo 才对智能体可见 |
| 人类角色 | 设计环境 + 明确意图 + 构建反馈回路;不写代码,写约束 |
| 技术选型 | 偏好 API 稳定、可组合、在训练集中表现良好的技术栈 |
| 架构约束时机 | 严格分层约束是早期先决条件,不要等到百人团队再考虑 |
| 自我审查闭环 | 智能体在本地审核自身变更(Ralph Wiggum 循环),直到所有审阅人满意才合并 |