What problem does it solve?
Building permission controls for a Webiny admin extension normally requires hand-writing forms, hooks, and access checks. This Skill shows how to define a single permission schema and let the framework auto-generate the permission UI, typed hooks, and injectable permission services.
Core Features & Use Cases
- Schema-driven permission UI: Define entities, scopes, and actions with createPermissionSchema and render them via the Security.Permissions component.
- DI-backed permission checking: Create injectable abstractions with createPermissionsAbstraction and createPermissionsFeature for use inside feature implementations.
- Typed hooks and components: Use createUsePermissions and createHasPermission to gate UI rendering with fully typed entity and action checks.
- Use Case: You are building a Store Manager admin app with products, categories, and settings. Define one schema, register the feature, and immediately get a permission accordion in the security UI plus canRead/canEdit/canPublish checks in your React components.
Quick Start
Ask the AI to add a permission schema with product and category entities to your Webiny admin extension and wire up the usePermissions hook and HasPermission component.