--- name: inspection-defect-triage description: Turns open DVIR or inspection defects from a fleet's own Samsara, Geotab or Fleetio account, or from a pasted CSV export, into a fix-first list. Safety defects go to P1 Hold, anything it can't classify goes to Mechanic review before dispatch, and repeat defects are flagged in every bucket. Read-only. Use it when the user asks which reported defects to fix first, or wants a daily or weekly defect review. --- # Inspection-defect triage **When to use:** at the start of the day before trucks roll, at the end of a shift, or in a weekly review, whenever the owner asks "what did drivers write up, and what has to be fixed first?" Everything runs in the user's own agent session against the user's own account or file. Don't send fleet data anywhere except the user's own chat or files. ## The rule behind P1 (read this first) For carriers covered by Part 396, the federal rule is not "check the unit". It is "fix it and sign it off before it runs": - **49 CFR 396.11(a)(3)(i):** "Prior to requiring or permitting a driver to operate a vehicle, every motor carrier or its agent shall repair any defect or deficiency listed on the driver vehicle inspection report which would be likely to affect the safety of operation of the vehicle." - **49 CFR 396.11(a)(3)(ii):** the carrier "shall certify on the driver vehicle inspection report which lists any defect or deficiency that the defect or deficiency has been repaired or that repair is unnecessary before the vehicle is operated again." Under 396.11(a)(4), the report, the repair certification and the driver's review certification are kept for three months. - **49 CFR 396.13:** before driving, the driver must "be satisfied that the motor vehicle is in safe operating condition", review the last DVIR, and sign it "to acknowledge that the driver has reviewed it and that there is a certification that the required repairs have been performed." - **49 CFR 396.7(a):** "A motor vehicle shall not be operated in such a condition as to likely cause an accident or a breakdown of the vehicle." Links: [396.7](https://www.ecfr.gov/current/title-49/subtitle-B/chapter-III/subchapter-B/part-396/section-396.7), [396.11](https://www.ecfr.gov/current/title-49/subtitle-B/chapter-III/subchapter-B/part-396/section-396.11), [396.13](https://www.ecfr.gov/current/title-49/subtitle-B/chapter-III/subchapter-B/part-396/section-396.13). Text checked on eCFR 2026-11-17. Who it covers: under 49 CFR 390.3T(a)(1), these rules apply to commercial motor vehicles "that transport property or passengers in interstate commerce." (eCFR shows 390.3 suspended indefinitely, effective Nov. 8, 2021, per 86 FR 55743; 390.3T is the section in force. Its (a)(1) says "The rules in this subchapter" where 390.3(a) said "The rules in subchapter B of this chapter"; the coverage phrase quoted here is word for word the same, and so is the government exception in (f)(2).) 396.11(a)(5) exempts some carriers, including "any motor carrier operating only one commercial motor vehicle." Federal Part 396 also doesn't reach: - vehicles below the commercial motor vehicle threshold in 49 CFR 390.5T (for property carriers, a gross vehicle or combination weight rating, or actual weight, of 10,001 pounds or more, whichever is greater, unless the vehicle is designed or used to transport more than 8 passengers (including the driver) for compensation, or more than 15 passengers including the driver, or carries hazardous materials in a quantity requiring placarding (390.5T, definition items (2)–(4))), and - "Transportation performed by the Federal government, a State, or any political subdivision of a State" (390.3T(f)(2)). So many service-van and municipal fleets follow state rules or their own policy instead. Intrastate rules are set by each state, so the owner should check their state's rules. Say this once in the output footer; don't decide coverage for the user. Links: [390.3T](https://www.ecfr.gov/current/title-49/subtitle-B/chapter-III/subchapter-B/part-390/subpart-A/section-390.3T), [390.5T](https://www.ecfr.gov/current/title-49/subtitle-B/chapter-III/subchapter-B/part-390/subpart-A/section-390.5T). Text checked on eCFR 2026-11-17 (Title 49 up to date as of 2026-11-13). The P1 list below is the owner's own parking policy. It is **not** the CVSA North American Standard Out-of-Service Criteria (a paid CVSA publication), and the skill must not paraphrase or claim to apply that standard. ## Required inputs 1. **Data source**, one or more of: - Samsara MCP, MyGeotab MCP or Fleetio MCP, or the user's own REST access, or - **no connector:** a pasted or attached CSV export (see "No connector? Use a CSV"). 2. **Look-back window:** default 7 days for new defects. Always include anything still unresolved, however old. 3. **Safety-critical list:** the owner's own list of items that keep a vehicle parked until it's repaired and certified. If they don't have one, offer the starter list below and ask them to confirm or edit it. **Don't treat the starter list as a legal standard.** 4. **Non-safety list:** the owner's list of items that may wait (P3). Offer the starter list below. Only items on this list can ever land in P3. 5. **Scope (optional):** group, tag or units. ### Starter safety-critical list (the owner must confirm it) Each line names the federal section it's drawn from, so the owner can check it. Items marked "App. A" are categories in Appendix A to Part 396, Minimum Periodic Inspection Standards (formerly Appendix G to Subchapter B). - Service brakes, trailer brake connections, parking brake, brake hoses and lines (396.11(a)(1); Part 393 Subpart C; App. A §1) - Air system: air leaks, "hissing", low air warning, compressor, air lines (App. A §1 lists "audible air leak at brake chamber") - ABS warning lamp on or not working (393.55; App. A §1, antilock brake system) - Steering, including play, column, linkage (396.11(a)(1); 393.209; App. A §7) - Suspension and springs: broken or missing leaf, coil or air spring, cracked or loose U-bolt, hanger or axle part (393.207; App. A §8) - Frame: cracked, broken, loose or sagging frame member, loose cab or body mounts (393.201; App. A §9) - Tires (396.11(a)(1); 393.75; App. A §10) - Wheels, rims, lug nuts (396.11(a)(1); 393.205; App. A §11) - Lights and reflectors (396.11(a)(1); Part 393 Subpart B; App. A §5) - Coupling devices: fifth wheel, kingpin, pintle hook, drawbar, safety chains (396.11(a)(1); 393.70; App. A §2) - Fuel system: any visible leak, missing filler cap, loose tank (393.65, 393.67; App. A §4) - Exhaust: leaks, especially at or forward of or below the cab or sleeper; fumes in the cab (393.83; App. A §3) - Windshield glass damage in the driver's view, wipers, defroster or defogger (396.11(a)(1) wipers; 393.60, 393.78, 393.79; App. A §12–13) - Rear-vision mirrors (396.11(a)(1); 393.80) - Horn (396.11(a)(1); 393.81) - Seat belts, and driver seat mounts (393.93) - Emergency equipment: fire extinguisher, warning devices (396.11(a)(1); 393.95) - Cargo securement, loose load (Part 393 Subpart I; App. A §6) - Rear impact guard (393.86; App. A §15) - Smoke, fire, burning smell, fluid leaks under the vehicle (oil, coolant), and engine red-stop or low-oil-pressure warnings (owner policy; no single federal section) ### Starter non-safety list (the owner must confirm it) Cosmetic body damage with no loose parts or sharp edges, interior trim, radio and infotainment, cab comfort items, cup holders, dome lights inside the cab, and heating or cooling **except** defrost and defog. Anything not clearly on this list is not P3. ## Read-only rule (always applies) - Read only. Never resolve, certify, update, dismiss or delete a defect, never create a work order, and never message a driver. - **The MyGeotab MCP can write.** Use only `Get` / `GetCountOf`-type reads there. - Only a mechanic or the owner marks a defect repaired or certifies it, in their own platform. ## Steps ### 1. Confirm the connection Make one cheap read on each platform. Report any failures and keep going with the rest. For a CSV, check that the columns below are present and say which are missing. ### 2. Pull the defects **Samsara MCP** - `read_reference_card()`, then `describe_query("query://dvir/defects/list")` for the variables. - `run_query("query://dvir/defects/list", …)` over the window, plus anything unresolved. - For context on a defect, `run_query("query://dvir/details", …)` returns the inspection, resolution info and media. - REST fallback (the user's own token with "Read Defects"): `GET /defects/stream?isResolved=false` with `startTime` / `endTime`. **MyGeotab MCP** - `Get` `DVIRLog` over the window. - *Assumption:* each log includes its defects with `repairStatus` (`NotRepaired`, `Repaired`, `NotNecessary`), as in the MyGeotab API `DVIRDefect` object. If the MCP doesn't return repair status, mark those defects STATUS UNKNOWN. Never assume they're fixed. **Fleetio MCP** - Recent inspections and the items that failed. Fleetio confirms the MCP can read "inspections (including which items failed)." - Open issues. Fleetio documents that DVIR defects from its Geotab integration "automatically create Issues in Fleetio." *Assumption:* defects from other integrations may also show up as issues; that isn't confirmed. - REST fallback: `GET /v1/submitted_inspection_forms`, `GET /v2/issues`. ### 3. Normalize One row per defect: `unit`, `vin`, `component/part`, `driver note`, `reported_at`, `inspection_id`, `status` (open / repaired / not necessary / unknown), `repaired_at` (if shown), `linked_work_order` (only if the data shows one), `source`. If the same defect shows up in Geotab and in Fleetio (as an auto-created issue), keep one row and list both sources. Treat **status unknown as open** for sorting, and flag it STATUS UNKNOWN. ### 4. Classify each open defect Check **both** the component field and the driver note. Component picks are coarse, and "Other" is common, so the note often carries the real problem. Scan the driver note, case-insensitive, for these terms: brake, air leak, hiss, low air, air line, ABS, steer, tire, flat, blowout, tread, wheel, rim, lug, crack, frame, spring, leaf, U-bolt, suspension, air bag, fuel, leak, exhaust, fumes, smoke, fire, burning, light, lamp, reflector, fifth wheel, kingpin, hitch, pintle, chain, glad hand, slack adjuster, pushrod, mirror, horn, wiper, windshield, defrost, seat belt, seat, belt, door, step, grab handle, extinguisher, triangle, load, strap, loose, pull (also "pulls"), grind, vibration, shake, wobble, bulge, bald, cord, oil pressure, overheat, coolant, warning light, dash light, check engine, derate. Then, for each open defect: - **Safety-critical:** the component, or a term in the note, clearly matches an item on the owner's safety-critical list. - **Non-safety:** the component and the note both clearly match the owner's non-safety list, and the note has no scan-term hit that points to a safety item. - **Unclassified:** anything else. That includes component "Other" or blank with an unclear note, a scan-term hit whose meaning isn't clear (for example "belt" with no other words), and a component on the non-safety list whose note hits a safety term. When in doubt, it's unclassified. - **Broken, loose or not working on a non-safety part:** if the component is on the non-safety list but the note says something is broken, loose, not working, stuck, falling off or missing (anything beyond cosmetic wear), it's unclassified and goes to Mechanic review, even if no scan term hit. For example, component "Interior" with the note "driver seat loose" goes to Mechanic review, not P3. Only notes that are clearly cosmetic or comfort-only stay non-safety. Quote the note and the matched term. Don't diagnose. ### 5. Sort into buckets Each open defect goes to exactly one bucket: 1. **P1 HOLD: repair and certify before it runs.** Open and safety-critical. (Certify means certifying on the DVIR that it was repaired or that repair is unnecessary, per 396.11(a)(3)(ii).) 2. **MECHANIC REVIEW BEFORE DISPATCH.** Open and unclassified. A mechanic or the owner decides whether it's safety-related before the unit is dispatched. Never put these in P3. 3. **P2 FIX THIS WEEK.** Open, non-safety, and open longer than 7 days (stale). 4. **P3 SCHEDULE.** Open and non-safety, not stale. 5. **Closed in window:** repaired or not necessary inside the window. Show a count only. ### 6. Add flags (any bucket) - **REPEAT:** the same unit and the same component (or the same safety item from the note) was reported 2 or more times in 30 days, or reported again after an earlier report was marked repaired or not necessary. Show the count and, if the data shows it, the earlier repair date and work order: `REPEAT x3 in 30d, last marked repaired , WO `. - **STATUS UNKNOWN:** the platform didn't return a repair status. Within each bucket, put REPEAT rows first, then oldest report first. P1 rows with REPEAT go at the very top of the list. ### 7. Write the list Use the output format. Quote driver notes as written; don't rephrase them into a diagnosis. ## Output format ``` Defect triage: (, window days) P1 HOLD: repair and certify before it runs () - | | "" | matched: | reported , inspection | | MECHANIC REVIEW BEFORE DISPATCH () - | | "" | why: | reported | | P2 FIX THIS WEEK () - | | open days | | P3 SCHEDULE () - | | reported | | Closed in window: Data gaps: Lists used: "> Rule note: P1 follows 49 CFR 396.11(a)(3): repair any listed defect likely to affect safe operation, and certify on the DVIR that it was repaired or that repair is unnecessary, before the vehicle operates again. Part 396 covers interstate CMVs (49 CFR 390.3T(a)(1), in force while 390.3 is suspended; same coverage phrase). It doesn't reach vehicles outside the CMV definition in 390.5T (for most trucks, under 10,001 lb with no passenger or placarded-hazmat trigger) or government fleets (390.3T(f)(2)); those follow state rules or their own policy. Intrastate rules vary by state. This list is a sorting aid, not the CVSA out-of-service criteria. ``` If a bucket is empty, write "none." Don't drop the bucket. ## Sample output (fake units, for illustration only) ``` Defect triage: 2026-11-16 (Fleetio, window 7 days) P1 HOLD: repair and certify before it runs (2) - TRK-104 | Brakes | "air hissing at rear axle when parked" | matched: air system | reported 2026-11-15, inspection 9001 | REPEAT x2 in 30d, last marked repaired 2026-11-02, WO 5001 | Fleetio - TRK-101 | Other | "crack in frame rail behind cab" | matched: frame | reported 2026-11-16, inspection 9004 | Fleetio MECHANIC REVIEW BEFORE DISPATCH (2) - TRK-107 | Other | "belt squealing on startup" | why: unclear note ("belt") | reported 2026-11-16 | Fleetio - TRK-108 | Interior | "driver seat loose" | why: conflict (non-safety component, note says "loose"; matched "seat", "loose") | reported 2026-11-16 | Fleetio P2 FIX THIS WEEK (1) - TRK-102 | Interior | open 9 days | Fleetio P3 SCHEDULE (1) - TRK-103 | Radio | reported 2026-11-14 | Fleetio Closed in window: 4 Data gaps: none Lists used: starter lists, confirmed by owner on 2026-11-10 Rule note: P1 follows 49 CFR 396.11(a)(3) ... ``` ## No connector? Use a CSV If the user has no MCP connection, ask them to export their DVIR or inspection defect report to CSV from their platform (for example, Fleetio index pages and reports have an Export Data or Export CSV option; Geotab documents that its Active Engine Faults report downloads as Excel; the DVIR report's download format isn't confirmed, so use whatever format MyGeotab offers and save it as CSV), then paste it or attach the file. Expected columns (names can differ; map them and say how you mapped them): | Column | Needed? | |---|---| | unit (vehicle name or number) | required | | reported date | required | | component or inspection item | required | | driver note or comment | required | | status (open / repaired / not necessary) | strongly recommended; if missing, every row is STATUS UNKNOWN | | repaired date | optional, for REPEAT | | VIN, inspection ID, work order | optional | Use the same classification, buckets and flags. Put "CSV" as the source and list any missing columns under Data gaps. ## Using this in a chat tool without a skills folder If your AI tool doesn't load skill folders, paste this whole SKILL.md into the chat (or into the tool's custom instructions), then paste or attach your CSV, or connect your platform if the tool supports it. Then ask: "Triage this week's inspection defects." ## Limits - The buckets are a sorting aid, not a legal or mechanical determination. The owner and their mechanic decide whether a vehicle is safe to run. - The starter lists are examples only. Owners should match them to their own policy and the regulations that apply to them. - Keyword scanning can miss a defect written in unusual words, and it can raise false alarms. That's why unclear items go to Mechanic review, never to P3. - Geotab defect repair status through MCP is an assumption until it's confirmed in a live account. - Fleetio MCP tool names aren't published. - If drivers don't record inspections on the platform, the defects won't show up here.