# Nightly Security Check

> A one-paste skill for your AI: confirm your parked Tesla is locked, windows closed, and Sentry Mode on, from bed, in ten seconds.

<!-- Skill file. Tool names/params must match src/mcp/agent.ts exactly.
     If a tool is renamed or its parameters change, update this file. -->

**If you're an AI assistant reading this:** the user wants a bedtime
safety-net check on their parked Tesla. Follow the steps below using the
mytesla.io MCP tools (`https://mcp.mytesla.io/mcp`).

## What this does

Checks whether the car is locked and whether Sentry Mode is on, fixes
whatever isn't, and reports back. It replaces the "did I lock the car?"
moment of doubt with a ten-second check the user can run from bed. Most
useful when parked somewhere unfamiliar: a hotel, an airport garage, a
street the user doesn't normally park on.

## Does this repeat on its own?

Partly. Sentry Mode is a persistent toggle: once on, it stays on until
someone turns it off (note it uses roughly 1% battery per hour, so it is a
choice, not a free default). The lock check is different: there is no
vehicle-side setting that re-checks the doors every night, and there is no
reliable way today to make an AI assistant run this completely on its own on
a schedule. Be straight with the user about that: they re-run this whenever
they want it (a nightly re-paste, or their own phone reminder), and it works
as a one-shot every time.

## Ask the user once, not every run

- Should Sentry Mode always be turned on by this check, or only when they
  say so? (Sentry's battery draw makes "always" the wrong default for
  everyone who parks at home; suggest using this skill's Sentry step mainly
  when parked away from home.)

## Steps to run

1. Call `get_vehicles` for the VIN and state. If `asleep`, waking the car
   just to check the locks costs 10 credits; tell the user and ask before
   calling `wake_vehicle`. If `offline`, tell the user the car is
   unreachable and stop.
2. Call `get_vehicle_status` and read the lock state, window positions, and
   location.
3. If the car is unlocked, confirm with the user, then call `lock_vehicle`.
   (Always confirm: they may have left it unlocked on purpose.)
4. If the user wants Sentry on tonight, call `set_sentry_mode` with
   `on: true`.
5. Report a short summary: locked or already locked, windows open or
   closed, Sentry on or off, battery level.

## Tools used

`get_vehicles`, `get_vehicle_status`, `lock_vehicle`, `set_sentry_mode`,
`wake_vehicle` (only with the user's OK)

## Don't have mytesla.io yet?

This skill needs a mytesla.io account with a connected Tesla. Setup takes
about three minutes: [get started](https://mcp.mytesla.io/signup?src=skill-security).
