5,236,922 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Visitor Audit

Audit visitor activity by correlating Access badge scans with Network client connections. Use when the user wants to know who visited, when, and what devices they brought.

Installable skillMITBy sirkirbyUpdated Nov 2, 2026
INTENDED FORClaude CodeCodexOpenClawCursorInstall in a listed agent.

instructions.md

---
name: visitor-audit-33bda47042eb
description: Audit visitor activity by reading Access door events and setting them beside Network evidence from the cloud worker's timeline near the same doors. Needs the cloud worker with a connected relay. Use when the user wants recorded access activity and nearby network activity, with identity limits.
---

# Visitor Audit

## Dependencies

Requires: access, worker
Optional: network

This skill needs the cloud worker. The cloud worker provides
`unifi_location_timeline` through a connected relay; local product servers do
not. Look for it in the client's tool list, which takes no tool call. If it is
not listed, stop with no tool call at all and report “No merged timeline
available: this skill needs the cloud worker.” You may offer separate local
product reads in words, naming the tools you would use; make none until the
user agrees, naming only the reads Safety allows, and give any you then make
their own coverage labels.

Verify required tools through MCP discovery before collecting data; discovery alone
does not prove controller connectivity or authorization. If a required server/tool
is missing or a required read fails, stop and report it unavailable. Optional sources
may be skipped only when the report visibly names the missing source and resulting
coverage limits. Use the product setup skill for connection help; never request secrets.

The timeline collects Network and Protect evidence only and reports Access as
`unsupported`, so this audit never asks it for Access and never presents Access
records as timeline evidence. Access events come from the Access server's own
read-only event tool, listed directly by the Access server or the cloud worker;
when neither lists it directly, Access is unavailable. A timeline
response alone does not establish complete source coverage.

## Coverage and Limitations

Every report must include a **Coverage and Limitations** section: name each requested
source and its status (available, unavailable, partial, or capped), requested time
window/timezone or current-state collection time, actual filters, returned counts,
limits, pagination, and any failed calls or unknown fields. Counts describe retrieved
records, not totals unless completeness is established. A successful empty query is
an observation; a failed or missing source is unavailable, never an empty result.
If a limit is reached, label the source capped unless further bounded reads establish
coverage. If completeness cannot be established, label it partial. Do not claim
complete coverage, all-clear, or overall health from unavailable, partial, or capped
data; say “No concerning activity found in the retrieved records” when appropriate.

State the two sources apart: the Access read with its filters, returned count and
limit; and the timeline's Network coverage (`overall`, `coverage_complete`, the
Network source's outcome and `budgets.exhausted`). The timeline's coverage says
nothing about Access.

Separate **Observations** (cite source/tool, record ID and timestamp when available),
**Hypotheses** (correlations and alternative explanations), and **Identity** (only
explicit source-backed credential/account attribution, with its limits). Timing,
similar names, proximity, or absence of a matching event alone proves neither
identity nor cause. A credential event identifies the recorded account, not who
physically used it. Missing mappings or clock uncertainty limit correlations.

You are auditing visitor activity by setting recorded door access beside network
evidence near the same doors.

## Safety

- Use only tools the client lists directly with `readOnlyHint: true`. Never use
  `*_execute` or `*_batch`, even for a lookup: they are not read-only.
- Make no controller read the user has not agreed to. Identifiers come from the
  user.
- Offer only reads the directly listed read-only tools can make:
  `unifi_get_incident_evidence` for exact device MACs and
  `unifi_get_client_details` by MAC.
  Never offer to list devices, cameras, access points or doors, and never
  reach for `*_load_tools`, `*_execute` or `*_batch`.
- When an identifier is missing, ask the user for it: they can find it in the
  UniFi app, or by running the product's own list tool in eager mode.
- Offer a further page (`resume_after`) or another read; make it only after the
  user says yes.

## What You Do

Given a time window (e.g., "today", "this week"), you:

1. Confirm the window with a date and timezone, and the doors to audit by UUID,
   or all doors. Door UUIDs come from the user, from the UniFi Access app or the
   Access server's own door list tool in eager mode.
2. Read the door events from Access for the window, for example
   `access_list_events(start="2026-08-08T13:00:00Z", end="2026-08-08T21:00:00Z", limit=500)`,
   adding `door_id` for one door. When the returned count equals `limit`, label
   the read capped and offer a narrower window.
3. Turn the doors' surroundings into exact Network device MACs, such as the
   access points that serve the entrance: ask the user for their MACs, from the
   UniFi app or the Network server's own device list tool in eager mode. Never
   pick a device by name similarity.
4. Read Network evidence for the same window from the timeline:
   `unifi_location_timeline(start="2026-08-08T09:00:00-04:00", end="2026-08-08T17:00:00-04:00", products=["network"], device_macs=["aa:bb:cc:00:10:01"])`.
   When `record_selection.next_cursor` is set, offer the same call with
   `resume_after` set to it, and make it only after the user says yes.
5. Describe temporal correlations as hypotheses:
   - Match recorded door events with Network client connections on those devices
     in the same window
   - List devices observed during each recorded access window; ownership is unknown
6. Present separate Observations, Hypotheses, Identity, and Coverage and Limitations
   sections. Attribute door events only to their recorded account; do not infer
   actual visitor identity, visit duration without exit evidence, or device
   ownership from timing.

## Example Prompts

- "Who visited today and what devices did they bring?"
- "Visitor audit for this week — any unusual guest device activity?"
- "Show me all badge-ins and associated network connections for the past 24 hours"

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.