Turn tables faster without rushing anyone: 10 AI skills for the waitlist

max-dwell-time-alert

know the room's legal capacity before the fire warden tells you

How the two work together

Claude thinks it through. Paste the Claude prompt into Claude Code, or drop the folder into your skills folder. Claude does the judgement: what to look for, what is worth doing, what is right.

Codex gets it done. At the hand-off point Claude runs Codex on your machine with one command and passes it the Codex prompt. Codex does the mechanical part and hands the result back. Claude checks it before you see it.

No API key to set up: Claude calls the Codex you already have installed. If Codex is not installed, Claude does that half itself and tells you.

Prompt for Claude

---
name: max-dwell-time-alert
description: Works out the legal maximum number of people your dining and bar areas can hold, using the two calculations a fire risk assessment uses, floor space factor and exit capacity, and flags when a queue pushes the room toward that figure rather than an arbitrary "feels busy" guess. Never invents a capacity number: calculates one from the room's own measurements, taking the lower of the two results. Use when setting the maximum covers your space can hold, including a waiting area where guests queue.
---

# Know the room's legal limit before the fire warden does

Give it the floor area of each space by its use, and the clear width of each exit. Get back occupant capacity calculated both ways, the lower figure that is the actual limit, and a flag for any queue practice that lets the room run past it.

## What it does

1. **Calculate occupant capacity two ways, then take the lower.** "The first uses floor space factors... the second identifies an exit capacity." The rule: "The lowest figure of the two calculations determines safe occupancy."

2. **Use the floor space factor for how the space is used.** 1.0m² per person for "Dining rooms, Seated Lounge/Bar, Restaurants, or similar", 0.5m² for a standing bar, 0.3m² within 2m of the serving point. With fixed seating, the limit is "known from the number of seats provided."

3. **Calculate exit capacity from clear width**, discounting the largest exit where exits sit close together. A 1050mm exit allows up to 240 at low risk; each extra 75mm adds 15 more.

4. **Take the duty seriously.** The operator "will need to calculate the occupant capacity as part of your fire risk assessment." A worked example: a café with "a safe occupancy figure of 250 individuals... which is often full to capacity."

5. **Point the figure at the queue, not just the dining room.** A waiting area is subject to the same floor space factor and can breach its own limit first.

6. **Alert on approach, not breach.** Flag at a stated margin (e.g. 90%) of calculated capacity, so staff slow the queue before the legal limit is reached.

## Then it checks

1. Both calculations are shown for every space, with figures used.
2. The lower figure is recorded as the limit, never the higher.
3. Any discounted exit states why.
4. The queue or bar area has its own calculated limit.
5. An approach-margin alert threshold is stated.

Any check fails: redo that step once. Failed twice: say what is wrong and stop.

## Rules
- Public information only. Never invent a fact, number or quote. Anything sent in someone's name says whose name it is.
- Never state a capacity without showing both calculations and which was lower.
- Never treat a generic number as this venue's figure.
- Working document for a fire risk assessor or local fire and rescue service to verify. Not a substitute for a fire risk assessment.

## Built from
- GOV.UK, "Reasonable expectation of numbers of individuals present", gov.uk/government/publications/terrorism-protection-of-premises-bill-2024-factsheets, read 4 Nov 2026: steps 1 and 4.
- Nottinghamshire Fire and Rescue Service, "Occupancy calculations", notts-fire.gov.uk/business-fire-safety/fire-risk-assessment/occupancy-calculations, read 4 Nov 2026: steps 2 and 3.

Prompt for Codex

# max-dwell-time-alert

## You are given
A list of spaces (`dining room`, `bar`, `waiting area`), each with: floor area in m², use category (`seated dining`, `bar seated`, `bar standing no seating`, `within 2m of serving point`, `fixed seating with known seat count`). The clear width in mm of every exit, and whether any two sit close enough that one should be discounted (judged by Claude). The approach-margin percentage to alert at (e.g. 90%), set by the owner. A live or sample headcount per space, with timestamp, if available.

## Produce
Write into a `./max-dwell-time-alert-output/` folder:

1. `floor-space-capacity.csv`: `space_name`, `area_m2`, `use_category`, `factor_m2_per_person`, `calculated_capacity`, `fixed_seat_count`, `capacity_used`. `factor_m2_per_person` is `1.0`, `0.5` or `0.3`, blank for fixed seating. `calculated_capacity` is `area_m2` divided by the factor, rounded down. `capacity_used` is `fixed_seat_count` where supplied, else `calculated_capacity`.
2. `exit-capacity.csv`: `space_name`, `exit_ref`, `clear_width_mm`, `risk_category`, `base_capacity`, `discounted`, `discount_reason`, `exit_capacity_contribution`. `exit_capacity_contribution` is 0 where `discounted` is `yes`.
3. `occupant-capacity.csv`: `space_name`, `floor_space_figure`, `exit_capacity_figure`, `occupant_capacity_limit`, `which_was_lower`. `occupant_capacity_limit` is the lower figure.
4. `headcount-alerts.csv`: `space_name`, `timestamp`, `headcount`, `occupant_capacity_limit`, `percent_of_limit`, `alert_level`. `alert_level` is `normal` below the approach margin, `approaching limit` up to 100%, `at or over limit` at or above it.
5. `gaps.md` - a numbered list of: any space with no exit width supplied; any discount with no reason recorded; any `at or over limit` row; any space missing a use category.

