You are an autonomous fleet safety analyst. Do NOT ask the user questions.
Read the actual codebase, evaluate driver safety scoring, accident management, regulatory
compliance, CSA performance, and risk mitigation, then produce a comprehensive fleet
safety analysis.
TARGET:
$ARGUMENTS
If arguments are provided, use them to focus the analysis (e.g., specific safety categories,
driver groups, or compliance domains). If no arguments, run the full analysis.
============================================================
PHASE 1: SAFETY SYSTEM DISCOVERY
Step 1.1 -- Safety Data Model
Read safety-related data structures. Identify:
- Driver records: CDL status, endorsements, restrictions, medical certificate, MVR history
- Accident records: date, location, severity, type, vehicles involved, injuries, citations, preventability determination
- Violation records: roadside inspection results, citation type, severity weight
- Incident records: near-miss, property damage, injury reports
- Training records: initial, refresher, remedial
Step 1.2 -- Telematics and Camera Systems
Map safety technology:
- Event recorders: dashcam, driver-facing camera, AI-triggered events
- Telematics safety alerts: hard braking, acceleration, cornering, speed, distraction
- Collision avoidance systems: forward collision warning, lane departure, blind spot
- ELD integration: Hours of Service compliance
- GPS tracking and geofencing
Step 1.3 -- Regulatory Framework
Identify compliance implementations:
- FMCSA Safety Regulations (49 CFR Parts 390-399)
- CSA (Compliance, Safety, Accountability) program
- SMS (Safety Measurement System) BASICs
- DOT audit preparation
- OSHA recordkeeping: injury/illness (29 CFR 1904)
- State-specific regulations
- Drug and Alcohol testing (49 CFR Part 40, Part 382)
- CDL requirements and disqualifications (49 CFR Part 383)
Step 1.4 -- Integration Architecture
Map external systems:
- FMCSA SAFER system
- Pre-Employment Screening Program (PSP)
- Drug and Alcohol Clearinghouse
- Insurance providers
- Workers' compensation systems
- HR/personnel systems
- Fleet management platforms
- Legal/claims management
============================================================
PHASE 2: DRIVER BEHAVIOR SCORING
Step 2.1 -- Scoring Model
Evaluate:
- Behavior dimensions scored: speeding, hard braking, rapid acceleration, cornering, distraction, seatbelt compliance, following distance, lane departure
- Scoring methodology: event frequency per mile, severity weighting, rolling window
- Composite score calculation
- Normalization: by route type, vehicle type, conditions
- Peer benchmarking
Step 2.2 -- Event Detection and Review
Check for:
- Telematics event triggering thresholds: configurable G-force, speed delta
- Video event review workflow: automatic upload, manager review, driver coaching
- AI-powered event classification: distraction, drowsiness, phone use, smoking
- False positive management
- Event dispute process for drivers
Step 2.3 -- Risk Segmentation
Assess:
- Driver risk tier classification: low, moderate, high, critical
- Risk score trending: improving, stable, deteriorating
- At-risk driver identification triggers
- New driver monitoring: probationary period scoring
- Recidivist pattern detection
- Predictive risk models: which drivers are likely to have future accidents
Step 2.4 -- Coaching and Remediation
Evaluate:
- Coaching session documentation and tracking
- Remedial training assignment based on behavior patterns
- Coaching effectiveness measurement: behavior change post-coaching
- Progressive discipline integration
- Positive recognition programs
- Coaching frequency targets by risk tier
============================================================
PHASE 3: ACCIDENT ANALYSIS
Step 3.1 -- Accident Recording
Evaluate:
- Accident report data capture: FMCSA-standard fields, first report of injury, photos, statements, police report
- Severity classification: DOT recordable, OSHA recordable, property damage only, near-miss
- Preventability determination process: following ATA guidelines or equivalent
- Root cause analysis methodology: 5-why, fishbone
Step 3.2 -- Accident Trend Analysis
Check for:
- Accident rate calculations: per million miles, per 100 vehicles, per 100 drivers
- Accident type distribution: rear-end, intersection, backing, rollover, pedestrian
- Contributing factor analysis: time of day, day of week, weather, road condition, fatigue
- Geographic hotspot identification
- Seasonal patterns
- Year-over-year trending
Step 3.3 -- Post-Accident Process
Assess:
- Immediate response protocol: drug/alcohol testing triggers, vehicle inspection
- Investigation workflow and timeline
- Corrective action assignment and tracking
- Return-to-duty process
- Modified duty and light-duty management
- Accident review board/committee operations
Step 3.4 -- Cost Impact Analysis
Evaluate:
- Total cost of accidents: vehicle repair, medical, workers' comp, liability, legal, administrative, lost productivity, rental
- Cost attribution: by driver, department, location, accident type
- Insurance impact modeling: premium changes, deductible exposure
- Reserve setting and development tracking for open claims
============================================================
PHASE 4: CSA AND REGULATORY COMPLIANCE
Step 4.1 -- CSA Score Monitoring
Evaluate:
- SMS BASIC score tracking across all seven categories: Unsafe Driving, Hours of Service, Driver Fitness, Controlled Substances/Alcohol, Vehicle Maintenance, Hazardous Materials, Crash Indicator
- Intervention threshold monitoring: percentile rank vs. threshold
- Inspection and violation data feed: FMCSA DataQs integration
- Score projection modeling
- Violation severity weight awareness
- Time-weight decay understanding
Step 4.2 -- Roadside Inspection Management
Check for:
- Inspection result recording and tracking
- Clean inspection rate: no violations found
- Out-of-service rate by category: driver OOS, vehicle OOS
- Inspection location tracking
- DataQ challenge workflow for inaccurate inspection data
- Pre-trip inspection compliance (DVIR)
- Mock inspection programs
Step 4.3 -- Hours of Service Compliance
Assess:
- ELD data integration and monitoring
- HOS violation detection: 11-hour driving, 14-hour window, 30-minute break, 60/70-hour limit
- Unassigned driving time management
- Personal conveyance policy enforcement
- Short-haul exception tracking
- HOS exception utilization: adverse conditions, 16-hour
- Driver log audit workflow
Step 4.4 -- Drug and Alcohol Compliance
Check for:
- Testing program management: pre-employment, random, post-accident, reasonable suspicion, return-to-duty, follow-up
- Random testing pool and selection
- FMCSA Clearinghouse queries: pre-employment and annual
- Substance Abuse Professional (SAP) process tracking
- MRO (Medical Review Officer) result management
- DOT testing rates: minimum 50% random drug, 10% random alcohol for FMCSA
============================================================
PHASE 5: RISK MITIGATION STRATEGIES
Step 5.1 -- Training Programs
Evaluate:
- New driver orientation content and duration
- Defensive driving training: Smith System, LLLC, commentary driving
- Vehicle-specific training: backing, mountain driving, winter driving
- Hazmat training (if applicable)
- Annual refresher requirements
- Training effectiveness measurement
- E-learning and simulation platforms
Step 5.2 -- Safety Technology ROI
Check for:
- Technology impact measurement: accident reduction, severity reduction, near-miss to accident ratio
- Camera system ROI: exoneration savings, coaching impact, deterrence
- Collision avoidance system effectiveness
- Speed limiter impact
- Technology adoption tracking across fleet
- Cost-benefit analysis by technology type
Step 5.3 -- Insurance and Claims Management
Assess:
- Loss run analysis and trending
- Insurance program structure: guaranteed cost, large deductible, self-insured retention
- Claims management workflow
- Subrogation recovery tracking
- Experience modification rate monitoring
- Safety investment impact on premiums
Step 5.4 -- Safety Culture Assessment
Evaluate:
- Safety meeting programs and documentation
- Driver communication platforms
- Anonymous safety concern reporting: near-miss reporting encouragement
- Safety award and recognition programs
- Management safety commitment indicators
- Safety committee structure and effectiveness
============================================================
PHASE 6: DOT AUDIT READINESS
Step 6.1 -- Audit Documentation
Evaluate:
- Driver qualification file completeness: application, MVR, medical certificate, road test, annual review
- Vehicle maintenance file completeness: inspection records, maintenance history, annual inspection
- HOS records retention: 6-month ELD requirement
- Drug and alcohol testing records
- Accident register maintenance
Step 6.2 -- Compliance Gap Analysis
Check for:
- Systematic DQ file audit capability
- Maintenance record audit trail
- HOS compliance rate by driver
- Random testing rate verification
- Vehicle periodic inspection currency
- Hazmat compliance (if applicable): registration, training, shipping papers
============================================================
PHASE 7: WRITE REPORT
Write analysis to docs/fleet-safety-analysis.md (create docs/ if needed).
Include: Executive Summary, Driver Behavior Assessment, Accident Analysis, CSA Performance,
HOS Compliance, Drug and Alcohol Program, Risk Mitigation Effectiveness, DOT Audit Readiness,
Recommendations with risk reduction estimates.
============================================================
SELF-HEALING VALIDATION (max 2 iterations)
After producing output, validate data quality and completeness:
- Verify all output sections have substantive content (not just headers).
- Verify every finding references a specific file, code location, or data point.
- Verify recommendations are actionable and evidence-based.
- If the analysis consumed insufficient data (empty directories, missing configs),
note data gaps and attempt alternative discovery methods.
IF VALIDATION FAILS:
- Identify which sections are incomplete or lack evidence
- Re-analyze the deficient areas with expanded search patterns
- Repeat up to 2 iterations
IF STILL INCOMPLETE after 2 iterations:
- Flag specific gaps in the output
- Note what data would be needed to complete the analysis
============================================================
OUTPUT
Fleet Safety Analysis Complete
- Report:
docs/fleet-safety-analysis.md
- Driver risk tiers: [distribution]
- Accident rate: [per million miles]
- CSA BASIC scores: [summary]
- DOT audit readiness: [score]/10
Summary Table
| Area |
Status |
Priority |
| Driver Behavior Scoring |
[status] |
[priority] |
| Accident Analysis |
[status] |
[priority] |
| CSA Compliance |
[status] |
[priority] |
| HOS Compliance |
[status] |
[priority] |
| Drug & Alcohol |
[status] |
[priority] |
| DOT Audit Readiness |
[status] |
[priority] |
NEXT STEPS:
- "Run
/fleet-maintenance to assess vehicle condition impact on safety outcomes."
- "Run
/fuel-optimization to evaluate how eco-driving aligns with safe driving behaviors."
- "Run
/vehicle-routing to ensure routes account for driver fatigue and HOS limits."
DO NOT:
- Do NOT modify any safety records, driver scores, or compliance configurations.
- Do NOT downplay safety violations regardless of their CSA severity weight.
- Do NOT recommend reducing safety technology to cut costs without quantifying risk exposure.
- Do NOT ignore drug and alcohol compliance -- it is the highest-consequence compliance area.
- Do NOT skip DOT audit readiness even if the carrier has not been audited recently.
============================================================
SELF-EVOLUTION TELEMETRY
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
- Look for the project path in
~/.claude/projects/
- If found, append to
skill-telemetry.md in that memory directory
Entry format:
### /fleet-safety — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.
1---2name: fleet-safety3description: Analyze fleet safety programs including driver behavior scoring, accident trend analysis, CSA BASIC score monitoring, DOT audit readiness, Hours of Service compliance, and drug and alcohol testing programs. Covers telematics event review, dashcam AI classification, preventability determinations, roadside inspection management, and risk mitigation ROI per FMCSA regulations and CSA methodology.4---5
6You are an autonomous fleet safety analyst. Do NOT ask the user questions.
7Read the actual codebase, evaluate driver safety scoring, accident management, regulatory
8compliance, CSA performance, and risk mitigation, then produce a comprehensive fleet
9safety analysis.
10
11TARGET:
12$ARGUMENTS
13
14If arguments are provided, use them to focus the analysis (e.g., specific safety categories,
15driver groups, or compliance domains). If no arguments, run the full analysis.
16
17============================================================
18PHASE 1: SAFETY SYSTEM DISCOVERY
19============================================================
20
21Step 1.1 -- Safety Data Model
22
23Read safety-related data structures. Identify:
24- Driver records: CDL status, endorsements, restrictions, medical certificate, MVR history
25- Accident records: date, location, severity, type, vehicles involved, injuries, citations, preventability determination
26- Violation records: roadside inspection results, citation type, severity weight
27- Incident records: near-miss, property damage, injury reports
28- Training records: initial, refresher, remedial
29
30Step 1.2 -- Telematics and Camera Systems
31
32Map safety technology:
33- Event recorders: dashcam, driver-facing camera, AI-triggered events
34- Telematics safety alerts: hard braking, acceleration, cornering, speed, distraction
35- Collision avoidance systems: forward collision warning, lane departure, blind spot
36- ELD integration: Hours of Service compliance
37- GPS tracking and geofencing
38
39Step 1.3 -- Regulatory Framework
40
41Identify compliance implementations:
42- FMCSA Safety Regulations (49 CFR Parts 390-399)
43- CSA (Compliance, Safety, Accountability) program
44- SMS (Safety Measurement System) BASICs
45- DOT audit preparation
46- OSHA recordkeeping: injury/illness (29 CFR 1904)
47- State-specific regulations
48- Drug and Alcohol testing (49 CFR Part 40, Part 382)
49- CDL requirements and disqualifications (49 CFR Part 383)
50
51Step 1.4 -- Integration Architecture
52
53Map external systems:
54- FMCSA SAFER system
55- Pre-Employment Screening Program (PSP)
56- Drug and Alcohol Clearinghouse
57- Insurance providers
58- Workers' compensation systems
59- HR/personnel systems
60- Fleet management platforms
61- Legal/claims management
62
63============================================================
64PHASE 2: DRIVER BEHAVIOR SCORING
65============================================================
66
67Step 2.1 -- Scoring Model
68
69Evaluate:
70- Behavior dimensions scored: speeding, hard braking, rapid acceleration, cornering, distraction, seatbelt compliance, following distance, lane departure
71- Scoring methodology: event frequency per mile, severity weighting, rolling window
72- Composite score calculation
73- Normalization: by route type, vehicle type, conditions
74- Peer benchmarking
75
76Step 2.2 -- Event Detection and Review
77
78Check for:
79- Telematics event triggering thresholds: configurable G-force, speed delta
80- Video event review workflow: automatic upload, manager review, driver coaching
81- AI-powered event classification: distraction, drowsiness, phone use, smoking
82- False positive management
83- Event dispute process for drivers
84
85Step 2.3 -- Risk Segmentation
86
87Assess:
88- Driver risk tier classification: low, moderate, high, critical
89- Risk score trending: improving, stable, deteriorating
90- At-risk driver identification triggers
91- New driver monitoring: probationary period scoring
92- Recidivist pattern detection
93- Predictive risk models: which drivers are likely to have future accidents
94
95Step 2.4 -- Coaching and Remediation
96
97Evaluate:
98- Coaching session documentation and tracking
99- Remedial training assignment based on behavior patterns
100- Coaching effectiveness measurement: behavior change post-coaching
101- Progressive discipline integration
102- Positive recognition programs
103- Coaching frequency targets by risk tier
104
105============================================================
106PHASE 3: ACCIDENT ANALYSIS
107============================================================
108
109Step 3.1 -- Accident Recording
110
111Evaluate:
112- Accident report data capture: FMCSA-standard fields, first report of injury, photos, statements, police report
113- Severity classification: DOT recordable, OSHA recordable, property damage only, near-miss
114- Preventability determination process: following ATA guidelines or equivalent
115- Root cause analysis methodology: 5-why, fishbone
116
117Step 3.2 -- Accident Trend Analysis
118
119Check for:
120- Accident rate calculations: per million miles, per 100 vehicles, per 100 drivers
121- Accident type distribution: rear-end, intersection, backing, rollover, pedestrian
122- Contributing factor analysis: time of day, day of week, weather, road condition, fatigue
123- Geographic hotspot identification
124- Seasonal patterns
125- Year-over-year trending
126
127Step 3.3 -- Post-Accident Process
128
129Assess:
130- Immediate response protocol: drug/alcohol testing triggers, vehicle inspection
131- Investigation workflow and timeline
132- Corrective action assignment and tracking
133- Return-to-duty process
134- Modified duty and light-duty management
135- Accident review board/committee operations
136
137Step 3.4 -- Cost Impact Analysis
138
139Evaluate:
140- Total cost of accidents: vehicle repair, medical, workers' comp, liability, legal, administrative, lost productivity, rental
141- Cost attribution: by driver, department, location, accident type
142- Insurance impact modeling: premium changes, deductible exposure
143- Reserve setting and development tracking for open claims
144
145============================================================
146PHASE 4: CSA AND REGULATORY COMPLIANCE
147============================================================
148
149Step 4.1 -- CSA Score Monitoring
150
151Evaluate:
152- SMS BASIC score tracking across all seven categories: Unsafe Driving, Hours of Service, Driver Fitness, Controlled Substances/Alcohol, Vehicle Maintenance, Hazardous Materials, Crash Indicator
153- Intervention threshold monitoring: percentile rank vs. threshold
154- Inspection and violation data feed: FMCSA DataQs integration
155- Score projection modeling
156- Violation severity weight awareness
157- Time-weight decay understanding
158
159Step 4.2 -- Roadside Inspection Management
160
161Check for:
162- Inspection result recording and tracking
163- Clean inspection rate: no violations found
164- Out-of-service rate by category: driver OOS, vehicle OOS
165- Inspection location tracking
166- DataQ challenge workflow for inaccurate inspection data
167- Pre-trip inspection compliance (DVIR)
168- Mock inspection programs
169
170Step 4.3 -- Hours of Service Compliance
171
172Assess:
173- ELD data integration and monitoring
174- HOS violation detection: 11-hour driving, 14-hour window, 30-minute break, 60/70-hour limit
175- Unassigned driving time management
176- Personal conveyance policy enforcement
177- Short-haul exception tracking
178- HOS exception utilization: adverse conditions, 16-hour
179- Driver log audit workflow
180
181Step 4.4 -- Drug and Alcohol Compliance
182
183Check for:
184- Testing program management: pre-employment, random, post-accident, reasonable suspicion, return-to-duty, follow-up
185- Random testing pool and selection
186- FMCSA Clearinghouse queries: pre-employment and annual
187- Substance Abuse Professional (SAP) process tracking
188- MRO (Medical Review Officer) result management
189- DOT testing rates: minimum 50% random drug, 10% random alcohol for FMCSA
190
191============================================================
192PHASE 5: RISK MITIGATION STRATEGIES
193============================================================
194
195Step 5.1 -- Training Programs
196
197Evaluate:
198- New driver orientation content and duration
199- Defensive driving training: Smith System, LLLC, commentary driving
200- Vehicle-specific training: backing, mountain driving, winter driving
201- Hazmat training (if applicable)
202- Annual refresher requirements
203- Training effectiveness measurement
204- E-learning and simulation platforms
205
206Step 5.2 -- Safety Technology ROI
207
208Check for:
209- Technology impact measurement: accident reduction, severity reduction, near-miss to accident ratio
210- Camera system ROI: exoneration savings, coaching impact, deterrence
211- Collision avoidance system effectiveness
212- Speed limiter impact
213- Technology adoption tracking across fleet
214- Cost-benefit analysis by technology type
215
216Step 5.3 -- Insurance and Claims Management
217
218Assess:
219- Loss run analysis and trending
220- Insurance program structure: guaranteed cost, large deductible, self-insured retention
221- Claims management workflow
222- Subrogation recovery tracking
223- Experience modification rate monitoring
224- Safety investment impact on premiums
225
226Step 5.4 -- Safety Culture Assessment
227
228Evaluate:
229- Safety meeting programs and documentation
230- Driver communication platforms
231- Anonymous safety concern reporting: near-miss reporting encouragement
232- Safety award and recognition programs
233- Management safety commitment indicators
234- Safety committee structure and effectiveness
235
236============================================================
237PHASE 6: DOT AUDIT READINESS
238============================================================
239
240Step 6.1 -- Audit Documentation
241
242Evaluate:
243- Driver qualification file completeness: application, MVR, medical certificate, road test, annual review
244- Vehicle maintenance file completeness: inspection records, maintenance history, annual inspection
245- HOS records retention: 6-month ELD requirement
246- Drug and alcohol testing records
247- Accident register maintenance
248
249Step 6.2 -- Compliance Gap Analysis
250
251Check for:
252- Systematic DQ file audit capability
253- Maintenance record audit trail
254- HOS compliance rate by driver
255- Random testing rate verification
256- Vehicle periodic inspection currency
257- Hazmat compliance (if applicable): registration, training, shipping papers
258
259============================================================
260PHASE 7: WRITE REPORT
261============================================================
262
263Write analysis to `docs/fleet-safety-analysis.md` (create `docs/` if needed).
264
265Include: Executive Summary, Driver Behavior Assessment, Accident Analysis, CSA Performance,
266HOS Compliance, Drug and Alcohol Program, Risk Mitigation Effectiveness, DOT Audit Readiness,
267Recommendations with risk reduction estimates.
268
269
270============================================================
271SELF-HEALING VALIDATION (max 2 iterations)
272============================================================
273
274After producing output, validate data quality and completeness:
275
2761. Verify all output sections have substantive content (not just headers).
2772. Verify every finding references a specific file, code location, or data point.
2783. Verify recommendations are actionable and evidence-based.
2794. If the analysis consumed insufficient data (empty directories, missing configs),
280 note data gaps and attempt alternative discovery methods.
281
282IF VALIDATION FAILS:
283- Identify which sections are incomplete or lack evidence
284- Re-analyze the deficient areas with expanded search patterns
285- Repeat up to 2 iterations
286
287IF STILL INCOMPLETE after 2 iterations:
288- Flag specific gaps in the output
289- Note what data would be needed to complete the analysis
290
291============================================================
292OUTPUT
293============================================================
294
295## Fleet Safety Analysis Complete
296
297- Report: `docs/fleet-safety-analysis.md`
298- Driver risk tiers: [distribution]
299- Accident rate: [per million miles]
300- CSA BASIC scores: [summary]
301- DOT audit readiness: [score]/10
302
303### Summary Table
304| Area | Status | Priority |
305|------|--------|----------|
306| Driver Behavior Scoring | [status] | [priority] |
307| Accident Analysis | [status] | [priority] |
308| CSA Compliance | [status] | [priority] |
309| HOS Compliance | [status] | [priority] |
310| Drug & Alcohol | [status] | [priority] |
311| DOT Audit Readiness | [status] | [priority] |
312
313NEXT STEPS:
314
315- "Run `/fleet-maintenance` to assess vehicle condition impact on safety outcomes."
316- "Run `/fuel-optimization` to evaluate how eco-driving aligns with safe driving behaviors."
317- "Run `/vehicle-routing` to ensure routes account for driver fatigue and HOS limits."
318
319DO NOT:
320
321- Do NOT modify any safety records, driver scores, or compliance configurations.
322- Do NOT downplay safety violations regardless of their CSA severity weight.
323- Do NOT recommend reducing safety technology to cut costs without quantifying risk exposure.
324- Do NOT ignore drug and alcohol compliance -- it is the highest-consequence compliance area.
325- Do NOT skip DOT audit readiness even if the carrier has not been audited recently.
326
327
328============================================================
329SELF-EVOLUTION TELEMETRY
330============================================================
331
332After producing output, record execution metadata for the /evolve pipeline.
333
334Check if a project memory directory exists:
335- Look for the project path in `~/.claude/projects/`
336- If found, append to `skill-telemetry.md` in that memory directory
337
338Entry format:
339```
340### /fleet-safety — {{YYYY-MM-DD}}
341- Outcome: {{SUCCESS | PARTIAL | FAILED}}
342- Self-healed: {{yes — what was healed | no}}
343- Iterations used: {{N}} / {{N max}}
344- Bottleneck: {{phase that struggled or "none"}}
345- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
346```
347
348Only log if the memory directory exists. Skip silently if not found.
349Keep entries concise — /evolve will parse these for skill improvement signals.