Install any skill in seconds. Free to start, no credit card required.
Get Started Free →webiny/webiny-admin-permissions
Admin-side permission UI registration and DI-backed permission checking.
Passed 21 of 23 test cases with the skill, and 6 of 23 without it.
and 27 more in the full report
16 fixed5 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
We want to give security administrators an easy option to toggle a simplified 'Read-only access' mode for our custom admin module UI without building a custom entity for it. What top-level flag on createPermissionSchema enables this?
| Checked | Without skill | With skill |
|---|---|---|
| Sets readOnlyAccess: true in the createPermissionSchema configuration object. | Missed | Passed |
The instructions your model reads when the skill loads.
Permissions follow three layers: domain (schema), features (DI artifacts + registration), and presentation (hooks, components, UI config). The framework auto-generates the permission UI from a schema and provides injectable permission checking via the DI container.
Define the schema in src/domain/permissionsSchema.ts:
import { createPermissionSchema } from "webiny/admin/security";
export const SM_PERMISSIONS_SCHEMA = createPermissionSchema({
prefix: "sm",
fullAccess: true,
entities: [
{
id: "product",
title: "Products",
permission: "sm.product",
scopes: ["full", "own"],
actions: [
{ name: "rwd" },
{ name: "pw" },
{ name: "import", label: "Import products" },
{ name: "export", label: "Export products" }
]
},
{
id: "category",
title: "Categories",
permission: "sm.category",
scopes: ["full"],
actions: [{ name: "rwd" }]
},
{
id: "settings",
title: "Settings",
permission: "sm.settings",
test cases passed, vs 6 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.