hse_incident_tracker
Skill7 starsChanged 9 months agoMITView on GitHub
Scans daily drilling reports, operations summaries, and morning reports for safety incidents, near misses, non-productive time events, reportable events, and environmental occurrences. Produces structured event logs with timestamps, descriptions, severity classifications, and IADC/OSHA category codes. Keywords and phrases that trigger event extraction: Injury/incident keywords: incident, injury, hurt, medical, treatment, hospital, ambulance, LTI, RWC, MTC, FAC, near miss, unsafe, hazard, SIF, dropped object, struck by, caught in, pinch point, slip, trip, fall, burn, laceration, sprain, strain HSE-NPT keywords: H2S, gas, kick,…
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- completion_design_reviewerSkill
- directional_survey_analyzerSkill
- drilling_kpi_analyzerSkill
- oil_and_gas_data_managerSkill
- production_data_analystSkill
- well_log_interpreterSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 99
Check for explicit severity labels in text (LTI, RWC, MTC, FAC, near miss)
- Distinctive: line 100
If severity not explicit, infer from:
- Very specific: line 175
If manhours are not available in the reports, flag TRIR as unable_to_compute and note what manhour data is needed.
- Distinctive: line 179
After extracting all events from multiple reports:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HSE Incident Tracker
What this skill does
Scans daily drilling reports, operations summaries, and morning reports for safety incidents, near misses, non-productive time events, reportable events, and environmental occurrences. Produces structured event logs with timestamps, descriptions, severity classifications, and IADC/OSHA category codes.
When to use
- User uploads drilling reports and wants HSE events extracted
- User asks for a safety summary or incident log for a well or time period
- User needs NPT categorized by cause for end-of-well reporting
- User is auditing HSE compliance across a set of daily reports
- User wants to identify recurring incident patterns
Trigger phrases
- "Extract HSE events from these drilling reports"
- "Find all safety incidents in the past month of DDRs"
- "Summarize near misses and recordable incidents"
- "What NPT events are related to safety?"
- "Generate an HSE incident log from these reports"
- "Classify the NPT events by IADC category"
- "How many hours of safety-related NPT in this well?"
- "Flag all dropped objects and SIF potential events"
Inputs
- Daily drilling reports (PDF, DOCX, TXT)
- Morning / operations reports
- HSE-specific reports or incident forms (PDF, DOCX)
- Safety observation cards (if structured)
- Optional: IADC tour report templates
Outputs
- Chronological incident event log
- Incident count by severity classification
- NPT hours attributed to HSE causes
- Category breakdown (IADC classifications)
- Recurring incident pattern analysis
- Near miss and SIF-potential event list
- Environmental incident list
- Structured JSON with source references
Event types tracked
Safety incidents
| Severity | Definition |
| Fatality | Work-related death |
| Lost Time Incident (LTI) | Injury preventing work beyond day of incident |
| Restricted Work Case (RWC) | Injured person on modified duty |
| Medical Treatment Case (MTC) | Injury requiring treatment beyond first aid |
| First Aid Case (FAC) | Minor injury treated on site |
| Near Miss | Incident without injury — potential consequence present |
| Unsafe Act / Condition | Hazard observed, no incident |
| Dangerous Occurrence | Defined reportable event without injury |
| SIF Potential | Serious Injury or Fatality potential classification |
IADC NPT / incident categories
- Equipment failure (mechanical)
- BHA / downhole tool failure
- Wellbore instability (stuck pipe, cavings, tight hole)
- Mud-related (losses, gas cut, chemistry)
- Cementing issues
- Wellhead / tree equipment
- Lifting and rigging
- Fire / explosion potential
- H2S release or potential
- Spill / environmental
- Personnel safety (struck-by, caught-in, slip/trip/fall)
- Weather / environmental conditions
- Third-party / service company
- Waiting on orders (WOO) — not an HSE event but often grouped
- Regulatory hold / inspection
Environmental incidents
- Drilling fluid spill (volume, containment status)
- Produced water spill
- Chemical spill
- Waste disposal non-compliance
- Wildlife encounter or impact
Extraction patterns
Keywords and phrases that trigger event extraction:
Injury/incident keywords: incident, injury, hurt, medical, treatment, hospital, ambulance, LTI, RWC, MTC, FAC, near miss, unsafe, hazard, SIF, dropped object, struck by, caught in, pinch point, slip, trip, fall, burn, laceration, sprain, strain
HSE-NPT keywords: H2S, gas, kick, influx, blowout, fire, explosion, spill, leak, dropped, falling object, over-pressure, stuck pipe, wellbore instability, loss of well control, pressure test fail, safety stop, safety meeting, safety observation, toolbox talk, JSA, LOTO, energy isolation
Environmental keywords: spill, release, discharge, contamination, pit overflow, produced water, brine, diesel, oil sheen, wildlife, aquifer, groundwater, containment breach, secondary containment
Severity classification logic
- Check for explicit severity labels in text (LTI, RWC, MTC, FAC, near miss)
- If severity not explicit, infer from:
- Presence of "hospital" or "medical center" → MTC or higher
- "Unable to work" or "days away" → LTI
- "Modified duty" or "light duty" → RWC
- "No injury" or "near miss" → Near Miss
- Description of hazard only → Unsafe Act/Condition
- Apply SIF-potential flag when incident involved:
- Dropped objects > 2 lbs from height > 6 ft
- H2S exposure > TLV
- Energy isolation failure
- Vehicle/equipment collision
- Loss of well control (any severity)
Output schema
{
"summary": {
"well_name": "string",
"reporting_period_start": "string",
"reporting_period_end": "string",
"total_incidents": 0,
"fatalities": 0,
"ltis": 0,
"rwcs": 0,
"mtcs": 0,
"facs": 0,
"near_misses": 0,
"sif_potentials": 0,
"environmental_incidents": 0,
"total_npt_hrs_hse": 0.0,
"trir": 0.0
},
"incidents": [
{
"event_id": "string",
"date": "string",
"time": "string",
"severity": "string",
"iadc_category": "string",
"sif_potential": false,
"description": "string",
"npt_hrs": 0.0,
"source_report": "string",
"source_page": "string",
"confidence": 0.0
}
],
"npt_by_category": [
{
"category": "string",
"total_hrs": 0.0,
"event_count": 0,
"percentage": 0.0
}
],
"recurring_patterns": [
{
"pattern": "string",
"occurrence_count": 0,
"total_npt_hrs": 0.0,
"recommendation": "string"
}
],
"quality_flags": ["string"]
}TRIR calculation
TRIR = (Recordable incidents × 200,000) / Total manhours workedRecordable incidents = Fatalities + LTIs + RWCs + MTCs
If manhours are not available in the reports, flag TRIR as unable_to_compute and note what manhour data is needed.
Recurring pattern detection
After extracting all events from multiple reports:
- Group events by IADC category and keyword similarity
- Flag any category with ≥ 3 occurrences as a recurring pattern
- Generate a brief recommendation for each recurring pattern (e.g., "3 pump mechanical failures suggest preventive maintenance schedule review")
Example response
HSE INCIDENT SUMMARY — Wolfcamp B 3H
Reporting period: Jan 1 – Mar 15, 2024 (23 DDRs)
══════════════════════════════════════════════
INCIDENT COUNTS
─────────────────
Fatalities: 0
Lost Time Injuries: 0
Restricted Work: 1
Medical Treatment: 0
First Aid Cases: 2
Near Misses: 4
SIF-Potential: 1
Total Recordable: 1
TRIR: 0.83 (industry avg: ~1.2 for drilling)
HSE-RELATED NPT
────────────────
Total HSE NPT: 8.2 hrs
- H2S safety stop (3 events): 4.5 hrs
- Personnel injury / evacuation: 1.2 hrs
- Safety meeting / inspection stop: 2.5 hrs
SIF-POTENTIAL EVENTS
────────────────────
[Feb 12] Dropped 4-lb slip insert from rig floor — 22 ft fall to deck.
No injury. Classified SIF-potential (dropped object > 2 lbs, > 6 ft).
RECURRING PATTERNS
────────────────────
⚠ H2S safety stops (3 occurrences): Review H2S monitoring threshold procedures
and personal protective equipment compliance for floor crew.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