## Rules
- Codex calculates and records. It never decides which exits to discount, the approach-margin percentage, or a space's use category; those are supplied by Claude or the owner.
- Figures are calculated exactly, never estimated; `calculated_capacity` is always rounded down.
- Never report an occupant capacity without showing both figures it was chosen from.
- Use British English and DD Month YYYY dates. No em dashes; flag any supplied text containing one in `gaps.md`.
- Every file ends with: this is a working document for the owner to check against their current fire risk assessment, and for a fire risk assessor or fire and rescue service to verify. Not a substitute for a fire risk assessment.

## Return
Each file's absolute path and row count. The occupant capacity limit per space, and which figure was lower. Exit capacity contribution per space and any discounted exit with its reason. Every headcount row at `approaching limit` or `at or over limit`. The `gaps.md` item count.

Built from the best public work on this

Sources for max-dwell-time-alert

Everything below was opened and read on 4 November 2026.

1. GOV.UK, "Terrorism Protection of Premises Bill: reasonable expectation of numbers of individuals present (formerly known as capacity calculations)"

https://www.gov.uk/government/publications/terrorism-protection-of-premises-bill-2024-factsheets/terrorism-protection-of-premises-bill-reasonable-expectation-of-numbers-of-individuals-present-formerly-known-as-capacity-calculations, government policy factsheet, read 4 November 2026.

The factsheet explains how an occupant capacity figure is reached under the guidance accompanying the Building Regulations 2010: "The first uses floor space factors to establish a maximum density of individuals depending on how that area is used," and "the second, identifies an exit capacity to determine the maximum number of individuals." It then states the decisive rule: "The lowest figure of the two calculations determines safe occupancy (of individuals) for fire safety."

It also gives a worked example directly relevant to hospitality: "A café on the high street, sells food and drink establishes a fire safety risk safe occupancy figure of 250 individuals at the premises, which is often full to capacity," with the responsible person then assessing "that it is reasonable to expect 250 individuals at the premises at the same time."

Used in steps 1 and 4: the two-calculation, lowest-wins method, and the duty resting on the "responsible person" of the premises.

Where the skill departs: this factsheet is written in the context of the Terrorism (Protection of Premises) Act, which concerns a separate duty about numbers expected to be present rather than the Fire Safety Order's means-of-escape duty directly. The skill uses it only for its clear, publicly sourced explanation of the standard capacity calculation method, which is the same method fire risk assessments use.

2. Nottinghamshire Fire and Rescue Service, "Occupancy calculations"

https://www.notts-fire.gov.uk/business-fire-safety/fire-risk-assessment/occupancy-calculations, fire and rescue service business guidance, read 4 November 2026.

Gives the floor space factors used in step 2: "Dinning rooms, Seated Lounge/Bar, Restaurants, or similar" at 1.0m² per person, a bar area without seating at 0.5m² per person, and the area within 2m of the serving point at 0.3m² per person. For fixed seating it states: "the maximum numbers of people in the Hall, Bar or Restaurant will be known from the number of seats provided."

Gives the exit capacity table used in step 3: a minimum 1050mm exit allows up to 240 people at low risk, 200 at medium risk, and 160 at high risk; a minimum 750mm exit allows up to 120, 100 and 80 at the same three risk levels; each additional 75mm of width over 1050mm adds 15 more people at any risk level. It also states the discount rule: "When calculating the exit capacity you must remember to discount the largest exit or exits if they are close together," and confirms the overall rule: "The occupancy figure for any building is based on the lesser of the two following calculations."

Where the skill departs: this is one fire and rescue service's published guidance, used because other UK fire services publish very similar figures drawn from the same national guidance document (the "CLG guide" referenced on the page) and Approved Document B. The skill treats these as representative working figures and tells the owner to confirm the current figures with their own local fire and rescue service or fire risk assessor, since the page itself carries no update date.

Best public prompt we found for this job

The closest public artefact is the `deal-signals` skill in Anthropic's `knowledge-work-plugins` repository, raw source at https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/sales/skills/deal-signals/SKILL.md. The repository has 34,655 stars, read from api.github.com on 4 November 2026. It is a sales-pipeline monitoring skill, not a safety skill, but the shape matches: watch a changing number against a threshold and only speak up when it crosses one.

The useful part is its discipline about the threshold itself moving with context rather than being fixed everywhere: "Thresholds flex to the cycle: 14-day quiet is wrong for a 30-day cycle," and its discipline about noise: it "only reports things that changed or crossed a threshold, so the digest is short enough to read every time." We took that idea directly into the approach-margin alert: a room's alert threshold is a percentage of its own calculated capacity, not a fixed headcount copied from another room, and the alert only fires on approach or breach, not on every headcount reading.

We did not copy two things. `deal-signals` treats a missed threshold as a commercial risk to flag and move on from; a fire safety occupant capacity is a legal limit calculated from a risk assessment, and the skill never lets Codex set or soften that limit itself, where a sales threshold can be tuned freely by the user. And `deal-signals` has no equivalent of taking the lower of two independently calculated figures, floor space and exit width, which is the one fixed mechanical rule in this skill and the one place it must never be approximated.

Want this running in your business?

I optimise how businesses run — your sales, your visibility, your social media — and build bespoke software where nothing off the shelf fits. The first conversation is free. Work starts from £150 a day.