The guest standing in front of you right now: 10 AI skills for service recovery

complaint-escalation-threshold

the line between you sort this and the EHO, a solicitor, or the insurer

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: complaint-escalation-threshold
description: Draws the line between a complaint the manager settles on the spot and one that needs the environmental health officer, a solicitor, or the insurer, using the actual statutory powers and time limits that make each route real rather than a vague sense that something feels serious. Use once a complaint has been triaged and, if service-quality, a remedy decided, to decide whether anyone outside the business needs to be told.
---

# The line between you sort this and you call someone else

Most complaints end with the manager. A few cross into territory where the EHO, a solicitor, or the insurer is the right next call, decided using the actual powers and deadlines that make each route real.

## What it does

1. **Routes a food safety incident to the EHO threshold.** Under section 9 of the Food Safety Act 1990, an officer who believes food fails safety requirements may order it unused or seize it. Under section 10, an improvement notice requires measures "within such period (not being less than 14 days)," and non-compliance "shall be guilty of an offence." Under section 12, a health risk allows an emergency prohibition notice that stops the business immediately. A reaction traced to a labelling failure crosses this threshold.
2. **Routes a discrimination threat to the solicitor threshold.** Section 118(1)(a) of the Equality Act 2010: a claim "may not be brought after the end of... 6 months starting with the date of the act." Once a guest states a refusal was disability-related, that clock has started.
3. **Routes a walkout to the solicitor or police threshold.** Where a walkout-and-dispute-log entry has all three Theft Act 1978 section 3 elements recorded and the amount or pattern is significant, reporting to the police becomes the owner's informed call.
4. **Routes to the insurer where an incident could become a claim.** Standard liability-policy practice is to notify the insurer of any incident that could lead to a claim as soon as reasonably practicable, whether or not fault is admitted or a claim yet threatened.
5. **Keeps thresholds separate.** One incident can cross more than one at once, each recorded independently.

## Then it checks

1. Every complaint has a recorded decision on each threshold, not one overall yes/no.
2. Any food safety complaint involving illness or a labelling failure is flagged for EHO notification.
3. Any disability-linked refusal is flagged with the calculated six-month clock-start date.
4. Any possible-injury incident is flagged for insurer notification, independent of any view on fault.
5. No incident crossing more than one threshold is recorded against only one.

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

## Rules
- Public information only. Never invent a fact, a number or a quote. Anything sent in someone's name says whose name it is.
- Never decide, on the business's behalf, whether it was at fault.
- Never advise whether to actually report to the police; that stays with the owner.
- Never state a specific fine, penalty, or claim value.
- A working threshold assessment for the owner to act on, and for the EHO, solicitor, or insurer to be the actual authority once contacted; not legal advice.

## Built from
- Food Safety Act 1990, ss.9, 10, 12, https://www.legislation.gov.uk/ukpga/1990/16/section/9 (and /10, /12), read 4 Nov 2026: step 1.
- Equality Act 2010, s.118, https://www.legislation.gov.uk/ukpga/2010/15/section/118, read 4 Nov 2026: step 2.
- Theft Act 1978, s.3, https://www.legislation.gov.uk/ukpga/1978/31/section/3, read 4 Nov 2026: step 3.

Prompt for Codex

# complaint-escalation-threshold

## You are given
A triaged complaint or incident: its category, what happened, whether illness, injury, a disability-linked refusal, or payment dispute was involved, and the date. Any linked allergen-incident-response, accessibility-request-handling, or walkout-and-dispute-log record. Claude's decision on whether each threshold (EHO, solicitor, insurer) is crossed, and why.

## Produce
Write into a `./complaint-escalation-output/` folder:

1. `threshold-decisions.csv` with columns: `incident_id`, `incident_date`, `eho_threshold_crossed`, `eho_reason_verbatim`, `solicitor_threshold_crossed`, `solicitor_reason_verbatim`, `equality_act_clock_start_date`, `equality_act_deadline_date`, `insurer_threshold_crossed`, `insurer_reason_verbatim`. `eho_threshold_crossed`, `solicitor_threshold_crossed`, `insurer_threshold_crossed` are each `yes` or `no`. `equality_act_deadline_date` is `equality_act_clock_start_date` plus 6 calendar months, calculated only where `solicitor_threshold_crossed` relates to a disability-linked matter, never estimated.
2. `multi-threshold-check.csv` with columns: `incident_id`, `thresholds_crossed_count`, `thresholds_crossed_list`, `all_recorded_independently`. `thresholds_crossed_count` is a count of `yes` values across the three threshold columns. `all_recorded_independently` is `yes` or `no`; any incident with `thresholds_crossed_count` greater than 1 and `all_recorded_independently` as `no` is listed in `gaps.md`.
3. `notification-log.csv`, appended to any previous log, never overwritten, with columns: `incident_id`, `threshold_type`, `notified_party`, `notification_date`, `notification_method`. One row per actual notification made, as supplied, never invented.
4. `gaps.md` - a numbered list of: any incident with no threshold decision recorded at all; any disability-linked incident with no `equality_act_deadline_date` calculated; any incident crossing more than one threshold recorded against only one; any `eho_threshold_crossed` or `insurer_threshold_crossed` as `yes` with no corresponding `notification-log.csv` entry after a date the owner would reasonably be expected to have acted; and any incident where the reasoning quote is missing for a threshold marked `yes`.

