agentsclimarketplace

Comah safety report assistant

Skill ashley-eyekyam/hse-leadership-skills/skills/comah-safety-report-assistant

Structures the COMAH / Seveso III Safety Report elements — MAPP, the safety management system, establishment description, major-accident scenario identification, the ALARP demonstration framing, and the internal emergency plan — and records the duty-holder's content into the report argument. Assistive: it assembles and structures the argument and never produces the Safety Report autonomously; QRA and consequence modelling are done externally, with [GAP] recorded for any unsupplied element. Decision-support only; a competent person must review the output.From its SKILL.md

Install
npx -y skills add ashley-eyekyam/hse-leadership-skills --skill comah-safety-report-assistant

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

13.1 KB, as published. Nobody here has run it

Comah Safety Report Assistant

An assistive (Tier-4) skill that structures the COMAH / Seveso III Safety Report elements — MAPP, the safety management system, the establishment description, major-accident scenario identification, the ALARP demonstration framing, and the internal emergency plan — and records the duty-holder's content into a defensible report argument. It HoC-ranks the risk-reduction measures with controls and tracks the action plan with smart_actions. It never produces the Safety Report autonomously: QRA and consequence modelling are external, and any unsupplied element is recorded as [GAP], never invented.

When to use this skill

Use this skill to structure or assemble a COMAH / Seveso III Safety Report for a named upper-tier establishment — e.g. "structure our COMAH Safety Report", "set out the MAPP and SMS sections", "frame the ALARP demonstration". It is for UK/EU duty-holders. It structures the argument and records the duty-holder's content; it never fabricates the establishment's scenarios, ALARP numbers, or QRA — those are external inputs the skill organises. If the request is vague, the intake forces the specific establishment and tier first.

<!-- hse:block:deid:start -->

Data Protection & De-identification (MANDATORY — apply before drafting)

Apply this BEFORE you draft anything. Treat injury, illness, and any health detail as the highest sensitivity. Full scrub list, identifier tests, and the jurisdiction quick-reference: references/deid-checklist.md.

  1. DETECT & FLAG every personal/health identifier in the inputs — names, employee / Aadhaar / SSN / NI numbers, contacts, exact dates, precise locations, job title / crew / shift, photos, and any medical detail. List what you found before drafting. If unsure whether something is identifying, treat it as identifying.
  2. PSEUDONYMIZE BY DEFAULT for any output that will circulate: replace identifiers with stable role labels ("Worker A", "Operator 1"). Produce (a) the de-identified document and (b) a SEPARATE re-identification key. Never put the key or any name↔label mapping in the document. Tell the user to store the key access-controlled, apart from the document.
  3. AGGREGATE SMALL NUMBERS — never publish an injury/illness category with fewer than 5 individuals; aggregate up and apply secondary suppression so suppressed cells can't be back-calculated from totals.
  4. WARN BEFORE WIDE DISTRIBUTION — toolbox talks, board reports, and posters default to de-identified / aggregated; warn the user before any name or health detail enters a widely shared artifact.
  5. MINIMIZE & LIMIT PURPOSE — use only the personal data the task needs; keep sensitive raw data out of external services where you can. When in doubt, ask before including it.
<!-- hse:block:deid:end --> <!-- hse:block:kb-selection:start -->

Knowledge base (read ONE matching file — never load all)

Resolve the user's jurisdiction first. Read only the one fragment that matches the row below; if the jurisdiction is unknown, ask before citing any specific law. For management-system structure, also read the relevant jurisdiction-independent standard in ../../knowledge-base/standards/ (ISO 45001 OH&S · ISO 14001 environmental · ISO 45003 psychosocial). Always apply ../../knowledge-base/prompt-snippets/hierarchy-of-controls.md (KB-SNIP-HOC) to every control recommendation. For any benchmark/figure, look up the ID in the relevant _registry.yaml, then read ONLY the named file — and quote its source+year.

