Skip to content
Operations
Skill

/security-digest

Generate a security digest summarizing events across UniFi Protect cameras, Access door events, and Network firewall activity. Use when asked about what happened overnight, security summary, event digest, recent activity, or reviewing camera and access events.

From plugin
unifi-mcp
1.1k18 skills

Claude Code

$ npx -y skills add sirkirby/unifi-mcp --skill security-digest --agent claude-code

SKILL.md

security-digest.SKILL.md
name: security-digest
description: Generate a security digest summarizing events across UniFi Protect cameras, Access door events, and Network firewall activity. Use when asked about what happened overnight, security summary, event digest, recent activity, or reviewing camera and access events.

Security Digest

Dependencies

Requires: protect Optional: network, access

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.

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.

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.

Setup Check

Before generating a digest, verify the primary server is reachable:

  • Call `protect_tool_index` to discover the Protect tools; then check each required read response for success. Discovery is not a controller connectivity test.
  • Server credentials may be supplied outside the agent's environment; do not infer missing configuration from that environment alone.

For full cross-product correlation (CORR-01 through CORR-05), the unifi-network and unifi-access plugins must also be configured. Check availability by calling `unifi_tool_index` and `access_tool_index`. Mark rules that span missing servers unevaluated and name the missing evidence in the single-source report.

Collection Budget

Choose an explicit interval and timezone before collecting. At most three batches (one per available product) plus one bounded follow-up batch per product; stop at six calls or 60 seconds, whichever comes first. Record budget exhaustion as partial. Do not keep increasing caps to obtain an all-clear. The default smart-detection confidence filter excludes low-score records; record that filter as a coverage limit.

Generating a Digest

Determine the Time Range

Default ranges if the user does not specify:

  • **overnight** — last 12 hours (6 pm to 6 am)
  • **today** — since midnight
  • **recent** — last 4 hours

Gather Events (parallel batch calls per server)

Use each server's batch tool to gather events in parallel within that server. Do not call these tools one at a time.

**From Protect** (required):

Use `protect_list_smart_detections` as the primary source — these are the highest-signal events (person, vehicle, package, animal). Only add `protect_list_events` with `event_type=motion` if you need raw motion data beyond smart detections. Skip `protect_recent_events` for digests — it only contains the last few minutes of buffered events and adds little value for historical ranges.

protect_batch(operations=[
  { "tool": "protect_list_smart_detections", "arguments": { "start": "...", "end": "...", "limit": 50, "compact": true } },
  { "tool": "protect_list_events", "arguments": { "start": "...", "event_type": "ring", "limit": 20, "compact": true } }
])

Use `compact=true` on all event queries for digests — it strips thumbnail_id, category, sub_category, and is_favorite fields, reducing response size by ~40%.

Canonical event rows use `camera`; names may be absent. Use `protect_list_cameras` when name resolution is needed and retain the source camera ID.

**From Access** (if available):

access_batch(operations=[
  { "tool": "access_list_events", "arguments": { "start": "...", "end": "...", "topic": "unlocks", "limit": 100 } },
  { "tool": "access_list_events", "arguments": { "start": "...", "end": "...", "topic": "access_denial", "limit": 100 } },
  { "tool": "access_get_activity_summary", "arguments": { "days": 1 } }
])

**From Network** (if available):

unifi_batch(operations=[
  { "tool": "unifi_list_alarms" },
  { "tool": "unifi_list_events", "arguments": { "within_hours": 12, "start": 0, "limit": 100 } }
])

The three batch calls (Protect, Access, Network) can be issued concurrently — they target independent servers.

Analyzing Events

Use these reference documents to classify and correlate the gathered events:

  • `references/event-types.md` — guide to event fields and controller-dependent event codes from Protect, Access, and Network, with key fields and digest relevance. Consult before labeling any event type.
  • `references/correlation-rules.md` — the five cross-product review heuristics (CORR-01 through CORR-05) with their logic, time windows, and recommended responses. Apply these when data from multiple servers is available.
  • `references/severity-model.md` — how base severity is computed and modified by time of day, l
Read more
@sirkirby
Ships withunifi-mcp

Leverage agents and agentic AI workflows to manage your UniFi deployment.

Stars on GitHub

Momentum

stars in total
1.1k
Star history of sirkirby/unifi-mcp on GitHub, a chart by star-history.com

Other skills on unifi-mcp.

unifi-access-setup

unifi-access-setup

Configure the UniFi Access MCP server for a supported MCP client — set controller host, credentials, API key, and permissions.…

@sirkirby@sirkirbyInstall Skill
unifi-access-support

unifi-access-support

Generate a sanitized UniFi Access support bundle, help the user review it locally, and prepare it for a bug report without…

@sirkirby@sirkirbyInstall Skill
unifi-access

unifi-access

How to manage UniFi Access door control — locks, credentials, visitors, access policies, and events. Use this skill when the user…

@sirkirby@sirkirbyInstall Skill
incident-investigation

incident-investigation

Investigate one UniFi Network device incident (a switch, AP or gateway going offline, disconnecting or misbehaving) over an…

@sirkirby@sirkirbyInstall Skill
security-patrol

security-patrol

Review retrieved activity at one area in a given time window from the cloud worker's merged Network and Protect timeline, with…

@sirkirby@sirkirbyInstall Skill
visitor-audit

visitor-audit

Audit visitor activity by reading Access door events and setting them beside Network evidence from the cloud worker's timeline…

@sirkirby@sirkirbyInstall Skill

More skills from other plugins.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

omarchy7d47k
@basecamp@basecampInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps3d934
@gotempsh@gotempshInstall Skill
alert-analysis

alert-analysis

Investigate a specific Elastic Security detection alert: gather context, assess entity risk, classify the threat, document…

@elastic@elasticInstall Skill

Questions about security-digest.

Which coding agents can use security-digest?
security-digest installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.