## Rules
- Codex calculates deadlines, cross-checks thresholds, and logs actual notifications. It never decides whether a threshold is crossed, never advises on reporting to police, and never states a fine, penalty, or claim value.
- `equality_act_deadline_date` is always the clock-start date plus 6 calendar months, never estimated.
- Never record a notification as made unless supplied as actually having happened; a planned one stays in `gaps.md`.
- An incident crossing more than one threshold is always recorded against each independently; collapsing it is flagged in `gaps.md`.
- British English, GBP, DD Month YYYY dates. No em dashes.
- Every file ends: this is a working threshold assessment for the owner to act on, and for the EHO, solicitor, or insurer to be the actual authority once contacted; not legal advice.

## Return
The absolute path and row count of each file. Incidents crossing each threshold, and those crossing more than one. The Equality Act deadline for every disability-linked incident. Notifications logged against thresholds crossed, naming any gap. The `gaps.md` item count.

Built from the best public work on this

Sources for complaint-escalation-threshold

Everything below was read direct from legislation.gov.uk on 4 November 2026.

1. Food Safety Act 1990, section 9 (Inspection and seizure of suspected food)

https://www.legislation.gov.uk/ukpga/1990/16/section/9, Act of Parliament, as amended, read 4 November 2026.

Section 9(3)(a): an authorised officer may "give notice to the person in charge of the food that, until the notice is withdrawn, the food or any specified portion of it... is not to be used for human consumption." Section 9(3)(b): alternatively, the officer may "seize the food and remove it in order to have it dealt with by a justice of the peace." Section 9(4): where a notice is given, the officer must decide "within 21 days" whether to withdraw it or proceed to seizure. This is quoted behind step 1 as the first of the EHO's statutory powers, triggered by any report of unsafe food.

Where the skill departs: the compensation provisions in section 9(7) and (8), for food wrongly seized, are not built into the skill, since they concern the authority's own liability rather than a decision the venue needs to make.

2. Food Safety Act 1990, section 10 (Improvement notices)

https://www.legislation.gov.uk/ukpga/1990/16/section/10, Act of Parliament, as amended, read 4 November 2026.

Section 10(1): an improvement notice requires the proprietor to take specified measures "within such period (not being less than 14 days) as may be specified in the notice." Section 10(2): "Any person who fails to comply with an improvement notice shall be guilty of an offence." This 14-day minimum and the offence of non-compliance are quoted behind step 1, alongside the FSA's own guidance (already cited in allergen-incident-response's sources) that the same 14 days is the appeal window.

Where the skill departs: nothing beyond what is already noted for this section in allergen-incident-response's sources.

3. Food Safety Act 1990, section 12 (Emergency prohibition notices and orders)

https://www.legislation.gov.uk/ukpga/1990/16/section/12, Act of Parliament, as amended, read 4 November 2026.

Section 12(1): where the health risk condition is fulfilled, an officer may serve an emergency prohibition notice "impos[ing] the appropriate prohibition." Section 12(5): the enforcement authority must "affix a copy of the notice in a conspicuous position on such premises used for the purposes of the business," and "any person who knowingly contravenes such a notice shall be guilty of an offence." This is the most serious of the three EHO powers quoted behind step 1, reserved for a genuine and immediate health risk rather than an ordinary allergen complaint.

Where the skill departs: the compensation provisions in section 12(10), for a business compensated where a notice is later shown unjustified, are noted but not built into the skill's steps.

4. Equality Act 2010, section 118 (Time limits)

https://www.legislation.gov.uk/ukpga/2010/15/section/118, Act of Parliament, read 4 November 2026.

Section 118(1): proceedings on a claim "may not be brought after the end of (a) the period of 6 months starting with the date of the act to which the claim relates, or (b) such other period as the county court or sheriff thinks just and equitable." This six-month figure is the exact basis for step 2 and the `equality_act_deadline_date` field in CODEX.md: once a disability-linked refusal is raised, the clock the Act itself sets has already started, which is why the solicitor threshold is crossed on the date of the incident, not the date the guest first threatens a claim.

Where the skill departs: section 118(2) to (5) extend this to nine months for certain education-sector cases and to other specific contexts, none of which apply to a hospitality service complaint, so the skill uses only the six-month general rule in subsection (1)(a).

5. Theft Act 1978, section 3 (Making off without payment)

https://www.legislation.gov.uk/ukpga/1978/31/section/3, Act of Parliament, read 4 November 2026.

Quoted in full in walkout-and-dispute-log's own sources. This skill re-uses the same three elements to decide, at step 3, whether a logged walkout has crossed the threshold where a police report becomes a live option, rather than remaining an internal record only.

Where the skill departs: nothing beyond what is already set out in walkout-and-dispute-log's own sources.

Best public prompt we found for this job

The closest public artefact is, again, the `customer-escalation` skill in Anthropic's `knowledge-work-plugins` repository, raw source at https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/customer-support/skills/customer-escalation/SKILL.md. The repository has 34,654 stars, read from api.github.com on 4 November 2026. Its own purpose statement, to "identify the right escalation target" and assess "business impact" across "breadth," "depth," "duration," and "revenue," is the closest public match to the underlying job: deciding who outside the immediate team needs to know, and why, rather than handling everything in place.

We took its core structural idea, that escalation is a named target decision, not a vague feeling that something is serious, and that the decision should be recorded with its reasoning rather than left implicit.

We did not copy its impact-dimension framework (breadth, depth, duration, revenue, time pressure), because none of those dimensions is what actually decides a hospitality escalation threshold. A single guest's allergic reaction crosses the EHO threshold regardless of "breadth"; a single disability-linked refusal crosses the solicitor threshold on day one of a fixed six-month clock regardless of "revenue at risk." The entire basis for each threshold here is a named statutory power or limitation period, not a business-impact score, which is the one thing a generic software-support escalation prompt has no reason to be built around.

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.