<!-- hse:block:kb-selection:end --> <!-- The jurisdiction ROWS below live BELOW the :end marker: per-skill, presence-only (rule-2 presence check, never byte-diffed). Author the rows for the jurisdictions this skill serves; rule-9 checks every path/ID resolves against the KB registries. -->
JurisdictionRead
India../../knowledge-base/regulatory/in-factories-act.md (+ in-state-forms.md for the user's state)
UK../../knowledge-base/regulatory/uk-hswa.md
USA../../knowledge-base/regulatory/us-osha.md
EU../../knowledge-base/regulatory/eu-osh.md
UnknownAsk before citing any specific law
UK / EU (COMAH)../../knowledge-base/regulatory/uk-comah.md (KB-REG-UK-COMAH — COMAH 2015 / Seveso III duty map)

Workflow

Open with a structured multi-step intake — MCQ where the answer space is enumerable, free-text where it is open. Ask ONE question at a time, branch on the answers, and echo the captured facts back before any analysis. Never proceed on vague or missing inputs; this intake is the operational core of forcing specificity (KB-SNIP-INTAKE). (Intake is a Workflow convention, not a sixth block.)

Step 0 — Structured intake (run this first, one question at a time)

The full typed, branched intake — the intake-coverage manifest, the question table (establishment · regime/tier · substances & thresholds · the six Safety-Report elements of KB-REG-UK-COMAH · external QRA/ALARP provenance · environs receptors · author · review trigger), the EU-Seveso member-state branch, the lower-tier MAPP-only branch, the echo-back, and the refuse-on-vague anchors — lives in references/intake.md. Run it before any assembly: confirm the tier first, elicit the inputs for each Safety-Report element, and record [GAP] for any element or QRA/ALARP figure not supplied (the skill records external numbers, it never computes or invents them).

Then: analyse / apply the domain method → validate the draft against references/QUALITY_CHECKLIST.md → produce the output via the Output format section below. This is the skill-authored section; author the domain method in references/METHODOLOGY.md.

<!-- hse:block:orchestration:start -->

Agentic Execution (Orchestration Block)

You are the ORCHESTRATOR for this skill. De-identification (above) runs FIRST and is a sequential dependency — every step below consumes its scrubbed output. Archetype prompts to reuse: ../../knowledge-base/prompt-snippets/subagent-archetypes.md (KB-SNIP-ARCHETYPES).

Step 0 — Triage: fan out at all?

Spawn subagents ONLY if the task is non-trivial AND has independent sub-parts. Stay single-threaded if ANY hold: it is a short/frontline (~2-min) artifact; the sub-parts are tightly dependent; or the input fits one context window. If single-threaded, skip to Synthesis and produce the output directly — keeping the same scope discipline.

Step 1 — Plan

Decompose into INDEPENDENT jobs. Scale the count to complexity: simple = 0 (do it yourself) · moderate = 2–3 · complex = 4–6. Never exceed MAX=6.

Step 2 — Fan out (parallel subagents)

Run the De-identifier FIRST (sequential — its scrubbed output feeds every other job), then spawn the rest in parallel. Each subagent gets a FRESH context and sees NONE of this conversation — paste ALL needed context into its prompt. Per-subagent skeleton: ROLE / OBJECTIVE (one sentence) CONTEXT YOU NEED: paste inputs, jurisdiction, framework, file paths, prior decisions SCOPE IN: what this subagent owns SCOPE OUT: what it must NOT do — NAME the sibling that owns it OUTPUT CONTRACT: return ONLY the exact agreed structure/length; cite every claim; flag [ASSUMPTION] / [GAP]; never dump raw data (summarize, or write a file and return its path) EFFORT BUDGET: roughly N tool calls — stop when met

Step 3 — Synthesis (you)

Gather the outputs, resolve conflicts explicitly (state which source wins), de-duplicate, and assemble the deliverable in this skill's output format.

Step 4 — SME Review & Sign-off (MANDATORY — regulatory/safety output)

Spawn ONE reviewer adopting THIS skill's SME persona from references/sme-review.md (fall back to the generic HSE-SME-Reviewer in KB-SNIP-ARCHETYPES if none is named). Give it the draft + the inputs + the output contract. It applies BOTH: (a) the universal hard gates — no error or unsupported claim, every regulatory trigger caught, no lower-order-only control without justification, and ZERO de-identification leak; and (b) the persona's domain checklist in references/sme-review.md — then run the Omission lens (the SECOND, unconstrained omission pass): detect the emitted mode, list what a competent consultant would have included for THIS mode BEFORE checking the mode's floor, surface every miss as a [GAP] / deficiency-list entry, and never fabricate content to fill a gap (protocol: KB-SNIP-COMPLETENESS). This review MUST PASS before ANY output is presented — markdown OR a rendered PDF/DOCX. Fix everything it raises and re-run until clean. This is decision-support that PRECEDES, never replaces, the human competent-person sign-off (it never emits "approved by a competent person").

Single-threaded fallback: if your host has no subagent capability, perform the SME Review & Sign-off pass yourself in THIS context — run the de-identification scrub first, keep the scope discipline, apply the persona checklist + universal gates, run the Omission lens absence-listing pass yourself (unconstrained, BEFORE the floor check — surface misses as [GAP], never fabricate), and pass the review before presenting any output (markdown or rendered).

<!-- hse:block:orchestration:end -->

Subagent roster for THIS skill

<!-- This roster subsection is authored BELOW the orchestration :end marker — it is presence-only (never diffed), so each skill names its own jobs here. -->

For a non-trivial task the triage gate may fan out to:

  • Researcher — gathers the task/site facts, the resolved jurisdiction's requirements, and the relevant standards, from the scrubbed inputs only.
  • Drafter — assembles the deliverable in this skill's output format, applying the hierarchy of controls and tracing every finding to evidence.
  • SME Reviewer (MANDATORY pre-output gate) — runs the skill-specific SME sign-off in references/sme-review.md (COMAH/Seveso Safety-Report author + QRA-provenance lens) before ANY output: COMAH-element completeness, ALARP-as-demonstration, and every quantitative figure externally sourced — never computed or invented.
  • Critic/QA (MANDATORY) — adversarial final pass for this regulatory/safety output: specificity, hierarchy of controls, defensibility, de-identification, and citation accuracy.

Simple single-subject tasks run single-threaded — no subagents.

<!-- hse:block:report-output:start -->## Output format

Assemble a report.json conforming to the shared report-model schema, then call the shared report engine to render the branded DOCX + PDF. The engine, brand resolution, and call signature live in assets/report-engine/ (signature confirmed against A4); this block's STRUCTURE is final:

  1. Build report.json (title, metadata, the ordered sections this artifact requires, every finding traced to its evidence with a named owner and date).
  2. Resolve branding: the user's brand.yaml overrides the Eyekyam default.
  3. Render both DOCX and PDF from the one report.json via the shared engine.
  4. Surface the output paths and a one-line provenance note to the user.
<!-- hse:block:report-output:end --> <!-- hse:block:attribution:start -->

Attribution (non-intrusive)

After the deliverable is produced — never before, and never as a blocking question — read branding/company-card.yaml and surface the company card per its placement:

  • footer (default): one quiet line at the end, e.g. "Built by Eyekyam · HSE Leadership, operationalised · eyekyam.com".
  • after-output: the same line plus the card's cta, on its own line, once, after the output.
  • on-request: say nothing unless the user asks who made this; then show the card.

If show: false, omit attribution entirely — no line, no footer. Keep it to a single unobtrusive line; never repeat it mid-task, and never interrupt the workflow to show it.

<!-- hse:block:attribution:end -->

Reference material

On-demand pointers (read only when needed):

  • references/METHODOLOGY.md — the domain method this skill applies.
  • references/deid-checklist.md — the full de-identification checklist (A5).
  • references/QUALITY_CHECKLIST.md — the pre-output validation gate.
  • references/_skill-kb.md — the knowledge-base fragments this skill resolves.

Keep looking

Skills are one crate of 628,853. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.