myco:extend-unifi-api

Installation
SKILL.md

Implementing New UniFi Resource Types End-to-End

This unified skill covers the complete flow for adding a new UniFi resource type from manager implementation through API exposure. Both manager/tool layer (apps/{package}/) and API layer (apps/api/) must be implemented together for a complete resource.

Prerequisites

  • Understand which package owns the resource (network, protect, access).
  • Know whether the resource's GET-by-ID endpoint returns 405 (Step 2A).
  • Have a live controller available for validation output in PR description.
  • Dependency rule: apps/api/ may only import from unifi-core, never unifi-mcp-shared.
  • V2 API identifier hazard: Understand the difference between UniFi V2 ObjectID (_id) and Integration UUID semantics before implementing cross-controller queries.

Part 1: Manager/Tool Layer (apps/{package}/)

Step 1 — Create Manager Class

File: packages/unifi-core/src/unifi_core/<server>/managers/{resource}_manager.py

Installs
4
GitHub Stars
1.0K
First Seen
May 22, 2026