Home / Work / Polhena Diving Center

Case study · Personal project

A website and booking portal for a family-run dive centre

Polhena Diving Center is in Madiha, on Sri Lanka's south coast. I ran its operations for six years. Now I'm building its digital side with Claude Code: a website guests can find and book from, and a private portal where the team runs the day.

Role
Product manager and builder
Built with
Claude Code, JavaScript and PHP
Timeline
3 Nov 2026 to now
Status
Live, shipping every day
The Polhena Diving Center home page: an underwater photo, the headline Swim with turtles. Learn to dive., and a booking bar.
The booking page on a phone, with category chips and priced options.
The team portal's Today page in dark mode: guests on the water and the next seven days.
  • 102commits in the first seven days, 3 to 9 Nov 2026
  • 30pages built, including 9 guides
  • 19automated test suites guard every change
  • 0problems in the SEO audit of all 28 live pages, 9 Nov

01 · The problem

Hard to find, hard to run, hard to measure

The search audit on 3 November and the owners' own requests pointed at the same three problems.

Guests couldn't find it

The old site was built on a website builder. Searching for the centre by name showed PADI, directories and booking sites, but none of the centre's own pages. Its listings also disagreed on the phone number, the opening hours and the website address.

Source: the SEO audit, 3 Nov 2026

Bookings lived in five places

Guests booked by phone, WhatsApp and email, through partner hotels and at the desk. Only some reached a calendar, so the boat sheet could miss people who were going out. That affects boat places, gear and pickups.

Guest forms were on paper

Paper gets lost, has to be typed in twice, and slows down the morning. The centre's internet is very weak and guests often lose signal on their phones, so any online form had to survive a dropped connection.

And to see whether any of it worked, the owners had to open three separate Google tools.

Who it's for

Owner

See the whole centre at a glance: bookings, money, reviews and where guests come from.

Front desk

Greet and check in guests, answer messages and avoid typing anything twice.

Instructor or guide

Know who is on the boat, their level, any medical flag and what they signed.

Guest

Book quickly, fill the forms once, hear early if the sea changes the plan, and get a friendly follow-up.

02 · The plan

Two products that share only the bookings

The website sells. The portal runs the day. Keeping them apart means a change to one can't break the other, and guest data stays on the private side.

For guests · public

The website

  • Pages built ahead of time, so Google can read every price
  • Book by request, with confirmation by email or WhatsApp
  • A check-in form that opens on the guest's own phone
  • Guides that answer what people ask before they book

For the team · private

The portal

  • Today: who is on the water and what is waiting
  • Boat sheet: a calendar of every trip
  • Bookings, check-ins, guests and messages
  • Growth: requests and Google search in one page

Five rules the work follows

  • Guest data is sensitive: collect the least and keep it the shortest time.
  • A read-only reviewer agent checks every change before a person sees it: the principles, the security checklist, the content rules and the tests.
  • Every problem solved is logged with its cause and a guard. A repeat gets a test, not another note.
  • Never change the public website to suit the portal.
  • Small steps, each with tests. Agents never deploy.

Roadmap first, code second

Every idea goes onto a roadmap before any code is written. Each one gets a feasibility check (technical, legal and data), a RICE score, a plan where every step says who does it, and acceptance checks. The scores are estimates, not measurements, and the roadmap says so. The roadmap itself stays private to the owners.

03 · How it was built

Seven days, 102 commits, one small step at a time

Every change is a small, tested step. Here is the first week, straight from the project's history.

  1. Tue 3 NovDay 1

    The site goes live: pages, booking requests by email, signed mail, spam protection, a first version of the portal with two-step sign-in, and the SEO audit.

    16commits
  2. Wed 4 NovDay 2

    The team portal takes shape: a Growth page, system checks, the Google Ads plan, and a security audit.

    20commits
  3. Thu 5 NovDay 3

    A calendar boat sheet, bookings added by hand, group bookings, and the working method the AI follows.

    18commits
  4. Fri 6 NovDay 4

    Guest check-in forms with QR, WhatsApp and email links. Analytics with a consent choice. Wombat Wreck facts checked against the national shipwreck record.

    13commits
  5. Sat 7 NovDay 5

    The Growth page gets Search Console numbers. A blog, starting with the 1762 Matara shipwrecks story.

    8commits
  6. Sun 8 NovDay 6

    Multi-day bookings, a phone-friendly booking page, the Open Water referral course, and the first slices of the portal redesign.

    17commits
  7. Mon 9 NovDay 7

    The portal redesign reaches every page. A new guide on snorkeling versus scuba diving.

    10commits

Four decisions that shaped it

