MCP.so
登录
测试manual

Build Until Green已精选

Run the production build, fix compile and bundling errors, and loop until the build succeeds.

基本信息

分类

测试

目标

production build succeeds

最大迭代次数

10

检查命令

npm run build

退出条件

npm run build exits 0

支持的智能体

Cursor, Claude Code

启动提示词

Start the "Build Until Green" loop.

Goal: production build succeeds
Max iterations: 10
Between iterations run: npm run build
Exit when: npm run build exits 0

Step 1: Run the build. If it fails, fix the first error, then repeat until green.

Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

步骤

  1. 1

    Run build

    Run the project build command and capture all errors.

    npm run build
  2. 2

    Fix build errors

    Fix compile, type, and bundling errors one at a time. Prefer minimal diffs.

  3. 3

    Re-run build

    Run the build again and confirm errors are resolved.

    npm run build

评论

更多 测试 相关内容