Library

Bot template tutorial

Let your bot prove every screen change before it goes live

By Šarūnas Vaitkus · about a 5-minute read

A code review tells you the code is fine. It doesn't tell you the page looks right on a phone. Your bot can attach screenshots to every interface change, and a second bot can review them against your design rules and reply PASS or FAIL with fixes. Nothing that changes how a page looks goes live without a PASS. You send the prompts below, in order, and you only look at what passed.

Progress0 of 7

What you need

  • A site or app where changes go through pull requests.
  • A second bot, or a separate routine, to act as the design reviewer.
  • About 10 minutes to agree the rules.

How it works

You send a prompt, the bot does the work, and you approve what matters.

Highlighted [brackets] are yours to replace. Copy keeps them in the prompt.

  1. Step 1. Require screenshots on every screen change

    Prompt to send

    For every pull request that changes how a page looks, attach before and after screenshots at desktop width and phone width, of every page it touches. Include the menu open on phone if the change touches navigation. No screenshots, no review.

    Why you're sending it

    Pictures let anyone judge the change in seconds, without reading code.

    What you'll get

    Pull requests with paired before and after screenshots for every affected page.

  2. Step 2. Review the real page, not a mock-up

    Prompt to send

    As the design reviewer, open the preview of the actual pull request in a real browser and review that, not a drawing or a description. Measure what matters: text contrast, tap target sizes, spacing and how the page reflows on a phone.

    Why you're sending it

    The real page is the source of truth. Mock-ups hide the problems that only show up in the browser.

    What you'll get

    Reviews based on the live preview, with measurements instead of opinions.

  3. Step 3. Write down your design rules

    Prompt to send

    Write down the design rules for [your website address] from what's already there: colours, type, spacing, buttons, and what to avoid. Add basic accessibility: readable contrast, tap targets of at least 44 pixels, and a clear focus outline for keyboard users. Show me the rules before you use them.

    Why you're sending it

    A reviewer without rules ends up arguing taste. With rules, a FAIL has a reason.

    What you'll get

    A short rules page the reviewer and the builder both follow.

  4. Step 4. Reply PASS or FAIL with fixes

    Prompt to send

    Reply to each screen change with PASS or FAIL. For a FAIL, list each problem with the page, what's wrong and a short fix the builder can paste straight into its next step, for example "make the menu links at least 44 pixels tall". Small things that don't block a PASS go in a separate list of nits.

    Why you're sending it

    Short, specific fixes are quicker to act on than a long critique.

    What you'll get

    A clear verdict on every change, with fixes ready to hand back.

  5. Step 5. Fix and check again

    Prompt to send

    When the design reviewer says FAIL, fix every listed problem in the same pull request, attach new screenshots and ask for a fresh review. Merge only after a PASS and a passing code review.

    Why you're sending it

    One pull request, one loop, until it's right.

    What you'll get

    Changes that reach you only after they've passed both reviews.

  6. Step 6. Turn repeat critiques into a rubric

    Prompt to send

    Look at the design reviews from the last month. Turn the problems that came up more than once into a checklist, and save it as a skill the reviewer and builder both use.

    Why you're sending it

    If the same note keeps coming back, it belongs in the rules, not in the next review.

    What you'll get

    A design checklist built from real mistakes.

  7. Step 7. Give the builder the rubric up front

    Prompt to send

    From now on, include the design checklist at the start of every brief you give a coding agent for a screen change, and ask it to check its own screenshots against the list before it asks for a review.

    Why you're sending it

    The cheapest fix is the one made before the review.

    What you'll get

    Fewer FAILs, and faster PASSes.

All in one (optional)

Prefer one prompt? Send this instead.

Prompt to send

Add a design gate to [your repo], in this order: before and after screenshots at desktop and phone width on every screen change, reviews of the real preview, written design and accessibility rules, PASS or FAIL replies with short fixes, fixes and fresh reviews in the same pull request, a checklist built from repeat problems, and that checklist in every brief to a coding agent. Show me the rules before the first review. Ask me before any major design change goes live, before deleting anything, spending money or sending anything outside.

What your bot will always ask you first

  • Publishing a major design change.
  • Changing your brand colours, fonts or logo.
  • Deleting pages or components.
  • Paying for a design or testing tool.
  • Sending anything externally.

It bundles its questions, so you're not pinged all day.

Start with the screenshot rule. It changes nothing on its own.

Written by Šarūnas Vaitkus. All IDs, addresses and hosts shown are placeholders.