What problem does it solve?
Adding endpoints and serializers to the apps/api UniFi REST server involves strict conventions—resource vs. action classification, cursor pagination, ManagerFactory wiring, Phase 5A routing patterns, and two CI gates—and violating any of them breaks the build or fails route-coverage tests.
Core Features & Use Cases
- Endpoint Authoring Rules: Classifies resource endpoints (409 on missing product) versus action endpoints (200 with capability_not_available envelope), wires Cursor-based pagination, and enforces the unifi-core-only dependency boundary.
- Serializer Authoring: Covers the @register_serializer(tools={...}) decorator, the seven RenderKind values, field-curation discipline, and registry reset for test isolation.
- CI Gate Guidance: Explains validate_manifest and test_resource_route_coverage, including the test-only TOOL_ROUTE_OVERRIDES mapping.
- Use Case: When adding a new DNS mutation endpoint to apps/api, apply this skill to register the FastAPI route, write a DETAIL mutation-ack serializer, and pass both CI gates on the first run.
Quick Start
Apply this skill to add a new resource endpoint with its mutation-ack serializer to apps/api and make the route-coverage tests pass.