Pages built ahead of time

A script builds every page to plain HTML, so Google can read every price and answer without running code. A small script then switches on the live parts: weather and tide, the closed-season banner and the booking bar.

One catalogue behind everything

Prices, options, start times and dive sites live in one place. The price list, the cards, the booking form and the data Google reads all come from it, so a price changes once.

Plain hosting, on purpose

Ordinary hosting the centre already pays for, with no new servers to look after. Outgoing mail is signed, so confirmations land in inboxes instead of spam.

Safe by default

Two-step sign-in, a record of every action, and check-in history that can only be added to, never edited.

The life of one booking

  1. RequestA guest picks a trip on the website and sends a request.
  2. AlertThe team gets an email and sees it in the portal.
  3. ConfirmOne click confirms it. The guest gets a signed email.
  4. Boat sheetThe calendar updates, so everyone on the trip is in one place.
  5. Check-inThe guest fills their own form on their phone, by QR code or link.
  6. Follow-upAfter the trip, a thank-you and a Google review request go out once.

04 · AI

How AI builds it, and keeps building it

AI wrote most of the code. I decided what to build, supplied the facts it couldn't know, and made it prove its work. I didn't train a model. I taught it the business in writing, and gave it ways to check itself and to learn from its mistakes.

A rulebook it reads first

One file of about 60 lines, read at the start of every task: the owners' content rules, the commands to run, and the lessons from past mistakes.

Playbooks for each kind of job

Three skills and eleven playbooks cover features, bug fixes, shipping, QA, security reviews, marketing and sales. Each job starts by restating the goal: the problem, and the smallest change that solves it.

Reviewers that can't edit

Three read-only agents check the work. One reviews every change against the principles and the security checklist. One compares the live site before and after. One checks every public word against the facts.

Guardrails

Work happens on a branch and ends as a pull request. Agents never deploy, never touch guest data or credentials, and never leave a failing test. A person merges.

From the rulebook, word for word

  • Real facts only. No invented numbers, species or claims.
  • Restate the goal first, in your own words: the goal, the problem, and the smallest change that meets it.
  • Prove it on the real thing. Run the page, the form, the live check.
  • Agents work on branches and open pull requests; they never deploy, merge, message anyone, or touch guest data.
  • When the owners mention a feature idea, add it to the roadmap first, before any code.

The daily loop

  1. MeasureRecord the day's numbers: audit, speed, links, searches.
  2. Read yesterdayLook for anything that broke or dropped.
  3. Pick one to threeFrom a ranked backlog, only safe, white-hat changes with facts we already have.
  4. Build and testEvery change passes the test suites and the SEO audit before it goes up for review.
  5. Record whyLog what changed, what it should move, and a date to check. 18 changes are logged so far.
  6. Check it later28 days on, compare the number it was meant to move. Keep the change, or retire it and say why.

Every Monday the weekly review judges changes that have reached their date, and a check on GitHub opens an issue if a page breaks or slows down.

Every mistake feeds the next run

Each role keeps a lessons log. Before a task, the AI reads its log. After a problem is solved, it adds an entry in the same commit: what happened, the cause, the fix and a guard. When the same kind of problem comes back, the guard becomes a test or a check. 37 lessons so far, and 12 were caught by the reviewer agent.

  • 9 Nov · caught by the reviewerError details went into a line that cuts off after two lines, so a phone couldn't show them in full. Guard: only text that may be shortened goes in a shortened slot.
  • 8 Nov · QAA check that passed on empty data proved nothing. Guard: every new check seeds the edge case it is meant to catch.
  • 5 Nov · deployClearing the cache on one address left browsers on an old stylesheet. Deploy steps now clear both addresses.

What I still do

  • Decide what is worth building
  • Turn what the owners need into roadmap items
  • Supply facts the AI can't know: prices, times, depths, history
  • Review and merge every pull request
  • Deploy with the owners, then watch what changes

05 · SEO

How the new build helps SEO

Before anything else I audited the old setup, then fixed things in order of impact. Every change is logged with a reason and a date to check it.

  • Honest sitemap datesEvery page used to say it changed today. Now a date moves only when a page's content does.
  • A linking planGuides and course pages link to each other by topic, so weak pages get found and pass on relevance.
  • One page per searchTwo pages were competing for the same search. Each now owns one intent.
  • Pages nobody else hadNo page anywhere covered the Wombat Wreck. Now a guide does, from sourced facts.
  • FAQs that answer real questionsRewritten from what people actually type into search, not generic filler.
  • Every image describedBing flagged missing descriptions on 37 pages. Now a test fails if any image lacks one.

