Robinson 8a

// Case study 02

Teaching an AI the rules of an unfinished platform

Shoppers on 100+ retail sites needed pages that work on every screen, on a platform still being built, so I wrote the platform's rules into an AI skill system, and every migrated block comes out consistent.

  • HTML
  • CSS
  • Bootstrap
  • Gemini (Antigravity)
  • GitHub Copilot
Project
AI skill system for migrations
Context
Nationwide Marketing Group · Platform Specialist & Frontend (Contract via primeWorks)
My role
Designed and wrote the skill system
Who uses it
Me, offered to anyone on the team who wants it
Timeframe
2026 – now

// Outcome

Fewer corrections, on every block.

Colors match the site the moment a block goes in, no layout bugs from old floats pushing text off the screen, image paths already updated, and the retailer's copy left untouched.

Self-reportedColors match the site on paste, no layout bugs from old floats, image paths already updated, retailer copy untouched.

// The problem

A page that breaks the moment it moves.

The retailers we migrate run on old Bootstrap 2, 3 and 4 markup. The new platform runs Bootstrap 5 with its own brand classes, a new link structure and a CDN for images. Move an old block across as it is and it breaks: images vanish, rows snag and jump, buttons lose their styling, links point nowhere.

Each block has to be rebuilt to the platform's rules, and there are many: class names, heading styles, button pairs, more than 130 link mappings, image paths per site. An AI can rewrite markup fast, but on its own it improvises. Autocomplete invented names and text nobody asked for, and once it wrote extra copy into a retailer's section that I had to roll back.

// WHAT THE AI DID NOT KNOW

130+ links, 4 jobs, 1 brand

The platform's link index, its class names, its heading and button rules, and where each site keeps its images.

// The approach

Understand, design, build.

Three decisions, in the order I made them.

  1. 01 · UNDERSTAND

    The AI needed what a new teammate needs

    The model didn't lack skill; it lacked context. It didn't know the platform's classes, its link index or its limits. So I treated it like a new teammate: write the rules down, give it examples, and draw a clear line it must not cross.

  2. 02 · DESIGN

    Rules it can follow, a line it can't cross

    Six decisions shaped the system:

    • One skill per job. Structure, brand, links and images are separate skills, so each loads only when it is needed.
    • Blocks that follow the brand. Custom blocks use the platform's own color and font classes instead of hard-coded values, so if a retailer changes its brand, every custom block changes with it.
    • Data shaped for its reader. A 30 KB link spreadsheet became a hierarchical reference (category, subcategory, product, path) the AI reads in a fraction of the space.
    • Never guess. A link is rewritten only when its text exactly matches the index. Anything else is left alone and listed for a person to check.
    • Structure, not words. The skills touch classes, links and HTML attributes, and skip the text unless I ask. One less thing to review, and light on tokens.
    • Accessibility built in. Heading order, alt text, lazy loading and image dimensions are part of every migration, not a later pass.
  3. 03 · BUILD

    Four skills, two rules, one report

    Bootstrap migration, brand layer, link migration and image updater, plus two always-on rules for headings and per-site variables. Each run ends with a short report: what was updated, what was skipped and why. The rules aren't tied to one tool: I wrote them for Gemini in Antigravity, and GitHub Copilot's agent in VS Code follows them just as well.

Before: a broken hero image, both the desktop and mobile phone lines showing, unstyled buttons, three oversized icons overlapping and brand logos stacked at full size.After: a hero with a living room illustration, a headline and two branded buttons, three aligned promotion cards with small icons, and a row of four brand logos.
Sample retailer home section, before and after the skills: legacy Bootstrap 3 markup moved as-is (broken hero image, duplicate text, oversized icons and logos, unstyled buttons), then the same content with platform classes, CDN images and the brand. The retailer and its brands are invented.

// What happened next

Rules written once, for machines and people.

The same standards reached my team another way. When accessibility became a company priority, my manager let me research WCAG, and I turned it into a training series: 30–60 minute sessions over 4+ months, about 10–15 people each, covering semantic HTML, ARIA labels and accessible images. The skills follow the same rules the team learned.

// Skills it shows

  • AI-assisted development
  • Accessibility (WCAG)
  • Process automation

// What I learned

Shape the tool to the job.

A general-purpose AI brings general-purpose mistakes. Clear rules give it direction and boundaries, and when something drifts, I refine a rule instead of fixing the output by hand. It's what developers have always done with frameworks: build a system on top of powerful infrastructure. Same principle, different tool.

What I'd change

I never measured a block before and after the skills, so I can show fewer corrections but not how many. Next time I would log a baseline first.

// In my story · Chapter 5

Build for the people around me

My teammates became my first users.

// Connected work