Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/delon-acl
@delon/acl skill - Access Control List for role-based permissions and UI element visibility. For ng-events construction site progress tracking system.
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
and 3 more in the full report
5 fixed15 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I want to use the structural directive `*aclIf` in my Angular template, but instead of a simple string, I need to match if the user has either 'admin' role or 'task:delete' ability. What data shape should be passed into `*aclIf`?
| Checked | Without skill | With skill |
|---|---|---|
| Passes a configuration object containing role, ability, and mode properties to the structural directive | Missed | Passed |
| Sets the evaluation mode to 'oneOf' for disjunctive matching | Missed | Passed |
The instructions your model reads when the skill loads.
Trigger patterns: "ACL", "permission", "role", "access control", "@delon/acl", "can", "ability"
@delon/acl provides a role-based access control (RBAC) system for ng-alain applications, controlling UI element visibility and feature access based on user roles and permissions.
Package: @delon/[email protected]
Integrated with: @delon/auth for authentication
import { inject } from '@angular/core';
import { ACLService } from '@delon/acl';
@Component({
selector: 'app-dashboard',
standalone: true
})
export class DashboardComponent {
private aclService = inject(ACLService);
ngOnInit(): void {
// Set user roles and permissions
this.aclService.setRole(['admin', 'user']);
this.aclService.setAbility(['task:create', 'task:edit', 'task:delete']);
// Set full ACL configuration
this.aclService.set({
role: ['admin'],
ability: ['task:create', 'task:edit'],
mode: 'oneOf' // 'allOf' or 'oneOf'
});
}
canEditTask(): boolean {
test cases passed, vs 15 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.