PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
BuildingManualHardened

Build Until Green

Run production build, fix compile/bundle errors, repeat until exit 0.

Compatible tools:Claude CodeCursorCodex
Start the "Build Until Green" loop.

- Goal: Production build succeeds with zero errors.
- Max iterations: 10
- Between iterations run: `npm run build`
- Exit when: build command exits 0 with no errors.

Steps:
1. Run the production build
2. If it succeeds, stop — exit condition met
3. If it fails, read the error output carefully
4. Identify the first error (not warnings — errors only)
5. Fix the root cause with a minimal change
6. Run the build again to verify the fix and check for remaining errors
7. Repeat until the build is clean

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

How it works

Build Until Green

exit 0errorsRun buildBuild succeeds?Read first errorFix root causeBuild clean
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||