runbookify
← All plans
Facilities, Assets & IT Operations / Visitor & Badge Management

Badge & Access-Card Lifecycle: No Live Badges for People Who Left

Track every access badge from issue to deactivation — issue, assign zones, report lost/stolen, kill on departure — with a security admin approving each change and an export your access-control system can read.

IntermediateA weekendBuilds onNext.jsSupabaseResend
What you'll build

A web tool where you issue badges and assign access zones, a security admin approves every issue, access change, and deactivation, lost/stolen reports immediately raise a deactivation task, departures auto-trigger deactivation, and it exports an activation/deactivation list your access-control system can import — with a full audit trail and dedupe on card number.

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 Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • A CSV of your badge inventory (card numbers, zones, holders) and a CSV staff/leaver list
  • Claude Code or any AI coding agent

The problem this kills

Someone resigns on Friday. HR runs the exit interview, IT kills the email, the laptop comes back — and a plastic access card that still opens the loading dock, the server room, and the side door is sitting in their kitchen drawer. Nobody deactivated it because the badge register lives in a spreadsheet that three different admins update, the access-control software is a separate world entirely, and the leaver list never quite makes it to whoever cuts badges.

That gap is one of the most dangerous holes in physical security. A live badge for a person who left is an unmonitored key to your building. Lost and stolen cards are the same risk arriving faster. The fix isn't a six-figure system — it's a tight loop that ties every badge to a real holder, ties every holder to their employment status, makes a security admin approve each change, and never lets a badge stay active when its holder is gone. You do not need to be a developer to build that loop.

What you'll build

A simple internal web tool for your physical-security and facilities team. You import your badge inventory (card numbers, access zones, assigned holders) and your staff/leaver list. From there you can issue a badge to a holder and assign access zones, mark a card lost or stolen, and reconcile against your access-control system's export. Every issue, every access-level change, and every deactivation goes to a security admin who approves it before it counts — and a lost/stolen report or a departure on the leaver list immediately raises a deactivation task in the admin's queue. When badges are approved active or approved dead, the tool exports a clean activation/deactivation list in the exact columns your access-control system imports — so the physical readers and your register always agree.

What's inside the Implementation Plan

The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — how badges get issued today, what your access zones and badge numbers actually look like, which access-control system you run (and what its import file needs), how you learn that someone has left, and the messy edge cases like contractors, temp badges, and re-issued cards. It reads a short spec back to you for a thumbs-up, then builds the tool around your answers instead of a generic template. From there it walks the agent through the data model, the inventory and leaver imports, the issue/assign flow, the lost-stolen fast path, the offboarding trigger, the admin approval gate, and the activation/deactivation CSV exports. Every step ends with a ready-to-copy prompt.

The governance it includes (this is the point)

This isn't a toy. The plan builds in the controls a real security function needs: login so only your team can use it, row-level security so people only ever see their own organization's badges and holders, a complete audit trail of every issue, access change, and deactivation (who, what, when, and why), a hard human-approval gate so nothing changes a badge's live status until a security admin signs off, and duplicate guards so the same card number can't exist twice and the same import can't be processed twice. The whole tool exists to make a careful human decision easy and fast — the system raises the task, a person makes the call, and the access-control export only ever reflects approved reality.

Who it's for

Physical-security leads, facilities and security admins, and IT-physical-access teams who own the badge drawer and the access-control software and are tired of finding live cards for people who left months ago. If you can describe how a badge gets issued and how you learn someone walked out the door, you can build this.

You've got this — open the plan, paste the first prompt, and you'll be tracking your first real badges through approval this weekend.

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.