Case study
Pub Audit: building a compliance app with AI, as a working GM
The problem
Every pub gets audited: by area managers, by environmental health, by licensing officers, by fire inspectors. Most GMs also do their own walk-round. But the tools are usually a company spreadsheet, a clipboard, or an expensive system tied to one pub group.
I wanted something I'd use myself:
- A proper front and back of house audit, on my phone.
- It tells me what the law actually says.
- It takes photos as evidence.
- It turns the problems into an action plan with deadlines.
- It works in a cellar with no signal.
It also had to belong to no one's company and hold no one's data.
What it does
- 119 checks in 15 sections, from the street outside to the cellar, the kitchen, fire safety and HR. Each check is marked as a legal requirement or good practice, with the law it comes from and what "good" looks like.
- England and Wales. Checks that only apply in one country switch on and off, for example Wales's 65p minimum unit price and its compulsory food hygiene rating display.
- Audit the whole site or just part of it: food safety, licensing, health and safety, legal requirements only, or your own pick of sections.
- Scores that mean something. Yes, Partly and No score 2, 1 and 0, and N/A is left out. A failed critical item, such as a blocked fire exit, overrides the score: a pub isn't "Good" with a fire exit blocked.
- Every No becomes an action, with a deadline set by risk: critical items now, legal items within 7 days, good practice within 30.
- Progress over time. Each audit is compared with the last one for the same pub: what's fixed, what's new, and repeat issues.
- Photos and a printable report, ready to save as a PDF.
How I built it with AI
I used Claude as my build partner. It wrote the code, researched the law and drafted the content. My job was the brief, the decisions, the checking, and saying no.
| Stage | What AI did | What I did |
|---|---|---|
| Brief | Asked the questions that shaped it | Set the scope from running pubs: phone-first, offline, legal basis, photos, actions |
| Content | Drafted the checks and guidance, citing the law | Shaped them around how audits really run. I used company audit packs only to spot missing topics, never copying their wording, forms or scoring. |
| Build | Wrote the app, the scoring logic and the tests | Reviewed every version and chose what to change |
| Design | Drew logo routes and applied the brand | Rejected the first identity as too "AI-looking", supplied vintage references, and picked the final route |
| Release | Codex configured DNS and HTTPS and checked the live and offline app. | Directed the launch and approved the setup. |
Decisions that mattered
Keep the data on the phone
Audits, photos and actions are stored on the device. There’s no sign-up, and a backup file lets me move an audit to another device.
The trade-off is no syncing between devices or across a team. I've written that down as the next big step, not hidden it.
Critical beats average
A plain average can score 90% with a fire exit blocked. That's the most dangerous number an audit can show. So from the start, a failed critical item overrides the rating and sits at the top of the report, and it gets an "immediately" deadline.
Inspired by, never copied
The brand draws on 1950s to 70s pub ephemera: beer mats, pop labels and travel guides. When the first round of designs sat too close to real brands, I set a rule. Every piece must differ from any one reference in at least two of colour, type and layout, and never borrow a live drinks brand's look.
Loud outside, calm inside
The first branded version looked fun but not serious enough for something an inspector might read. So the loud brand lives on the website and the home screen. The working screens and the report look like a well-printed form instead: ruled lists, stamped labels and plain type.
Testing
- 14 unit tests on the scoring, scope and comparison logic.
- Live browser checks confirmed HTTPS, an offline reload and opening the New audit screen while offline.
- Readability. The primary controls and answer buttons have a minimum height of 44 pixels.
Result
A free, working audit app on its own domain, built in my spare time around running a pub, by directing AI rather than writing the code by hand.
What I'd do next:
- Get feedback from other GMs.
- Publish it on Google Play.
- Then, if there's demand, add team accounts so an area manager can see every site.
Pub Audit is guidance, not legal advice. The sample audit and screenshots use a fictional pub.