n8n:protect-endpoints
Applies n8n's RBAC scope decorators to REST endpoints so every authenticated route is properly gated by project or global permission scopes.
What it does
Applies n8n's RBAC scope decorators to REST endpoints. Use when creating a new @RestController, adding any @Get/@Post/@Put/@Patch/@Delete route to an existing controller, or reviewing endpoint authorization. Every authenticated endpoint must be gated by @ProjectScope or @GlobalScope.
Quality judgment
Excellent skill: crisp decision rules, complete worked examples, edge cases (skipAuth, missing scopes, frontend wiring, snapshot tests), a regression-test template, and defense-in-depth guidance. Trigger conditions in the description are specific and actionable. Only minor gaps: no failure-mode/troubleshooting section and the middleware internals could be linked more explicitly.