runbookify
← All plans
Logistics & Transportation / Fleet & Driver Management

DVIR & Defect Workflow

Capture driver vehicle inspection reports, route defects to the shop, and require a mechanic's return-to-service sign-off - so safety defects stop dying on paper.

IntermediateA weekendBuilds onNext.js (App Router) on VercelSupabase (Postgres + Storage + Auth + RLS)Resend (email notifications)
What you'll build

A web app where drivers submit pre/post-trip DVIRs with photos, defects route to the shop, a mechanic certifies the repair and an out-of-service decision, and every vehicle gets a clean inspection history.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A free Vercel account
  • A free Supabase account
  • A free Resend account (for defect + return-to-service emails)
  • Your current DVIR checklist / inspection items and your list of vehicles

The problem this kills

DVIRs - the pre-trip and post-trip safety inspections your drivers are legally required to do - are supposed to catch defects before a truck rolls. But on paper (or in a glovebox notebook), they fail in predictable ways: a driver scribbles "brake light out," the sheet ends up crumpled under a seat, and the shop never hears about it. Nobody can prove who inspected what, or when. When a real out-of-service defect slips through, you're exposed - in a roadside inspection, in a CSA score, and in the worst case, in a courtroom.

The other half of the problem is the hand-off. Even when a defect is written down, there's no clean path from "driver found it" to "mechanic fixed it" to "this vehicle is safe to operate again." Defects float between a driver's note, a text to dispatch, and a mechanic's memory. Nobody owns the return-to-service decision, and the certification that the repair actually happened gets lost.

What you'll build

A simple internal web tool that closes the loop:

  • Drivers open the app on a phone, pick their vehicle, and run through your exact pre-trip or post-trip checklist - tapping each item, adding defect notes, and snapping photos.
  • Any reported defect is automatically routed to the shop and shows up in a maintenance queue.
  • A mechanic reviews each defect, decides whether the vehicle is out-of-service, performs and certifies the repair, and gives a documented return-to-service sign-off.
  • Every inspection and every defect is stored with a full, searchable history per vehicle - who, what, when, and the photos to prove it.

What's inside the Implementation Plan

The plan is a single file you paste into an AI coding agent (Claude Code), which then builds the tool with you step by step. It opens by interviewing you about your business - your inspection items, your vehicle naming, your shifts, your out-of-service criteria, and your real edge cases - so the tool is tailored to your fleet, not a generic template. It reads a short spec back to you and waits for your thumbs-up before building anything.

From there it walks you through:

  • Setting up the database, login, and per-organization security.
  • Building the driver DVIR form with photo capture.
  • Routing defects into a shop queue and notifying maintenance.
  • The mechanic review screen with out-of-service criteria and repair certification.
  • The return-to-service sign-off and the per-vehicle inspection history.
  • A CSV import/export fallback so you can run it today even with no link to your existing fleet system.

Each build step ends with a ready-to-copy prompt - you paste, the agent builds, you check it, you move on.

The governance it includes (this is the point)

This isn't a glorified form. The plan bakes in the controls a fleet and safety team actually needs:

  • Login so only your team can use it.
  • Row-level security so each company only ever sees its own vehicles and inspections.
  • A complete audit trail - every submission, defect, and sign-off is stamped with who did it and when.
  • A hard human-in-the-loop gate: a vehicle cannot return to service until a mechanic reviews the defect and certifies the repair. The system drafts and routes; a qualified person decides.
  • Duplicate guards so the same driver can't accidentally file two DVIRs for the same vehicle, date, and shift.

Who it's for

Drivers who need a fast, dependable way to log inspections; maintenance shops that need defects to actually reach them; and safety managers who need provable inspection history and a clean return-to-service trail.

You've got this - paste the first prompt and let the agent interview you.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.