{"data":{"slug":"discovered-fd99ea38de7b69187d1d50bac1d76f1427da48ee0a141562","title":"Audit Bus Leaflet","summary":"Compare a finished bus leaflet image against stored bus data for a specific town to identify discrepancies, ensuring accuracy and currency of the leaflet's information.","url":"https:\/\/skillshunter.net\/skills\/discovered-fd99ea38de7b69187d1d50bac1d76f1427da48ee0a141562","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fd99ea38de7b69187d1d50bac1d76f1427da48ee0a141562","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fd99ea38de7b69187d1d50bac1d76f1427da48ee0a141562.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fd99ea38de7b69187d1d50bac1d76f1427da48ee0a141562\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Confirm the town name with the user before proceeding. If no stored data exists for the town, ask whether to generate it first using the `make-bus-leaflet` skill.","instructions":"---\nname: audit-bus-leaflet\ndescription: Audit one or two existing bus-leaflet IMAGES for a British town against that town's already-stored bus data, and write a Word .docx audit listing every discrepancy with a justification, a verdict (is the leaflet wrong, or is our data the stale one?) and a source. The counterpart to make-bus-leaflet \u2014 that skill MAKES the maps; this one CHECKS a supplied leaflet (internal \"Buses within <Town>\" and\/or external \"Buses from <Town> to nearby places\"). Accepts pasted images or file paths, auto-detects which is internal vs external, identifies and confirms the town, checks the Buses folder for stored data (offering to generate it via make-bus-leaflet if absent), then audits SERVICE CONTENT (routes, operators, termini, intermediate towns\/villages, days, fares), POIs \/ landmarks \/ linear features, and SPELLING \/ CONSISTENCY \/ DESIGN. Compares against the stored data AS-IS (offline, no live re-fetch) and flags discrepancies in BOTH directions \u2014 including where the leaflet looks newer than our data and a refresh is advised. Use when asked to audit \/ check \/ verify \/ proofread \/ fact-check a bus leaflet, bus map or bus poster image, or \"is this bus leaflet right?\".\n---\n\n# Audit a bus-leaflet image against the town's stored data\n\n**Names for the parts.** Write every finding in the agreed vocabulary \u2014 `C:\\Buses\\buses-data\\Documentation\\README - Glossary of terms.md` names each element of both sheets and gives it a callout code (`I8`, `E5`), which is far more precise in an audit than describing the thing.\n\n## What this produces\nOne deliverable per run: an **`image-audit_<date>.docx`** written into the town's folder (`C:\\Buses\\buses-data\\Areas\\<Town>\\`), plus a short summary in chat. The DOCX is a full checklist of every discrepancy found between the supplied leaflet image(s) and the town's **stored** bus data, each row carrying:\n\n- **Where** \u2014 internal map, external map, or both.\n- **Category** \u2014 Service content \u00b7 POI \/ landmark \u00b7 Spelling \/ consistency \/ design.\n- **What the image shows** vs **what our data says**.\n- **Verdict** \u2014 `leaflet-error` (leaflet contradicts our authoritative data), `leaflet-newer` \/ `data-stale` (the leaflet looks more current than our data \u2014 refresh advised), `comment` (editorial: spelling, layout, inconsistency), or `ok` (confirmed match, optional).\n- **Severity**, a **justification**, and a **source** (the exact stored file \/ field, or the reason).\n\nThis is the mirror image of **`make-bus-leaflet`**: that skill builds the maps and writes a `disagreements.docx` (bustimes-vs-operator). This skill takes a *finished* leaflet picture and asks \"does it match what we know?\". It never re-fetches live data \u2014 it judges the image against the data already on disk (decision locked: **stored data as-is**).\n\n## Inputs\n- **One or two images.** Either **pasted into the chat** or given as **file paths** on disk (paths are better \u2014 chat may downscale and blur small text). Auto-detect each image's role from its title:\n  - **Internal** = title \"**Buses within <Town>**\" \u2014 a street schematic with POI icons.\n  - **External** = title \"**Buses from <Town> to nearby towns**\" \u2014 a tube-map of routes to their termini. If only one image is supplied, audit just that one and note in the DOCX that the other view was not provided. If a title is unreadable or ambiguous, ask the user which is which.\n\n## Procedure (four steps)\n\n### 1 \u00b7 Identify and confirm the town\nRead the title text on the image(s) to get the town name (e.g. \"Buses within **St Ives**\"). Also note any **version \/ validity stamps** (\"from 1st June 2026\", \"Version 2, Summer 2026\") \u2014 record them; they matter for the currency judgement. **Confirm the town with the user** before proceeding (\"These look like the **St Ives** leaflets \u2014 correct?\"). If you cannot read a town name, **ask the user for it**. Do not guess silently.\n\n### 2 \u00b7 Find the town's stored data (offer to generate if missing)\nLook for `C:\\Buses\\buses-data\\Areas\\<Town>\\manifest.json`. Watch for spelling\/disambiguation (\"St Ives\" vs \"St. Ives\"; two towns sharing a name). If found, read via the manifest the **latest** of each stage you need (see \"What stored data to read\" below).\n\n**If there is no folder \/ no data for that town**, tell the user and **ask whether to generate it now using the `make-bus-leaflet` skill** (\"I have no stored bus data for <Town>. Shall I build it first with make-bus-leaflet, then audit your image against it?\"). If yes, hand off to make-bus-leaflet (S1\u2192S5), then return here. If no, stop \u2014 there is nothing to audit against.\n\n### 3 \u00b7 Audit the image(s) against the stored data\nLook at each image carefully and compare it, line by line, against the stored data. Cover the three locked dimensions (geometry\/stop-order tracing is **out of scope** \u2014 do not grade whether a drawn line follows the exact road):\n\n**A \u00b7 Service content** (both maps) \u2014 for every route, operator, terminus, intermediate town\/village, operating-days note, branch note and any fare shown on the image, check it against `verified-services.json` and `routes.json`:\n  - Route **on the image but not in our data** \u2192 likely `leaflet-newer` (the leaflet may include a service we have under `notOnLeaflet`, e.g. St Ives 5A \/ 69) \u2014 advise a data refresh, don't assume the leaflet is wrong.\n  - Route **in our data but missing from the image** (e.g. St Ives VL14) \u2192 `leaflet-error` *or* a deliberate omission \u2014 flag it, state both possibilities.\n  - **Operator \/ days \/ termini \/ intermediate stops** that differ \u2192 compare to `routes.json` (`external[]` \/ `busway[]` stop lists and `days`) and `verified-services.json`; cite the field. Honour the **side-findings** already recorded in `verified-services.json` (`auditSummary.sideFindings`) and `disagreements.json` \u2014 e.g. a known-stale \"market days only\" note \u2014 and surface them as `data-stale` \/ `comment` rows.\n  - **Fare** shown on the leaflet \u2014 our data carries **no fare unless confirmed**, so treat a fare figure as a `comment` (\"present on leaflet; not in our data \u2014 cannot confirm\") unless stored data says otherwise.\n\n**B \u00b7 POIs \/ landmarks \/ linear features** (internal map) \u2014 check the point-of-interest icons, named places, and the river \/ main-road \/ railway \/ canal labels against `pois.json` (the approved POI list) and `features_geo.json` \/ `river_geo.json`. Flag POIs **named on the map but not in our list**, approved POIs **missing from the map**, and any **mislabelled** landmark or road name. Minor icon-placement nuance is a `comment`, not an error.\n\n**C \u00b7 Spelling \/ consistency \/ design** (both maps) \u2014 your editorial pass:\n  - **Spelling** of place names, road names, operators, headings (cross-check spellings against `atco2name.json` stop names, `pois.json`, and `routes.json` labels).\n  - **Internal vs external consistency** \u2014 a service or place shown one way on one map and differently on the other; a route colour that differs between maps (check against `routes.json` `palette`).\n  - **Legend \/ key completeness** \u2014 every route drawn has a legend entry and vice-versa; every icon used appears in the Key.\n  - **Design \/ legibility** \u2014 mirrored or upside-down text that is not a deliberate label, overlaps, a missing\/!contradictory version stamp, a route colour too close to the river blue (`#9ec9e8`), fonts that look smaller than the reference. Keep these as `comment` rows.\n\nBe specific and cite the source for every finding. When the leaflet and our data disagree and the leaflet plausibly reflects a more recent change, say so explicitly and recommend re-running `make-bus-leaflet` S1 to refresh \u2014 **flag both directions, never blindly assume the leaflet is wrong** (decision locked).\n\n### 4 \u00b7 Write the DOCX\nAssemble the findings into an **`image-audit.json`** (schema in `assets\/image-audit.example.json`) and render it:\n\n```\npython3 \"<SK>\\gen_image_audit.py\" image-audit.json \"C:\\Buses\\buses-data\\Areas\\<Town>\\image-audit_<YYYY-MM-DD>.docx\"\n```\nwhere `<SK>` = `C:\\Buses\\claude-skills\\audit-bus-leaflet\\assets`. The generator groups rows, colour-codes by verdict (red = leaflet-error, amber = leaflet-newer \/ data-stale, grey = comment, green = ok) and writes a landscape A4 table plus a per-category summary. Then give the user a tight chat summary: counts by verdict, the headline discrepancies, and whether a data refresh is advised.\n\n## What stored data to read (via the manifest)\nLet `T = C:\\Buses\\buses-data\\Areas\\<Town>`. Read `T\\manifest.json`, then pull the latest:\n\n| Stage | File | Used for |\n|---|---|---|\n| **S1** | `verified-services.json` | the authoritative service list, `notOnLeaflet`, `auditSummary.sideFindings` |\n| **S1** | `disagreements.json` | known bustimes-vs-operator notes & resolutions to echo |\n| **S3** | `routes.json` | per-route intermediate **stops**, **days**, **operators**, **palette** (the canonical \"what the leaflet should depict\") |\n| **S2** | `pois.json` | approved POI list (names + categories) for the POI audit |\n| **S2** | `atco2name.json` | correct stop \/ place **spellings** |\n| **S2** | `features_geo.json` \/ `river_geo.json` | linear features (river \/ road \/ rail) for landmark checks |\n\n(The make-bus-leaflet skill's `assets\/stage.js` can print the latest run of a stage \u2014 `node \"<MK>\\stage.js\" latest S1` from inside the town tree, where `<MK>` is that skill's assets \u2014 but reading `manifest.json` directly is fine.)\n\n## Locked decisions (do not silently change)\n- **Compare against stored data AS-IS \u2014 never live re-fetch.** \"Currency\" means: does the image match our last-known-good data, and if not, which side looks out of date.\n- **Flag discrepancies in BOTH directions.** A leaflet showing more than our data usually means *our data is stale*, not that the leaflet is wrong \u2014 say so and advise a refresh.\n- **Scope = service content + POIs\/landmarks + spelling\/consistency\/design.** Do **not** grade fine map geometry \/ exact stop-order tracing from the flat image.\n- **Output = one `image-audit_<date>.docx` in the town folder**, plus a chat summary. Mirror the `disagreements.docx` visual style.\n- **Auto-detect internal vs external** from the title; accept pasted images or file paths.\n- **No fare unless our stored data confirms one** \u2014 an on-leaflet fare is a `comment`.\n\n## image-audit.json schema (summary)\n```json\n{\n  \"town\": \"St Ives\",\n  \"auditedOn\": \"2026-06-05\",\n  \"dataUsed\": { \"verifiedOn\": \"2026-06-05\", \"leafletVersion\": \"v1.0_2026-06-05\",\n                \"files\": [\"verified-services.json\", \"routes.json\", \"pois.json\"] },\n  \"images\": [\n    { \"role\": \"internal\", \"title\": \"Buses within St Ives (from 1st June 2026) \u2014 Version 1, Summer 2026\", \"source\": \"pasted\" },\n    { \"role\": \"external\", \"title\": \"Buses from St Ives to nearby towns \u2014 Version 2, Summer 2026\", \"source\": \"pasted\" }\n  ],\n  \"findings\": [\n    { \"image\": \"external\", \"category\": \"Service content\", \"item\": \"Route 5A (Stephensons)\",\n      \"image_shows\": \"5A 'St Ives to Bar Hill' drawn as a service\",\n      \"data_says\": \"verified-services.json lists 5A under notOnLeaflet \u2014 'live, candidate for inclusion at next refresh'\",\n      \"verdict\": \"leaflet-newer\", \"severity\": \"Medium\",\n      \"justification\": \"Leaflet is ahead of our v1.0 data; our data already earmarked 5A for inclusion. Refresh S1 to confirm.\",\n      \"source\": \"verified-services.json \u2192 notOnLeaflet[5A]\" }\n  ]\n}\n```\n- `image`: `internal` | `external` | `both`\n- `category`: `Service content` | `POI \/ landmark` | `Spelling \/ consistency \/ design`\n- `verdict`: `leaflet-error` | `leaflet-newer` | `data-stale` | `comment` | `ok`\n- `severity`: `High` | `Medium` | `Low` | `Info`\n\n","use_cases":["Verify that bus leaflets match stored data for a specific town","Identify discrepancies between leaflet images and stored bus service information","Determine if leaflets reflect more recent changes than stored data"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/PeterC66\/claude-skills\/blob\/58dff47f900dba553ef0c05217b9276f77cb3b66\/audit-bus-leaflet\/SKILL.md","source_commit":"58dff47f900dba553ef0c05217b9276f77cb3b66","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:15:19.000000Z","updated_at":"2026-11-30T06:52:46.000000Z","seo_title":"Audit Bus Leaflet for Accuracy","seo_description":"Compare bus leaflet images against stored data to identify discrepancies, ensuring the leaflet reflects the most current and accurate bus service information.","seo_keywords":["bus leaflet audit","bus data verification","leaflet vs stored data","bus service accuracy check","audit bus route information"]}}