Build Bot User Guide
1. Executive Summary
Build Bot turns one good live page into many. You clone a page that already works on the store, Aegis keeps it as a template, and Build Bot fills that template from the Range Planner to make a page for each product. Every page lands in the working copy first, where you can open it, test it and download it. A page reaches a Shopify store only when you publish it.
live page ──clone──▶ template ──build (Range Planner)──▶ working copy ──publish──▶ Shopify
Three rules run through the whole module:
Nothing reaches a store by accident. A build only writes to the working copy. Publishing is a separate step, it asks which store and theme, and the live store always asks you to confirm.
A gap stops the publish, not the build. If the Range Planner card is missing a value the template needs (a price, say), the page is still built so you can see it, but it cannot be published until the Range Planner has the value and the page is rebuilt.
A FAQ the PIM doesn't have is left out, not a gap. A template cloned from a product with six FAQs builds a product with five: the sixth FAQ's item is removed from the page, and a missing paragraph of a shorter FAQ is removed the same way. The gallery shows only the PIM's photos: a slide or thumbnail the PIM has no photo for is removed, not shown as "Image to come"; with no photo at all, one placeholder stays. With one photo there are no thumbnails. Every PIM field shows all of its lines, as in the PIM, however many the cloned page had room for:
- lists are rebuilt from the PIM: the buy box shows
buyboxBullet1–6in order (an empty one left off), and a list of a field's lines (the description's, say) has one item per line, each made like the list's first;- paragraphs: each slot takes its line and any lines after it that have no slot of their own (an intro line before a list, say), up to the next slot; the last takes the rest. A bullet takes only bullets;
- a FAQ's answer: its first answer slot takes every paragraph after the question, and any other answer slot it has is left off the page;
- a FAQ's question: an item whose answer comes from the PIM but whose question was kept from the cloned page shows the PIM's question instead. A price, a name or any other slot still blocks.
The price shown is the price charged. Whatever price slot the template's Add to cart holds, the build fills it with the page's own: the members or new-customers price, buy once or subscription, as the Add to cart sells.
The rules live in Aegis. How a clone has to behave (sliders move, add to cart works, and so on) is written down in Settings → Pages → Clones, and every clone and build reads it from there. Editing a rule needs no deploy.
Who can use it
The Build Bot tab, the clone_page MCP tool and the builds domain are open
to superadmins and to users with the Build Bot permission
(access_buildbot). Settings → Pages → Clones is the same.
2. The words used here
| Word | What it means |
|---|---|
| Page type | PDP, LP, FAQ and so on, from Settings → Pages → Page Types. Every template and built page belongs to one. |
| Clone | A live page captured as flat HTML that is right at both phone (375px) and desktop (1280px) widths, checked against the live page, with a design pack beside it. |
| Template | A named clone, such as "Floor Cleaner V1". A page type can have several. Product values in it (name, SKU, prices) are slots such as {{ productName }} that a build fills in. |
| Version | Cloning again under an existing template name makes a new version of that template. The newest version is the one builds use. |
| Default template | The template a page type builds from when you don't choose one. Set it in Pages → Clones → Templates. |
| Built page | One page made from a template: page.html (the Shopify cart) and page_ecommerce.html (the Aegis cart). They are listed under Pages → Clones. |
| Working copy | Where built pages are stored: the builds domain, builds.purdyandfigg.dev. For testing and working on, never what customers see. |
| Publish | Putting a built page into a Shopify theme, on staging or live. |
3. Clone a page into a template
Cloning runs on your own computer, in a real browser, driven by Claude through the Aegis MCP. You don't need the Aegis code.
3.1 Before you start
Claude connected to the Aegis MCP (see the Claude MCP Setup guide).
Node.js 20 or later, and Playwright with Chromium and sharp in a folder of their own. Claude checks for these first. If anything is missing it stops and asks you to install it; it never installs anything itself:
npm init -y && npm install playwright sharp && npx playwright install chromium
3.2 Ask Claude to clone
Say something like "clone a page", or give it all at once: "clone LP https://us.purdyandfigg.com/pages/completestarterkit-offer and call it US complete starter kit offer V1". Claude asks, with multiple-choice questions, for anything you leave out:
- The URL of the live page.
- The page type. A product page is usually PDP.
- The template name. Pick an existing name to add a new version of that template, or type a new one to start a new template.
3.3 What happens
A browser window opens. Leave it alone: live sites turn away headless browsers, so it has to be visible. It takes one to three minutes and goes through these steps:
| Step | What it does |
|---|---|
| 0 | Confirms the page type with Aegis. |
| 1 | Captures the page at 375px and 1280px. |
| 2–3 | Finds the sections that differ between the two widths and merges them, so the clone is right at both. |
| 4 | Removes the CSS the page doesn't use. |
| 5 | Checks the copy against the live page: page height, every section's size, a visual score per section, and that sliders, scroll buttons and add to cart work. A clone that fails is not kept. |
| 6 | Makes the template (product values become slots; prices come from what the buy button shows) and writes the design pack. |
| 7 | Stops before uploading: nothing goes to Aegis yet. |
3.4 Look at it, and propose what is wrong
Before anything is uploaded, Claude opens the clone's preview in its own browser view (the template filled with the PIM's photos and copy, as a build will be) and tells you:
- what became a slot, and the value each holds here;
- anything that still belongs to this one product (a name, a price, a SKU left in the text), which every built page would repeat.
Nobody edits a clone. A clone fixed by hand loses the fix the next time
the page is cloned, so the kit records what it wrote and the upload refuses a
template.html or fields.json changed since. If something is wrong or
missing, Claude proposes a clone rule to Aegis (propose_clone_rule): what
to recognise, what the clone should do, how the check proves it. It arrives in
Playbook Rules marked CLONE RULE, with a Slack alert.
A Clone published to an address that already has a page takes that page over (one page per address): it becomes the Clone's page, under Clones.
Approving is not building. A clone rule goes through four steps:
proposed → approved (its text goes into the clone rules, §9) → a Claude
developer builds it into the clone kit and deploys → Aegis shows it In the
kit. Until then, Playbook Rules shows it as Needs a dev build,
and clones and their checks behave as before. Nobody edits text: the developer
who builds a rule records its number in the kit's code (shared/cloneKitRules.js)
in the same change, and once that is deployed Aegis shows it In the kit and
tells the cloning Claude so. Then clone the page again: a clone keeps the rules
it was made with.
A rule that turns out wrong (superseded by a better one): a superadmin opens it in Playbook Rules and presses Remove from the kit's rules. Its text comes out of PAGE_DESIGN.md (the file's history keeps it) and it moves from Approved to Removed (Status filter). Removed the wrong one? In Settings → Pages → Clones, the file's Version history has Restore on each version: one click puts that version back, saved as a new version that says what it restored. Playbook Rules has the same search and filters as the other tables; Type → Needs a dev build is the list of what is waiting to be built.
The gallery's photos become PIM slots. The kit marks the product's gallery
itself: desktop slides {{ image1 }}…, mobile ones {{ imageMobile1 }}…,
thumbnails at 120px. A page with no gallery it recognises says so.
The PIM's copy becomes slots too. For a product page, the clone reads the
product's record from the PIM (by SKU) and finds where its copy sits on the
page: the description, scent details, delivery and returns, FAQs, reviews,
subtitle and buy-box lines. That section is emptied to one slot, such as
{{ websiteDescription }}, and a build fills it from each product's own PIM
record. The page's wording doesn't have to match the PIM's word for word; the
clone only needs to know where each section goes. An FAQ becomes two slots,
{{ faq1_1 }} for the question and {{ faq1_2 }} for the answer, so the
accordion still works. The clone tells you how many PIM fields it placed.
A page that isn't a product's own page (an LP, say) gets no slots: it is kept exactly as captured. That is what a no-product build (§5.2) is for.
3.5 Upload
When you say it's ready, Claude uploads it, exactly as the kit made it. The template then appears under Pages → Clones → Templates, and on the builds domain's front page.
The session Claude uses lasts two hours. If it runs out, Claude asks the tool again; the folder on your computer is kept.
4. Manage templates
Pages → Clones → Templates lists every page type's templates in one table, each row its newest version: a screenshot of the page as cloned, its type, the page it came from, its versions (click for a window listing them), Used by (how many pages are built from it; click for the list), the live check, who cloned it and the default. Filter by page type, Used / Unused and Active / Archived / All (Active by default), or search. The filters and search are kept when you reload the page. Settings → Pages → Page Types shows each type's template count, and its Templates link opens this tab filtered to the type. Anyone with Build Bot sees the list; Make default, Rename and deleting are a superadmin's; a superadmin can also tick templates and Archive, Unarchive or Delete them, every version of each, at once. A template that pages are built from cannot be deleted (its row says how many; the server refuses too): rebuild or delete those pages first. ⭐ watches a template for this session, and Watching N filters to them.
| Action | What it does |
|---|---|
| Make default | Builds of this type use this template when none is chosen. The default is a template: it always means that template's newest version. A pinned default says so; Use newest goes back to whichever template was cloned last. |
| View | The newest version's own page: where it came from, how it checked, its slots, its files and screenshots. |
| Template | The template's HTML, with its {{ slots }}. |
| Edit HTML | Opens the newest version's template.html in a code editor (CodeMirror). Save as a new version makes the next version, marked edited — it is no longer a capture of the live page, so it has no live check — and the version before stays in the history. Keep the {{ slots }}: a build fills them in. You can add one by typing a PIM field's name, such as {{ tagRoundel }} for the Tags / Roundel text in a gallery badge: the save lists it, and a build fills it from the page's own audience (a members template from the members PDP). A slot Aegis can't fill stops the save and says which. A FAQ, a roundel or a buy-box tag the product doesn't have is left off the page, not a gap. {{ buyboxOtpTag }}, the buy-once option's tag, is the PIM's Buybox subscription tag: the PIM has no buy-once tag. Reviews: {{ review1 }} to {{ review5 }} and {{ reviewer1 }} to {{ reviewer5 }} are the PIM's quotes and names, from the template's own store (a US template gets the US reviews). A live Shopify value: `{{ shopify: product.metafields. |
| Publish to pages | Lists every page built from the template, all ticked. Each ticked page is rebuilt from the newest version, then republished to the same store, theme and way it was last published (a product page switched again, or as a view). When the pages are on both staging and live, choose Staging, Live or Both (Both is ticked). A page not on Shopify, or not on the one you chose, is rebuilt only. Superadmin. |
| In-page upsells | The products in the page's own upsell cards ("Complete your Christmas"), for Non-members and Members, in order: search by name or SKU, and each line shows the card as the PIM prices it for that audience, or why it can't. A page shows its audience's list less its own product, as many as the section has cards. Section is upsell-collection-explore when the template has it. Without it, the window says so and lists the template's other product sliders (such as "Explore the Collection") to pick from, or None: this template has no in-page upsells. A template with no product cards at all says it has none. An audience left empty, or a template never saved, keeps the hard-coded list for the page's sub collection (the Christmas lists). Saved changes reach a page when it is rebuilt: Publish to pages rebuilds and republishes them. Not on an archived template. |
| Cart upsells | What the cart drawer offers on this template's pages, for Non-members and Members: one list for an empty cart and one for a cart with items, each product as a Subscription or One-time. Search by name or SKU; each line shows the product as the PIM prices it for that audience, or why it can't. A product the PIM has no URL handle for says so and offers Find in Shopify: Aegis looks the SKU up in the template's store and shows the product it found, and Use this links the drawer's card to it (saved with the lists; forget drops it, and the PIM's URL handle wins once it has one). Tick Use these lists on this template's pages and save; rebuild the pages to apply. |
| Roundel | A roundel on the product photo of this template's pages, drawn in the page (not baked into the photo) with the settings Loupe's roundels have: shape, colours, size, border, inner ring, rotation, font, each line's size, and where it sits. Phone gives phones a place and size of their own. Its words are the PIM's: a product whose PDP has roundel text (imageRoundel; ` |
| Rename | Renames the template, every version of it. Two templates can't share a name. |
| Download | A zip of the newest version, or of any version from its own row. |
| Archive | Not while a page is built from it, as delete. Keeps the template and its files, but stops offering it: it is never the default by being newest, a new build does not list it, and a rebuild lists it only for a page built from it. Archiving the default clears its pin; the type's newest active template becomes the default, or, with none left, the type cannot build until one is cloned or unarchived. Unarchive brings it back. |
| Delete version | Deletes the newest version, so the one before becomes the newest (any version can be deleted from the versions window). If the default template's only version would go, choose another default first. |
5. Build pages
Build Bot → + Create New Page opens the Page Setup Wizard (Build), laid out like the Shopify page setup:
| Step | |
|---|---|
| 1. Destination | The page type and the store (UK or US, of the regions you have) first, then the template: only that store's templates are offered (a template's region, Templates), with the type's default chosen when it is one of them, and the products listed are that store's Range Plan (…_US SKUs for the US). Changing the store reloads both. With no template for that store, make one: Templates → Options → Copy to US / UK. The built page's store is the product's region in the PIM (UK or US); where the PIM has the SKU in both, the template's region picks which record is used. A product the PIM does not have keeps the template's region. |
| 2. Slack | Send, and a channel. Left on Use routing rules, the rules in Settings → Slack decide; a channel here overrides them for this page. |
| 3. QA & Monitor | The same step as the Shopify page setup: what the page type monitors, then QA (QA this page, unticked by default), Monitor (Monitor this page, unticked by default: a monitored page is QA'd only when it has changed; Check against PIM, unticked by default) and the visual drift threshold. Check against PIM checks the page as published against the PIM each time Monitor checks it, fails that check, and posts a change to Slack once (§8.3); it is greyed out when the page type isn't checked against the PIM or the page has no product, and always on a Shopify or Proxied page. QA, Monitor and the threshold apply once the page is published to the live store (§8.4). |
| 4. Summary | What will be built, with these settings, as the Shopify wizard's summary: each row has Edit back to its step. ✅ Finalise & Build is on this step. |
| 5. Build | The build runs here, step by step, and says what it filled and what is missing, and where to fill it: "Price missing in the Range Plan", or copy and images "missing in the PIM". Close the window at any time; the build carries on. |
Change them later with Options → Edit on the page.
5.1 From Range Planner products
Tick one or more products. The list shows only Range Planner products that
don't have a page of this type yet, and you can search it. Build makes
one page per product: it fills the template's slots from the product's Range
Planner card, adds the card's product image, and builds both page.html and
page_ecommerce.html.
You can build many at once. They are sent in batches of 25, and the progress window has Working copy and Not built tabs so failures don't get lost.
5.2 With no product
Leave every product unticked and a Page name box appears. Give the page a name and press Build page: the template is built exactly as captured, with nothing from the Range Planner. Use this for landing pages and other pages that aren't one product's page.
- A template with no slots (an LP clone, for instance) can only be built this way, so the product list is hidden.
- A PDP always needs a product, because it publishes onto that product's own page.
- The page's folder is named from the page name. If the type already has a page with that name, rebuild it instead or choose another name.
5.3 Gaps
If the Range Planner or the PIM has no value for a slot, the page is still
built: the slot shows as it is (£{{ nonMembersOtpPrice }}), the Gaps
column says ✗ N failed, and the progress window says "publish blocked".
Add the value at its source, then Rebuild.
Click the ✓ pass or ✗ N failed pill to see every slot: where its value came from (Range Planner, PIM or Clone), what it was filled with, and which failed.
Use the clone's text. In that window, any slot can be set to use the clone's own content instead of its source, and set back with Use the PIM again. It applies from the next Rebuild (a button appears), is no longer a gap, and isn't counted as a change by Check against PIM. The clone's text is the cloned product's: fine for generic copy, wrong for another product's scent.
5.4 Rebuild
Options → Rebuild builds the page again from the product's current Range Planner card. It asks which template to use, and suggests the one the page was last built from. A rebuild replaces the files in the working copy; it never changes a page already on Shopify until you publish again.
To change only the upsell cards, set Rebuild to Only the in-page upsells. That one section is built again from the template's in-page upsells and the PIM. The rest of the page (its copy, prices and images) is left exactly as it is. A product's members page gets the same.
5.5 Members pages
A product can have two pages: the one new customers see, and its member
view, the page members reach at /products/<handle>?view=member-<handle>.
A template can hold both: one design, with a members version beside its
own.
- Clone the member view (§3), passing its URL with the
?view=member-…, under the template's own name (e.g. "Sweet Birch PDP"). It joins that template as its members version: its prices are the members' and its copy is the PIM's members PDP. In Templates every template's row shows a Non-members and a Members line in a small box, each with a dot (green with a version, grey without), its newest version, 👁️ and its live check. The PIM decides what is on each page: the Non-members Page is always built, from a members version when that is all there is (its members prices become the new customers', its copy is the PIM's new-customer PDP, what that leaves empty is left off the page, and a "Member exclusive" badge from the member view is taken off); the Members Page needs a members version. The buy box offers what the PIM sells that audience: a purchase option it does not sell them (one-time or subscription) is taken off the page (a ticked one too: the page then starts on the one it does sell), and each one left gets the PIM's variant. Choosing one switches the Add to cart to it (its variant, no selling plan for one-time, its discount code, its price): the clone keeps none of the theme's scripts, so Aegis carries its own for this, on the builds preview and on the published page. If the PIM does not sell the product to an audience, that audience's page is built to redirect to the home page, and publishing puts the redirect where those visitors land. Versions are numbered once across both (v10, not v9 and v1), and the versions window says what each covers: Non-members only or Non-members & Members. A template has a region (🇬🇧 UK or 🇺🇸 US, under its type, with cloned from beneath): the store it builds for, so its builds read that region's Range Plan and PIM records, and only users with that region see it and build from it. It starts as the region it was cloned from; Options → Make it US / UK changes it (every version; not while pages are built from it, which are its region's: copy it instead), and Options → Copy to US / UK makes a copy for the other region as a template of its own, "(US)", leaving this one and its pages as they are. Built for a region other than the one it was cloned from, a page's currency follows the region: £ becomes $ (or $ becomes £) before every price and price slot, never inside its scripts or styles. All regions filters by a template's region and Cloned from by the store of the page it was cloned from. The creator is on the clone line (by …), and the source page shows on wide screens (and in View). A members template cloned under a name of its own (members only) joins its product template by Options → Rename to that template's name. - Build a product from the template (§5.1, or Rebuild): its own page
and its members page (
<product>-members) are built together, the members step in the progress window. The members page's copy, prices, Add to cart variant and stock come from the PIM's members PDP. The product's row in Clones shows both pages, one line each (Non-members, Members): green with a ✓ and where it is live when built, grey when not; the members page has no row of its own. The builds domain lists it straight after its product's page, and each page's details say which it is. - Publish the product's row (§8): its members page goes out first, into
the product's member view, then its own page. The theme's own member
template is kept aside as
templates/product.member-<handle>-pre-aegis.json. If the product's own page then fails, the member view is put back, so a product is never left half published. Options → Roll back undoes both.
A members version is never the page type's default: the default builds a product's own page, and its members page comes with it.
Which audiences a product has is read from the PIM's Availability pills (Members, Non-Members): an audience the product is sold to has a page. Where it isn't, the page for that audience is published as a redirect to the home page of the store it is on. (The audience's slug only finds its row in the stock feed.)
| PIM has | Product page | Member view |
|---|---|---|
| New customers and members | Aegis page | Aegis members page |
| New customers only | Aegis page | redirects home |
| Members only | redirects home | Aegis members page |
A page that only redirects has no gaps: nobody sees its slots, so the empty
ones (a members-only product's new-customer price and copy, say) are not
counted, and the build says "not sold to new customers in the PIM:
redirected to the home page, so its N empty slots don't block the publish".
Its page is the redirect alone: the template's content is left out, so a
visitor never sees an unfilled {{ }} before being sent home. With no Add to
cart on it, its publish only needs the product, to know which page it is.
6. The Build Bot table (Pages → Clones)
One row per built page, with filters for page type, template, store, status (built, archived or all) and group, a search for products and SKUs, and Watching N (shown once you watch a page) to see only your watchlist. The filters and search are kept when you reload the page.
- Tick boxes on the left select rows (the header box ticks the page of the list). A bar appears with Rebuild, Archive, Unarchive, Add to group, Remove from group, Watch and Delete for every ticked page (Archive only for pages not archived, Unarchive only for archived ones; Archive and Delete only for superadmins or users with that permission in User Manager, as on Pages). A bulk rebuild uses each page's own template, its newest version; a progress bar shows the page it is on and the count (e.g. Deleting Daffodil Refill Pack · 19/24), then the total; only failures are listed, with why.
- Groups are shared by everyone. Add to group takes a new or existing name (a new one makes the group); a page's groups show as tags under its name, and clicking one filters to it.
- ⭐ Watch is yours, for this session, like the Pages watchlist.
| Column | |
|---|---|
| Screenshot | The product's main photo from the PIM (the page has no screenshot of its own until it is published): click to enlarge. |
| Product | The page's name and store flag (🇬🇧 / 🇺🇸, the PIM's region since 2026-10-21; a page built before then shows its template's store until it is rebuilt), then a small box with a Non-members and a Members line, each with its own 👁️ (that page as built) and Shopify icon (both ghosted on a line with no page): where that page is published (with ?view= when it went as a view only, and preview_theme_id on a theme that is not live), or else the product's own page or its member view (greyed out when the store has no product with that SKU yet). Each line's dot is green when that page is built and grey when not, and its state is a pill (Live, Not published, gaps), with the reason on hover. Shared by both, at the top of Options: ℹ️ Details (its card, slots, gaps and files) and 🛒 Aegis Commerce (the Aegis cart and checkout page). |
| Type | The page type. |
| Status | One pill, as on the Pages lists: Live (on a live store or a live ecommerce route), Staging, Working copy (on no store), PIM changed, or N gaps. Click it for the window behind it, with the SKU, price and store at the top: Build (when, how long, which template (a link to it) and clone, what is missing), Shopify (each store and theme it is on, view or switched), Ecommerce (the routes made from it), Check against PIM and QA & Monitor, each with its actions on its title line (a step that is off is one line), then the latest history entry, with the rest folded away. |
| SKU | From the Range Planner card ("no product" for a no-product page). The price and the template are in the status window. |
| Gaps | ✓ pass or ✗ N failed: click for every slot and what filled it (§5.3). Failed slots block publishing. |
Options on each row:
| Action | |
|---|---|
| Edit | The page's Slack and QA & Monitor, as set in the wizard: Check against PIM, Test, Monitor, the drift threshold. |
| Publish to Shopify / Republish to Shopify | See §8. It says Republish once the page is on Shopify. |
| Roll back | Puts a product back on the template it used before Publish switched it (§8.1). Only when a publish switched one. |
| Check against PIM | See §8.3. Only on page types set to it. |
| Rebuild | See §5.4. |
| Download | A zip of the page, its card and its details page. |
| Archive / Unarchive | Hides the page from the list and the working copy's indexes; its files stay. |
| Delete | Removes its files and its record. |
7. The working copy (builds domain)
Every build lands on https://builds.purdyandfigg.dev. Its front page lists
every page type with its templates, how many pages are built, and the last
build. Each type has a list of its pages with links to Shopify where they've
been published.
It's private. You only get in with a token from Aegis:
- From Aegis, nothing to do. Links in Build Bot, Clones → Templates and the build windows carry a short-lived token for you. If you open the builds domain directly while you're signed in to Aegis, it sends you through Aegis and straight back, signed in. If you aren't signed in, you sign in to Aegis first.
- For someone outside Aegis: Build Bot → 🔑 Builds access makes a named link that lasts 1, 7, 30 or 90 days. It's shown once, so copy it then. The same window lists every link with when it was last used, and Revoke stops one working straight away.
The link sets a cookie on the builds domain, so clicking around keeps working. If your browser blocks that cookie, the page tells you so.
8. Publish to Shopify
Options → Publish to Shopify.
Staging or Live. The page goes to the store it was cloned from (UK or US).
Theme. The store's live theme is chosen by default and named under the list. Search by name or ID to pick another.
The product check. Aegis looks for the page's SKU on that store, since add to cart needs the store's own product. If it isn't there:
- on staging you can tick Publish anyway, for testing (add to cart won't work);
- on live there's no override.
A no-product page skips this check.
Publish. Staging asks once, with the usual "don't show again" option. Live asks every time in a confirmation window.
A progress window shows each step, and Close appears when it has finished.
Republish. Once a page is on Shopify, Options says Republish to Shopify, and the window opens on the store and theme it went to last. On that theme it says it updates the page already there; choose another theme and it says the page goes there as well.
8.1 What publishing does
| Page type | On Shopify |
|---|---|
| PDP | A product template, product.aegis-<page>, and the product switches to it: /products/<handle> itself shows the built page (in a preview theme, in its preview). What the product used before is recorded, and Options → Roll back puts it back. Tick Publish as a view only to leave the product alone and see the page at /products/<handle>?view=aegis-<page>, beside the current one. |
| Every other type | A page template, page.aegis-<page>, and a Shopify page with the handle aegis-<page> using it, at /pages/aegis-<page>. The aegis- prefix means it can never overwrite the page it was cloned from. |
On the way in, the page is made to work in that theme:
- add to cart uses the PIM's offer for the page's audience (the members
PDP's for a members page):
subVariantId,subSellingPlanIdandsubDiscountCodewhen the template's ticked purchase type is a subscription;otpVariantIdandotpDiscountCodewhen it is buy once, with the selling plan cleared (a buy-once page captured with a plan doesn't keep it). Each purchase option also gets the PIM's discount code for it (the one-time code on the buy-once option, the subscription code on the subscription one, blank where the PIM has none), and the ticked option's code goes with the cart when Add to cart is pressed. The captured page's variant, plan and discount code are never kept. A blank variant stops the build and the publish, naming the field; a template that sells the product a way the PIM doesn't (a subscription page for a buy-once product) says to build it from another template. On staging, the same SKU's variant with the same title. A variant called Unleashed (a price-test placeholder) is never used; - stock and the PIM's redirects come from the PIM's stock feed, read at
build for the non-members PDP's
urlSlug. A forced redirect sends the page there at once, in stock or not; out of stock with a redirect URL sends it there; out of stock without one makes the product's Add to cart read Out of Stock, disabled. A change in the PIM reaches the page on the next rebuild and republish: Check against PIM reports it as stock (§8.3); - cross-sell add to cart buttons are matched to this store's products too (any it can't match are listed in the progress window);
- the page sits inside the theme's own layout, like every other page on the store: the header, footer, announcement bar, cart drawer and the theme's scripts and styles are the store's current ones, so the slide cart, spinners and button states work as everywhere else, and only the page's own sections come from the build. A page cloned from somewhere other than the Shopify store has no place for them and can't be published;
- a sticky add-to-cart bar (if the clone found one) appears once the product's Add to cart has scrolled away, as on live;
- sliders are reset so the theme can build them again; any the theme does not start (its starter was the captured section's own script) are started by the page itself, or have their arrows hidden, so no arrow floats loose.
Staging pages are visible (the store is password-protected). Publishing the same page again updates the same template and page.
8.2 What publishing won't do
- Publish a page with gaps. Fix the Range Planner and rebuild first.
- Publish a PDP on live without the store's product. On staging you can, for testing: tick Publish anyway and it goes up as a page at
/pages/aegis-<page>, since there's no product to put it on. Add to cart won't work, because the store has no such variant. A members page always needs its product. - Switch a product to a members page. A members page only ever takes the product's member view (§5.5).
- Compare prices. The button shows the Range Planner price, but Shopify charges the product's own price. Growth keeps an eye on that.
8.4 QA and Monitor
Argus and QA check routes, so publishing a page to its live store also
gives it one, the same shape as any Shopify page: the store's own address
(/products/<handle>, or its ?view= address when published as a view), the
page type's checks, and a QA suite waiting to be drafted and signed off, as any
new page's is. It is listed as Clones (not Shopify) in QA's Up next and
Monitor's checks, and the status window's QA & Monitor line names it.
- Monitor this page is whether Argus checks it; QA this page off pauses its QA. Saving the page's settings keeps the route in step.
- Its checks are its page type's (Settings → Pages → Page Types → Monitor), applied every time the page is published or its settings are saved, not only when the route is first made. To turn Visual drift off for PDP Clones, turn it off on the PDP type, then republish or save each page's settings.
- A publish ends with Check against PIM, so PIM changed clears (or says what still differs) straight away rather than at Monitor's next check.
- A publish that switched the product links the product's own route if it has one: the address now shows this page. A view is never linked onto another page's route; with one already there, the progress window says so.
- Staging publishes make no route. Roll back and Delete let go of the route; it stays as the product's own Shopify page.
- The Aegis stamp check. Every publish writes a stamp into the page
(
<!-- aegis: <name> · clone #N · built … · published … -->) and keeps it with the publish. Each time Argus checks a Clone's page, it reads the live page's stamp and compares it with the one its last live publish wrote. If the stamp is missing or from another publish (a theme change, a rollback, a hand edit, a publish that did not take), the check fails and says what it found. It is cheaper and more exact than Visual drift, which can be switched off for these pages. A page published before stamps were kept is skipped until it is published again.
8.3 Check against PIM
Options → Check against PIM compares what a page was published with (its name, SKU, prices and PIM copy) with the PIM now: per store it's on, each slot ✓ or ✗ changed. A page not on Shopify yet is checked as its working copy. When something changed: Rebuild, then Republish. A rebuild reads the Range Planner for name, SKU and prices, so a price changes only once the Range Planner has it.
It is a page type setting: Settings → Pages → Page Types → Edit → Content → Check pages against the PIM (on for PDP). Pages of other types don't offer it.
With each Monitor check: tick Check against PIM when you make the page (or later, in Options → Edit). The tick controls it: unticked, the PIM is never checked. Ticked, each time Monitor checks the published page it also checks every store the page is published to against the PIM. A change on the page's own store fails that check ("PIM changed: Price", and PIM shows under checked for); any change posts "PIM changed: … differs from the PIM on UK live: Price, Product description" to Slack, once per change rather than every check. A change in the PIM's stock feed (out of stock, or a redirect set or cleared) is reported as stock. Monitor this page has to be on too. The page's own Slack settings apply, and the update can be switched off in Settings → Slack → What Aegis Sends: the Build Bot section's Options → View updates → PIM changed.
Auto-publish (Settings → Pages → Build Bot, off by default). When it's on and Monitor finds a PIM change on a Clone's own live store, Aegis rebuilds the page from the PIM and republishes it straight away: to the same theme it last went to on that store, in the same way (switching the product, or as a view), with its members page. It only does this for a Clone that is:
- on a live store: staging is never published by a machine;
- switched on: its page is active in Aegis;
- on the store's live theme: the theme it last went to is still the one Shopify has live, checked at the moment of publishing; not rolled back since.
Every other Clone is ignored: its message is the plain "PIM changed: … Rebuild and republish to update it." Otherwise the message says what happened: "Rebuilt and republished automatically to …", or "Auto-publish stopped: …" if a step failed (a Range Plan gap, say). It does this once per change, like the message, so a failed publish isn't retried on every check. With it off, nothing is published, and the message asks a person to republish.
9. The rules every clone follows (Settings → Pages → Clones)
Settings → Pages → Clones holds the clone rules (its actions are in an Options menu):
- PAGE_DESIGN.md: the behaviour rules for every page type.
- Extra rules for (type): optional extra rules for one page type, added after the shared ones.
The clone kit reads them from Aegis every time it runs, so an edit applies to the next clone with no deploy. Every save is kept as a version. The shared rules today:
| Rule | |
|---|---|
| PD1 | Sliders move. |
| PD2 | In-page buttons scroll to their target. |
| PD3 | Links go where they go on the live page. |
| PD4 | Forms point at the shop. |
| PD5 | Add to cart is Shopify's cart (page.html). |
| PD6 | The ecommerce page uses the Aegis cart (page_ecommerce.html). |
| PD7 | On a Shopify store, the theme runs the page -- and renders its own header, footer and cart. |
| PD8 | A sticky add-to-cart bar follows the product's button. Needs a clone made after 2026-10-06. |
10. Troubleshooting
| What you see | Why, and what to do |
|---|---|
| The clone stops at step 5 | It didn't match the live page closely enough, so it isn't kept. Claude reports the section and the score. Try again (a pop-up or animation caught mid-way can cause it). If it keeps failing, the page needs a rule in Settings → Pages → Clones. |
| Claude says Playwright or sharp is missing | Install them (§3.1) and ask Claude to carry on. |
| "Publish blocked" / a Gaps entry | The Range Planner card is missing that value. Add it, then Rebuild. |
| "No product with SKU … on the store" | The store doesn't have the product yet. Create it in Shopify, or tick the testing override on staging. |
| The 🛒 Aegis Commerce page's add to cart does nothing | The product isn't in the Aegis catalogue for that store (Ecommerce → Products). Add it, then rebuild. |
| The builds domain says "This needs a link from Aegis" | Open the page from Build Bot, or ask for a link (§7). |
| The builds domain says your browser didn't keep the cookie | Allow cookies for builds.purdyandfigg.dev and try again. |
| A template doesn't appear in New page | It belongs to another page type, or the clone was never uploaded (§3.5). |