Vibe Coder · Unit 11: Connectors, MCP and Workflows · Lesson 9 of 9

A CI workflow

Engineers: run checks and an agent review automatically on every pull request, so problems surface before merge.

Read the short notes and pictures.Do everything inside a blue frame.

Checks on every change

Continuous integration runs your checks automatically whenever code is proposed. Adding an agent review to the same pipeline gives every pull request a first pass, and branch protection makes the result binding.

A 3D scene of coloured blocks and cards. On every pull request: type-check, lint, tests, build.
Type-check, lint, tests and build on every pull request.

Building the pipeline

  1. Add a workflow file

    Ask Claude Code to write it for your stack.

  2. Run the checks

    The same commands as in CLAUDE.md.

  3. Add the agent review

    With a narrow brief and read-only access.

  4. Protect main

    Required checks and one approval.

A 3D scene of coloured blocks and cards. Protect main: checks must pass, a review is required, direct pushes.
Main requires passing checks and a review.
ActivityBuild stepAn automated workflow

Add CI to your repository

Add a workflow that runs your checks and an agent review on pull requests, and protect main. Prove it with a pull request that fails, then passes.

Done when

Vercel will add preview deployments to the same pull requests in Unit 15.

Keep these

  • CI runs checks on every pull request.
  • Add an agent as a first reviewer.
  • Protect main.