What the numbers say, one week in

2 → 4 of 6tracked searches where the centre's own site shows up. Same six searches, 4 Nov versus 9 Nov, on DuckDuckGo. The two that flipped: the Wombat Wreck and Open Water course prices.
50 → 68different Google searches that showed the site, in the 7-day windows ending 6 and 7 Nov. Impressions went from 155 to 277 and clicks from 4 to 7.
10 of 10search and AI crawlers can read the site without errors, including Googlebot, Bingbot, GPTBot, ClaudeBot and PerplexityBot (9 Nov).
From the project's daily scoreboard. On launch day, Google's Lighthouse test gave three key pages a phone speed score of 89 to 97, with SEO and accessibility at 100.
What I measured3 Nov7 Nov
Pages in the sitemap2327
Words on the site18,08023,715
Links between pages278368
FAQ answers100128
Guides68
Straight talk

These are small numbers because the site is a week old. The average Google position is around 38, which is page four. More searches show the site every day, and new searches usually start deep, so the average can dip before it climbs. What matters now is the long game: the guides, the reviews and the local listing. That's why every change has a date to check it, about 1 December.

06 · The screens

Guests see an underwater world. The team sees a calm dashboard.

The public site is made to be found and booked from. The portal is made to be quick to read at 6 am before the boat leaves. The portal screens show made-up guests and numbers. Click or tap any screenshot to see it full size.

For guests: polhenadiving.com

  • The home page at the surface, 0 metres: a dive boat on the water and the line Madiha, where every dive starts.
    0 m Madiha
  • At 2 metres, a green turtle swims past under the line Polhena Reef, where the turtles feed.
    2 m Polhena Reef
  • At 11 metres, a moray eel under the line Moray Point, our gentlest reef.
    11 m Moray Point
  • At 26 metres, the Wombat Wreck in dark blue water under the line The Wombat Wreck, sunk in 1975.
    26 m The Wombat Wreck
The descentScroll down the home page and you dive from the surface to 40 metres. Each stop is a real dive site with its own depth, season and booking link.
A guide page: a short answer box, a quick facts table and an outline of the guide.
Guides built to be foundThe short answer comes first, then quick facts and an outline. Made for guests, Google and AI assistants alike.
The booking page on a phone: category chips, two experiences and priced options.
The same booking page further down: a date, a start time and a guest stepper.
The guest check-in form on a phone, step one of five.
Booking and check-in on a phoneCategory chips, big tap targets and a price on every option. The check-in form saves to the phone if the signal drops.
A looping clip of the home page's underwater photo: a small line-drawn turtle swims in circles where the pointer moves, leaving a trail of bubbles.
A little turtle follows your cursorOn a computer, a turtle swims after the pointer and leaves bubbles behind. It stays off pages where people type, and for anyone who prefers less motion.
The thank-you after a booking request, styled as a postcard: a snorkeling photo with a turtle, a stamp and postmark, the line Thank you, Anna. Your request is on its way., a reference number and two buttons.
The thank-you is a postcardAfter a booking request, the guest gets a postcard with a stamp, a postmark and a reference number. It says plainly that this is a request, not a confirmed booking.

For the team: the portal

The portal's Today page in light mode: guests on the water, the next seven days and what is coming up.
The same Today page in dark mode.
TodayThe owners' morning view: who is on the water, what is waiting, the next seven days. A soft look in the centre's colours, in light and dark.
The boat sheet as a week calendar, with trips as coloured blocks on each day.
Boat sheetA calendar of every trip by day, week or month. Add a booking by hand from any day.
The bookings list with status filters and one row per booking.
BookingsNew requests first. Confirm or decline in one click, and the guest gets a signed email.
The check-ins page with a list of guests and a QR code for walk-ins.
Check-insA QR code at the desk. Guests fill their own form, and nothing is typed in twice.
The group booking form: one line per experience with website prices filled in.
Group bookingsEnter a mixed group in one go, with website prices filled in and any agreed discount.
One booking: a reply box, booking details and the guest's check-in link.
One bookingReply to the guest, send the check-in link by WhatsApp or email, and see what they have filled in.
The growth page: tiles for requests, messages and value asked, with week, month and year views.
GrowthRequests, messages and Google search numbers on one page, instead of three tools.
The portal's Today page on a phone.
The bookings list on a phone.
The check-ins page on a phone, in dark mode.
Built for the phone firstThe front desk and the boat crew work from phones. Every portal page works there, in light and dark.

Want something like this?

Let's build the useful thing first.

I'm open to consulting and product advisory work, and always happy to talk about AI products and how teams can work with them.