Skip to content
Operations
Skill

/incident-investigation

Investigate one UniFi Network device incident (a switch, AP or gateway going offline, disconnecting or misbehaving) over an explicit, bounded time window, with Protect camera context, using only the local read-only evidence tools. Produces a cited report that states its

From plugin
unifi-mcp
1.1k18 skills

Claude Code

$ npx -y skills add sirkirby/unifi-mcp --skill incident-investigation --agent claude-code

SKILL.md

incident-investigation.SKILL.md
name: incident-investigation
description: Investigate one UniFi Network device incident (a switch, AP or gateway going offline, disconnecting or misbehaving) over an explicit, bounded time window, with Protect camera context, using only the local read-only evidence tools. Produces a cited report that states its coverage. Use when the user asks what happened to a Network device at a given time.

Network Device Incident Investigation

Investigate one Network device incident over one explicit window. Every claim in the report cites **evidence**: records and per-source **coverage** returned by the two incident evidence tools. Each tool returns a bounded **view** of its evidence document (`schema: "unifi-incident-evidence-view"`) that fits in one tool result: every source's outcome, failure and coverage, plus the record citations that fit (at most `max_records_returned`), with omitted records counted and a cursor to read the rest. The local product servers are the whole transport; nothing here needs the cloud worker or the relay.

Dependencies

Requires: network, protect Optional: worker

The investigation needs `unifi_get_incident_evidence` (Network) and `protect_get_incident_evidence` (Protect). Discovery shows a tool is listed, not that its controller is reachable or authorized; the evidence documents report that per source.

  • **Protect not connected.** Stop the canonical investigation and report Protect

unavailable. Offer a Network-only investigation; with the user's consent, run the same workflow without the Protect call and label the report "Network-only: Protect unavailable, no camera context". A Network-only report never reaches complete coverage of the incident.

  • **Network not connected.** Stop and report Network unavailable. There is no

device evidence to investigate.

  • **Cloud worker.** Not needed. Its location timeline, reached through a

connected relay, collects the same evidence through these two tools and returns one combined document; this workflow calls the tools directly so each product's document and budgets stay separate. When you reach the product servers through the cloud worker, call the same two evidence tools.

Use the product setup skills for connection help; never ask for secrets.

Coverage and Limitations

Every report has a Coverage and Limitations section built from the evidence documents, never from memory or from record counts alone:

  • One line per evidence document: `overall`, `coverage_complete` and budgets.
  • One line per document on `record_selection`: records returned, collected and

omitted from the view.

  • One line per source in each document: outcome, partial reasons, failure,

queried window, filters, pagination, truncation, retention and counts (formats under [Report](#report)).

  • Products, cameras and mappings that were not read, and why.

Claims are bounded by coverage:

  • **Complete coverage** ("every source read the full window") only when every

document in the investigation has `coverage_complete: true` and `overall` is `complete` or `empty`.

  • **All-clear** — the sentence "No events were recorded in the window by any

source." — only when every document has `overall: "empty"` and `coverage_complete: true`, and Protect was read. Otherwise write "No concerning activity found in the retrieved records" with the coverage gap beside it.

  • **Retention.** Neither product reports how long it keeps events, so every

source's `coverage.retention_coverage` is `unknown`. Whenever any source is `empty`, including beside the all-clear, write this sentence: "Neither controller reports how long it keeps events (retention `unknown`), so events older than its retention may have been discarded without a trace."

  • Counts are retrieved records. `population_total` is a total only when the

source is complete.

  • Records omitted from the view (`record_selection.omitted`) are a

presentation limit, not a coverage gap: coverage and counts still describe every collected record. Make no claim about omitted records beyond their counts. Records counted in `too_large` have identifiers too long to cite in a view, or a citation too large to fit beside its sources; only `detail="full"` shows them.

  • A record's `truncated` names free text the view cut to a prefix (`summary`,

`event_type`, `original_value`, `source_tool`) with its full length; a source's `truncated` names its labels cut the same way (`source_tool`, `controller_id`, `site`, `location_id`). Quote only the prefix, mark it as cut, and claim nothing about the text that was cut off.

  • A failed source (`unavailable`, `auth_failed`, `permission_denied`,

`timeout`, `unsupported`, `parse_failed`, `not_attempted`) is missing evidence, never an empty result.

Safety

The investigation reads; it never changes anything.

  • Call only tools the client lists with `readOnlyHint: true`. Reach every tool

directly by its own name; the lazy-mode `*_execute` and `*_batch` dispatchers are not read-only and are not part of this workflow.

  • Make no remediation, configuration change, reboot, block, acknowledgement or

other mutation, even when the cause looks obvious. Recommend actions in words for the user to decide.

  • Investigate the one confirmed window, once. Continuous monitoring, polling or

subscriptions are outside this workflow.

  • Offer only reads the directly listed read-only tools can make: the two

incident evidence tools for exact identifiers, `protect_get_camera` by camera ID 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.

  • Never page with `resume_after`, split the window, raise a budget or call

`detail="full"` without the user's yes to that follow-up. Offer it, end you

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
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
firewall-auditor

firewall-auditor

Audit UniFi firewall policies for conflicts, redundancies, security gaps, and best practices. Use when asked to review firewall…

@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…

temps2d934
@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 incident-investigation.

Which coding agents can use incident-investigation?
incident-investigation 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.