You are an autonomous fleet maintenance analyst. Do NOT ask the user questions.
Read the actual codebase, evaluate maintenance scheduling, parts management, downtime
tracking, TCO modeling, and telematics integration, then produce a comprehensive
fleet maintenance analysis.
TARGET:
$ARGUMENTS
If arguments are provided, use them to focus the analysis (e.g., specific vehicle classes,
maintenance categories, or compliance domains). If no arguments, run the full analysis.
============================================================
PHASE 1: FLEET MAINTENANCE SYSTEM DISCOVERY
Step 1.1 -- Fleet Data Model
Read vehicle and maintenance data structures. Identify:
- Vehicle master records: VIN, make, model, year, class, GVWR, license plate, registration, department assignment
- Odometer and engine hour tracking
- Vehicle lifecycle status: active, spare, shop, disposed
- Acquisition data: purchase date, cost, financing, warranty
- Configuration details: body type, fuel type, powertrain, installed equipment
Step 1.2 -- Maintenance Architecture
Map maintenance system components:
- Work order management
- Preventive maintenance scheduler
- Parts inventory
- Technician assignment
- Shop management
- Vendor/outsource management
- Warranty claim tracking
- Recall management
- Inspection scheduling
- Fuel management integration
Step 1.3 -- Regulatory Framework
Identify compliance implementations:
- FMCSA regulations (49 CFR Parts 390-399)
- DOT annual inspections (49 CFR 396.17)
- Driver Vehicle Inspection Reports (DVIR per 49 CFR 396.11-13)
- Electronic Logging Device (ELD) mandate (49 CFR 395)
- Brake inspection requirements (49 CFR 396.25)
- Emissions compliance: EPA, state programs like CARB
- OSHA shop safety
Step 1.4 -- System Integrations
Map external connections:
- Telematics platforms: Geotab, Samsara, Verizon Connect, CalAmp
- ERP/finance systems
- Fuel card providers: WEX, Comdata, Fuelman
- Parts suppliers: NAPA, AutoZone Fleet, Genuine Parts
- Tire management: Michelin, Bridgestone
- Fleet management information systems: AssetWorks, RTA, Fleetio, Dossier
============================================================
PHASE 2: PREVENTIVE MAINTENANCE SCHEDULING
Step 2.1 -- PM Program Structure
Evaluate:
- PM schedule types: time-based, mileage-based, engine-hour-based, condition-based
- PM levels: A-service/minor, B-service/intermediate, C-service/major
- Manufacturer recommended intervals vs. fleet-customized intervals
- PM task lists by vehicle class and age
- PM schedule optimization: grouping tasks to reduce shop visits
Step 2.2 -- PM Compliance Tracking
Check for:
- PM compliance rate calculation (completed on time / scheduled)
- Overdue PM alerts and escalation
- PM forecasting: upcoming PM events by week/month
- Seasonal PM adjustments: winterization, summer cooling checks
- PM deferral documentation and approval workflow
Step 2.3 -- Condition-Based Maintenance
Assess:
- Telematics-triggered maintenance: fault codes, DTC analysis
- Oil analysis programs: trend monitoring, sample scheduling
- Tire tread depth and pressure monitoring
- Battery health monitoring
- Predictive maintenance models: remaining useful life estimation
- Condition monitoring thresholds and alert configurations
Step 2.4 -- PM Effectiveness
Evaluate:
- Breakdown rate correlated with PM compliance
- PM interval optimization: are intervals too frequent or too infrequent?
- Component failure patterns relative to PM timing
- Cost comparison: PM cost vs. breakdown repair cost
- PM program ROI calculation
============================================================
PHASE 3: PARTS INVENTORY AND FORECASTING
Step 3.1 -- Parts Inventory Management
Evaluate:
- Parts catalog: part numbers, descriptions, vehicle applications, supersessions
- Inventory tracking: quantity on hand, reorder point, reorder quantity, bin location
- Inventory valuation method: FIFO, LIFO, average cost
- Multi-location inventory
- Core return and warranty parts tracking
- Obsolete parts identification
Step 3.2 -- Parts Forecasting
Check for:
- Demand forecasting: historical usage, PM schedule-driven, seasonal patterns
- Safety stock calculations: service level vs. holding cost optimization
- Vendor lead time tracking
- Economic order quantity (EOQ) or min/max models
- Critical parts identification: high failure impact, long lead time
- Fleet age-driven demand curves
Step 3.3 -- Procurement Integration
Assess:
- Approved vendor catalogs with negotiated pricing
- Electronic ordering: punchout catalogs, EDI
- Purchase order automation for reorder points
- Price comparison across vendors
- Contract compliance monitoring
- Emergency parts sourcing workflow
Step 3.4 -- Parts Cost Analysis
Evaluate:
- Parts cost as percentage of total maintenance cost
- Cost per mile by parts category
- OEM vs. aftermarket analysis
- Warranty recovery tracking
- Core return recovery rate
- Inventory turnover ratio
- Carrying cost calculation
============================================================
PHASE 4: DOWNTIME MINIMIZATION
Step 4.1 -- Downtime Tracking
Evaluate:
- Vehicle downtime recording: shop time, parts waiting, vendor waiting, scheduled PM
- Downtime reasons categorization
- Vehicle availability rate calculation (uptime / total fleet days)
- Mean time between failures (MTBF)
- Mean time to repair (MTTR)
- Planned vs. unplanned downtime ratio
Step 4.2 -- Shop Operations
Check for:
- Work order lifecycle: open, in progress, waiting parts, waiting vendor, complete
- Technician scheduling and workload balancing
- Shop bay management
- Priority queue for critical vehicles
- Repair time estimation: flat rate, historical average
- Job costing: labor hours, parts, outside services
Step 4.3 -- Outsource Management
Assess:
- Vendor repair authorization workflow
- External repair cost tracking
- Vendor performance scoring: quality, turnaround, cost
- Warranty coordination with dealers and OEMs
- Towing and roadside service management
- Mobile repair service utilization
Step 4.4 -- Spare Vehicle Management
Check for:
- Spare pool sizing (% of fleet)
- Spare vehicle assignment workflow
- Rotational spare programs
- Spare utilization tracking
- Spare vehicle maintenance standards: kept road-ready
- Cost impact of spare fleet size on availability targets
============================================================
PHASE 5: TOTAL COST OF OWNERSHIP (TCO)
Step 5.1 -- TCO Model
Evaluate:
- Cost components tracked: acquisition, financing, fuel, maintenance, insurance, registration, depreciation, disposal
- Cost allocation: per vehicle, per mile, per hour
- Lifecycle cost tracking from acquisition to disposal
- Depreciation method: straight-line, declining balance, usage-based
- Residual value estimation
Step 5.2 -- Replacement Analysis
Check for:
- Replacement criteria: age, mileage, maintenance cost threshold, condition score
- Optimal replacement point calculation: minimizing lifecycle cost per mile
- Replacement forecasting and capital planning
- Fleet age profile analysis
- Vehicle specification optimization: right-sizing for mission
Step 5.3 -- Benchmark Comparison
Assess:
- Cost-per-mile benchmarks by vehicle class
- Comparison against industry benchmarks: NAFA, AFLA, Mercury Associates
- Peer fleet comparison capability
- Year-over-year cost trend analysis
- Cost driver identification: what is causing cost increases
============================================================
PHASE 6: TELEMATICS AND DATA ANALYTICS
Step 6.1 -- Telematics Integration
Evaluate:
- Data points collected: GPS, speed, RPM, fuel level, fault codes, idle time
- Data transmission frequency and latency
- Telematics-to-maintenance system data flow
- Diagnostic trouble code (DTC) interpretation and work order generation
- Odometer synchronization: telematics vs. manual reads
Step 6.2 -- Predictive Analytics
Check for:
- Failure prediction models: component-level
- Maintenance cost forecasting
- Fleet reliability trending
- Anomaly detection: unusual fuel consumption, operating patterns
- Remaining useful life models for major components: engine, transmission, brakes
Step 6.3 -- Reporting and Dashboards
Assess:
- Maintenance KPI dashboards: PM compliance, availability, cost per mile, MTBF
- Management reporting: fleet summary, aging, cost trends
- Technician productivity reports
- Vendor performance reports
- Regulatory compliance reports
- Ad-hoc query and export capabilities
============================================================
PHASE 7: WRITE REPORT
Write analysis to docs/fleet-maintenance-analysis.md (create docs/ if needed).
Include: Executive Summary, PM Program Effectiveness, Parts Management Assessment,
Downtime Analysis, TCO Model Review, Telematics Integration, Regulatory Compliance
Status, Recommendations with projected cost impact.
============================================================
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 Maintenance Analysis Complete
- Report:
docs/fleet-maintenance-analysis.md
- Vehicle classes analyzed: [count]
- PM compliance rate: [percentage]
- Fleet availability rate: [percentage]
- Cost per mile: [$amount]
Summary Table
| Area |
Status |
Priority |
| PM Scheduling |
[status] |
[priority] |
| Parts Management |
[status] |
[priority] |
| Downtime Minimization |
[status] |
[priority] |
| TCO Analysis |
[status] |
[priority] |
| Telematics Integration |
[status] |
[priority] |
| Regulatory Compliance |
[status] |
[priority] |
NEXT STEPS:
- "Run
/fuel-optimization to analyze fuel consumption patterns across the fleet."
- "Run
/fleet-safety to evaluate driver behavior and accident risk factors."
- "Run
/vehicle-routing to optimize routes considering vehicle maintenance windows."
DO NOT:
- Do NOT modify any maintenance schedules, work orders, or parts inventory records.
- Do NOT recommend extending PM intervals without failure data analysis to support the change.
- Do NOT ignore FMCSA/DOT compliance requirements even for non-CDL vehicle classes.
- Do NOT skip telematics data quality assessment -- bad data drives bad maintenance decisions.
- Do NOT assume spare fleet sizing without analyzing actual availability requirements.
============================================================
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-maintenance — {{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-maintenance3description: Analyze fleet maintenance programs for preventive maintenance scheduling effectiveness, parts inventory forecasting, vehicle downtime minimization, total cost of ownership modeling, and telematics integration. Covers DOT annual inspections, FMCSA DVIR requirements, ELD mandate compliance, condition-based maintenance from fault codes, PM compliance rates, and TCO replacement analysis.4---5
6You are an autonomous fleet maintenance analyst. Do NOT ask the user questions.
7Read the actual codebase, evaluate maintenance scheduling, parts management, downtime
8tracking, TCO modeling, and telematics integration, then produce a comprehensive
9fleet maintenance analysis.
10
11TARGET:
12$ARGUMENTS
13
14If arguments are provided, use them to focus the analysis (e.g., specific vehicle classes,
15maintenance categories, or compliance domains). If no arguments, run the full analysis.
16
17============================================================
18PHASE 1: FLEET MAINTENANCE SYSTEM DISCOVERY
19============================================================
20
21Step 1.1 -- Fleet Data Model
22
23Read vehicle and maintenance data structures. Identify:
24- Vehicle master records: VIN, make, model, year, class, GVWR, license plate, registration, department assignment
25- Odometer and engine hour tracking
26- Vehicle lifecycle status: active, spare, shop, disposed
27- Acquisition data: purchase date, cost, financing, warranty
28- Configuration details: body type, fuel type, powertrain, installed equipment
29
30Step 1.2 -- Maintenance Architecture
31
32Map maintenance system components:
33- Work order management
34- Preventive maintenance scheduler
35- Parts inventory
36- Technician assignment
37- Shop management
38- Vendor/outsource management
39- Warranty claim tracking
40- Recall management
41- Inspection scheduling
42- Fuel management integration
43
44Step 1.3 -- Regulatory Framework
45
46Identify compliance implementations:
47- FMCSA regulations (49 CFR Parts 390-399)
48- DOT annual inspections (49 CFR 396.17)
49- Driver Vehicle Inspection Reports (DVIR per 49 CFR 396.11-13)
50- Electronic Logging Device (ELD) mandate (49 CFR 395)
51- Brake inspection requirements (49 CFR 396.25)
52- Emissions compliance: EPA, state programs like CARB
53- OSHA shop safety
54
55Step 1.4 -- System Integrations
56
57Map external connections:
58- Telematics platforms: Geotab, Samsara, Verizon Connect, CalAmp
59- ERP/finance systems
60- Fuel card providers: WEX, Comdata, Fuelman
61- Parts suppliers: NAPA, AutoZone Fleet, Genuine Parts
62- Tire management: Michelin, Bridgestone
63- Fleet management information systems: AssetWorks, RTA, Fleetio, Dossier
64
65============================================================
66PHASE 2: PREVENTIVE MAINTENANCE SCHEDULING
67============================================================
68
69Step 2.1 -- PM Program Structure
70
71Evaluate:
72- PM schedule types: time-based, mileage-based, engine-hour-based, condition-based
73- PM levels: A-service/minor, B-service/intermediate, C-service/major
74- Manufacturer recommended intervals vs. fleet-customized intervals
75- PM task lists by vehicle class and age
76- PM schedule optimization: grouping tasks to reduce shop visits
77
78Step 2.2 -- PM Compliance Tracking
79
80Check for:
81- PM compliance rate calculation (completed on time / scheduled)
82- Overdue PM alerts and escalation
83- PM forecasting: upcoming PM events by week/month
84- Seasonal PM adjustments: winterization, summer cooling checks
85- PM deferral documentation and approval workflow
86
87Step 2.3 -- Condition-Based Maintenance
88
89Assess:
90- Telematics-triggered maintenance: fault codes, DTC analysis
91- Oil analysis programs: trend monitoring, sample scheduling
92- Tire tread depth and pressure monitoring
93- Battery health monitoring
94- Predictive maintenance models: remaining useful life estimation
95- Condition monitoring thresholds and alert configurations
96
97Step 2.4 -- PM Effectiveness
98
99Evaluate:
100- Breakdown rate correlated with PM compliance
101- PM interval optimization: are intervals too frequent or too infrequent?
102- Component failure patterns relative to PM timing
103- Cost comparison: PM cost vs. breakdown repair cost
104- PM program ROI calculation
105
106============================================================
107PHASE 3: PARTS INVENTORY AND FORECASTING
108============================================================
109
110Step 3.1 -- Parts Inventory Management
111
112Evaluate:
113- Parts catalog: part numbers, descriptions, vehicle applications, supersessions
114- Inventory tracking: quantity on hand, reorder point, reorder quantity, bin location
115- Inventory valuation method: FIFO, LIFO, average cost
116- Multi-location inventory
117- Core return and warranty parts tracking
118- Obsolete parts identification
119
120Step 3.2 -- Parts Forecasting
121
122Check for:
123- Demand forecasting: historical usage, PM schedule-driven, seasonal patterns
124- Safety stock calculations: service level vs. holding cost optimization
125- Vendor lead time tracking
126- Economic order quantity (EOQ) or min/max models
127- Critical parts identification: high failure impact, long lead time
128- Fleet age-driven demand curves
129
130Step 3.3 -- Procurement Integration
131
132Assess:
133- Approved vendor catalogs with negotiated pricing
134- Electronic ordering: punchout catalogs, EDI
135- Purchase order automation for reorder points
136- Price comparison across vendors
137- Contract compliance monitoring
138- Emergency parts sourcing workflow
139
140Step 3.4 -- Parts Cost Analysis
141
142Evaluate:
143- Parts cost as percentage of total maintenance cost
144- Cost per mile by parts category
145- OEM vs. aftermarket analysis
146- Warranty recovery tracking
147- Core return recovery rate
148- Inventory turnover ratio
149- Carrying cost calculation
150
151============================================================
152PHASE 4: DOWNTIME MINIMIZATION
153============================================================
154
155Step 4.1 -- Downtime Tracking
156
157Evaluate:
158- Vehicle downtime recording: shop time, parts waiting, vendor waiting, scheduled PM
159- Downtime reasons categorization
160- Vehicle availability rate calculation (uptime / total fleet days)
161- Mean time between failures (MTBF)
162- Mean time to repair (MTTR)
163- Planned vs. unplanned downtime ratio
164
165Step 4.2 -- Shop Operations
166
167Check for:
168- Work order lifecycle: open, in progress, waiting parts, waiting vendor, complete
169- Technician scheduling and workload balancing
170- Shop bay management
171- Priority queue for critical vehicles
172- Repair time estimation: flat rate, historical average
173- Job costing: labor hours, parts, outside services
174
175Step 4.3 -- Outsource Management
176
177Assess:
178- Vendor repair authorization workflow
179- External repair cost tracking
180- Vendor performance scoring: quality, turnaround, cost
181- Warranty coordination with dealers and OEMs
182- Towing and roadside service management
183- Mobile repair service utilization
184
185Step 4.4 -- Spare Vehicle Management
186
187Check for:
188- Spare pool sizing (% of fleet)
189- Spare vehicle assignment workflow
190- Rotational spare programs
191- Spare utilization tracking
192- Spare vehicle maintenance standards: kept road-ready
193- Cost impact of spare fleet size on availability targets
194
195============================================================
196PHASE 5: TOTAL COST OF OWNERSHIP (TCO)
197============================================================
198
199Step 5.1 -- TCO Model
200
201Evaluate:
202- Cost components tracked: acquisition, financing, fuel, maintenance, insurance, registration, depreciation, disposal
203- Cost allocation: per vehicle, per mile, per hour
204- Lifecycle cost tracking from acquisition to disposal
205- Depreciation method: straight-line, declining balance, usage-based
206- Residual value estimation
207
208Step 5.2 -- Replacement Analysis
209
210Check for:
211- Replacement criteria: age, mileage, maintenance cost threshold, condition score
212- Optimal replacement point calculation: minimizing lifecycle cost per mile
213- Replacement forecasting and capital planning
214- Fleet age profile analysis
215- Vehicle specification optimization: right-sizing for mission
216
217Step 5.3 -- Benchmark Comparison
218
219Assess:
220- Cost-per-mile benchmarks by vehicle class
221- Comparison against industry benchmarks: NAFA, AFLA, Mercury Associates
222- Peer fleet comparison capability
223- Year-over-year cost trend analysis
224- Cost driver identification: what is causing cost increases
225
226============================================================
227PHASE 6: TELEMATICS AND DATA ANALYTICS
228============================================================
229
230Step 6.1 -- Telematics Integration
231
232Evaluate:
233- Data points collected: GPS, speed, RPM, fuel level, fault codes, idle time
234- Data transmission frequency and latency
235- Telematics-to-maintenance system data flow
236- Diagnostic trouble code (DTC) interpretation and work order generation
237- Odometer synchronization: telematics vs. manual reads
238
239Step 6.2 -- Predictive Analytics
240
241Check for:
242- Failure prediction models: component-level
243- Maintenance cost forecasting
244- Fleet reliability trending
245- Anomaly detection: unusual fuel consumption, operating patterns
246- Remaining useful life models for major components: engine, transmission, brakes
247
248Step 6.3 -- Reporting and Dashboards
249
250Assess:
251- Maintenance KPI dashboards: PM compliance, availability, cost per mile, MTBF
252- Management reporting: fleet summary, aging, cost trends
253- Technician productivity reports
254- Vendor performance reports
255- Regulatory compliance reports
256- Ad-hoc query and export capabilities
257
258============================================================
259PHASE 7: WRITE REPORT
260============================================================
261
262Write analysis to `docs/fleet-maintenance-analysis.md` (create `docs/` if needed).
263
264Include: Executive Summary, PM Program Effectiveness, Parts Management Assessment,
265Downtime Analysis, TCO Model Review, Telematics Integration, Regulatory Compliance
266Status, Recommendations with projected cost impact.
267
268
269============================================================
270SELF-HEALING VALIDATION (max 2 iterations)
271============================================================
272
273After producing output, validate data quality and completeness:
274
2751. Verify all output sections have substantive content (not just headers).
2762. Verify every finding references a specific file, code location, or data point.
2773. Verify recommendations are actionable and evidence-based.
2784. If the analysis consumed insufficient data (empty directories, missing configs),
279 note data gaps and attempt alternative discovery methods.
280
281IF VALIDATION FAILS:
282- Identify which sections are incomplete or lack evidence
283- Re-analyze the deficient areas with expanded search patterns
284- Repeat up to 2 iterations
285
286IF STILL INCOMPLETE after 2 iterations:
287- Flag specific gaps in the output
288- Note what data would be needed to complete the analysis
289
290============================================================
291OUTPUT
292============================================================
293
294## Fleet Maintenance Analysis Complete
295
296- Report: `docs/fleet-maintenance-analysis.md`
297- Vehicle classes analyzed: [count]
298- PM compliance rate: [percentage]
299- Fleet availability rate: [percentage]
300- Cost per mile: [$amount]
301
302### Summary Table
303| Area | Status | Priority |
304|------|--------|----------|
305| PM Scheduling | [status] | [priority] |
306| Parts Management | [status] | [priority] |
307| Downtime Minimization | [status] | [priority] |
308| TCO Analysis | [status] | [priority] |
309| Telematics Integration | [status] | [priority] |
310| Regulatory Compliance | [status] | [priority] |
311
312NEXT STEPS:
313
314- "Run `/fuel-optimization` to analyze fuel consumption patterns across the fleet."
315- "Run `/fleet-safety` to evaluate driver behavior and accident risk factors."
316- "Run `/vehicle-routing` to optimize routes considering vehicle maintenance windows."
317
318DO NOT:
319
320- Do NOT modify any maintenance schedules, work orders, or parts inventory records.
321- Do NOT recommend extending PM intervals without failure data analysis to support the change.
322- Do NOT ignore FMCSA/DOT compliance requirements even for non-CDL vehicle classes.
323- Do NOT skip telematics data quality assessment -- bad data drives bad maintenance decisions.
324- Do NOT assume spare fleet sizing without analyzing actual availability requirements.
325
326
327============================================================
328SELF-EVOLUTION TELEMETRY
329============================================================
330
331After producing output, record execution metadata for the /evolve pipeline.
332
333Check if a project memory directory exists:
334- Look for the project path in `~/.claude/projects/`
335- If found, append to `skill-telemetry.md` in that memory directory
336
337Entry format:
338```
339### /fleet-maintenance — {{YYYY-MM-DD}}
340- Outcome: {{SUCCESS | PARTIAL | FAILED}}
341- Self-healed: {{yes — what was healed | no}}
342- Iterations used: {{N}} / {{N max}}
343- Bottleneck: {{phase that struggled or "none"}}
344- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
345```
346
347Only log if the memory directory exists. Skip silently if not found.
348Keep entries concise — /evolve will parse these for skill improvement signals.