CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rbac-permissions-builder

This content provides TypeScript examples for building RBAC, including a permission matrix, Express route guards, policy checks, resource ownership checks, and frontend permission hints. It also offers implementation recommendations and a checklist of components and permission paths to cover.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A lean, code-first pattern library that respects token budget and gives near-executable TypeScript examples for every layer of an RBAC system. The main defects are two undefined references in the permission-matrix example that break copy-paste readiness, and the absence of an explicitly sequenced build workflow with validation checkpoints. Structure is good, though the skill is long enough that some sections could be offloaded to reference files.

Suggestions

Fix the permission-matrix example so it is copy-paste executable: define 'userPermissions' (or inline the array in the moderator role) and add POST_DELETE to the Permission enum, since 'Permission.POST_DELETE' is used but never declared.

Convert the Output Checklist into a short numbered build workflow with an explicit verification step (e.g., write tests for every permission path and run them before declaring the implementation done) to add validation checkpoints.

Consider moving the Policy Pattern and UI Permission Hints sections into a reference file linked from SKILL.md to keep the main file focused on the core permission matrix and guard patterns.

DimensionReasoningScore

Conciseness

The body is almost entirely executable code with a one-line intro, minimal inline comments, and terse Best Practices/checklist sections — no explanations of RBAC concepts Claude already knows. Every token earns its place.

5 / 5

Actionability

Concrete TypeScript examples cover the common cases (matrix, guards, policies, ownership, UI hints), but ROLE_PERMISSIONS references an undefined 'userPermissions' variable and uses 'Permission.POST_DELETE' which is missing from the enum, so the code is not fully copy-paste ready. These are minor, easily-fixed gaps rather than pseudocode.

4 / 5

Workflow Clarity

The Output Checklist provides a clear ordered build sequence (enum, role mapping, guards, policies, ownership, helpers, UI endpoint, tests) with a final test-verification item, but steps are not framed as a guided sequence with mid-workflow validation checkpoints or feedback loops.

4 / 5

Progressive Disclosure

Sections are clearly headed and logically ordered with no buried or nested references, and the content is cohesive enough to stay inline. At ~155 lines it exceeds the simple-skill threshold, and sections like Policy Pattern or UI Permission Hints could arguably be split into reference files.

4 / 5

Total

17

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states what the skill provides through a comprehensive list of concrete artifacts and gives an explicit 'Use when' clause with quoted natural-language triggers. Trigger coverage is good but misses role-oriented synonyms, and 'authorization'/'access control' create minor conflict risk with authentication-focused skills.

DimensionReasoningScore

Specificity

The description lists eight concrete artifacts — 'permission matrix, route guards, policy functions, and UI permission hints' plus 'middleware/guards, helper utilities, test suggestions, and permission checking patterns' — giving comprehensive coverage of the skill's capabilities. This matches the comprehensive-coverage anchor rather than the minor-gaps anchor below it.

5 / 5

Completeness

It explicitly answers both questions: 'what' via the concrete artifact list and 'when' via the 'Use when building "RBAC", "permissions", "access control", or "authorization"' clause with concrete quoted trigger phrases.

5 / 5

Trigger Term Quality

The quoted triggers "RBAC", "permissions", "access control", and "authorization" are natural phrases users would say, but common variants such as "roles" or "user roles" are missing. Good keyword coverage with a few natural terms absent — not the comprehensive synonym coverage of the top anchor.

4 / 5

Distinctiveness Conflict Risk

RBAC is a clear niche, but 'access control' and 'authorization' carry minor overlap risk with authentication/middleware skills (e.g., JWT or login-flow skills). Mostly distinct with minor overlap risk against closely related skills, so not the minimal-conflict top anchor.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/rbac-permissions-builder/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.