Build Loop Codex

buildgreatproducts/builder-os/skills/build-loop-codex

作者 buildgreatproductsfb74cac0fc9dMIT228 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3个月前更新

Use when building features with **Codex** (OpenAI Codex CLI) in any codebase and the work should go through a disciplined build → review → test → fix loop. Triggers on "run the build loop", "build the next task", "continue the plan", "build this feature properly", or any request to implement work from a plan file or a direct feature prompt. Builds from the plan (or the prompt if no plan exists), runs Codex's `/review` on uncommitted changes and fixes every issue found, tests and verifies the feature end to end, fixes anything testing surfaces, and reports back once complete. Repeats until all plan tasks are checked off.

AI 生成的概览

使用 OpenAI Codex CLI,为功能开发执行规范的构建、审查、测试与修复循环。

功能
该技能引导智能体按任务执行质量循环:实现任务,对未提交的更改运行 Codex 的 /review 并修复发现的问题,端到端测试功能,并修复测试暴露的问题。它从计划文件中第一个未勾选的任务开始,若没有计划则依据用户提示进行,并重复循环直到所请求的范围完成。最后给出报告,说明构建内容、计划进度、已修复或推迟的审查发现,以及验证方式。
适用场景
适用于使用 OpenAI Codex CLI 实现功能,且工作需经过构建、审查、测试与修复循环的场景。适合“运行构建循环”“构建下一个任务”“继续计划”,或依据计划文件或直接提示规范实现功能等请求。
运行要求
需要可用的 OpenAI Codex CLI 及其 /review 命令,以及一个代码库。该技能仅为说明文档,不附带脚本;可能需要运行项目的测试和应用程序来验证功能。

Codex Build Loop

Quality-gated feature work: nothing ships on "it compiles" — every increment is built, reviewed, tested end to end, and fixed before the user hears "done."

Source of work

  • A plan file exists (roadmap, refactor plan, or task list with - [ ] checkboxes — search the repo): work the first unchecked task. Tasks are ordered intentionally — never skip ahead. If the plan references spec docs, read only the sections relevant to the current task.
  • No plan (or the request is outside it): build from the user's prompt. Restate it as a verifiable goal with 2–4 success criteria and confirm scope in one message before building.

The loop

Run per task (or per prompted feature). Do not advance until every step passes.

  1. Build. Implement exactly what the task specifies. Simplest implementation that satisfies it, surgical changes, no speculative scope. Match existing project conventions.

  2. Review. Run /review and select "Review uncommitted changes". If the change touches auth, payments, user input, or data access, run a second pass via "Custom review instructions" (e.g. "Focus on security vulnerabilities and unvalidated input"). Fix all findings in scope — bugs, security issues, edge cases, performance, style in files you touched. If the project has a design system spec (design tokens file, DESIGN.md, theme config), check UI changes against it — no hardcoded colors, type, or spacing that bypass tokens. Note pre-existing issues in untouched code for the report instead of fixing silently. Re-run /review until clean. If a finding contradicts the task or spec, the spec wins — flag the disagreement.

  3. Test end to end. Run the task's verification step (or the success criteria). Run the full test suite — everything that passed before must still pass. Add tests for new logic. Then exercise the feature as a user would: run the app, walk the real flow including empty, loading, and error states.

  4. Fix. Anything testing finds goes back through the loop: fix → /review → re-test. Never mark a failing task complete; never start the next task with the app broken.

  5. Continue. Mark the task - [x], update any progress/status line in the plan, and loop to the next task until the requested scope is complete.

  6. Report. When done, tell the user: what was built and plan progress, review findings fixed and anything deferred, how it was verified (tests + flow walked), and what needs their attention next. Be honest about anything flaky or partially verified.

Rules

  • Skipped review or untested work = unfinished work.
  • Don't relitigate plan decisions; if a task seems wrong, ask one specific question rather than guessing.
  • Discovered work no task covers? Surface it and propose a task — never silently expand scope.

来源与署名

来源:buildgreatproducts/builder-os位于skills/build-loop-codex提交fb74cac

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 buildgreatproducts/builder-os 的技能

Product Planner

buildgreatproducts

Vision intake conversation followed by generation of three product documents — `docs/product-vision.md` (strategy and brand), `docs/prd.md` (technical spec for coding agents), and `docs/product-roadmap.md` (phased build plan with task checkboxes). Also captures the founder's answers as `docs/VISION.md`. Use when the founder says "plan my product", "plan a product", "define my vision", "generate a PRD", "create a roadmap", "spec out my idea", "help me build something", or wants to convert an idea into shippable spec documents.

待分类2283个月前更新

Idea Validator

buildgreatproducts

对产品创意进行压力测试,产出包含致命缺陷、竞争、MVP 测试与结论的验证报告。

Business & Finance2283个月前更新

Idea Generator

buildgreatproducts

引导创业者通过结构化对话发现产品创意,并写入 docs/product-idea.md。

Productivity & Workflow2283个月前更新

Design System

buildgreatproducts

Translates an image (or a set of image references — screenshots, mockups, Figma URLs, live websites) into two mirrored design-system artifacts: `docs/design.md` (YAML tokens + prose, following Google's open [design.md](https://github.com/google-labs-code/design.md) format, for the coding agent) and `docs/design.html` (a self-contained, token-driven style guide rendering every token and component live, for the human to read). Reads the imagery, asks targeted clarifying questions, derives the design tokens (colors, typography, spacing, rounded, components), and writes both files. Fully standalone — requires no other document or skill. Use when the founder says "create a design system", "design from image", "translate image to design", "create design.md", "image to design system", "extract design tokens", or shares an image with no other clear intent.

待分类2283个月前更新

Design Better

buildgreatproducts

将 UX/UI 工艺启发式应用于前端代码生成与审查,视觉风格交由设计系统文件决定。

Design & Creative2283个月前更新

Build Loop Cursor

buildgreatproducts

指导使用 Cursor 实现计划功能时,按构建、审查、测试、修复的循环纪律推进。

Software Development2283个月前更新