From rockets-sdk-config
This skill should be used when adding ACL to an existing module, modifying role-based access rules, debugging 403 errors, configuring ownership checks, or writing Access Query Services manually. For new modules, use rockets-crud-generator with ACL config instead — it generates all ACL wiring automatically.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rockets-sdk-config:rockets-access-controlThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **New module with ACL** → use `rockets-crud-generator` with `acl` config — it generates all ACL wiring automatically
rockets-crud-generator with acl config — it generates all ACL wiring automaticallydevelopment-guides/ACCESS_CONTROL_GUIDE.mdsrc/modules/{name}/constants/{name}.constants.tsapp.acl.tsapp.acl.ts (acRules.grant())@InjectDynamicRepository for ownership checks@UseGuards(AccessControlGuard), @AccessControlQuery, etc.See development-guides/ACCESS_CONTROL_GUIDE.md for the full Access Query Service pattern and registration code.
| Issue | Cause | Fix |
|---|---|---|
| 403 on all requests | Resource not in acRules | Add acRules.grant() in app.acl.ts |
| 403 for users only | Missing Own permissions | Add createOwn/readOwn/etc. |
| Access Query always denies | Default return false | Implement ownership check in canAccess() |
| 500 "provider does not exist" | Access query service not in controller's module | Add to providers + exports in the feature module |
| Users see all resources | No ownership filtering | Implement readOwn in Access Query using @InjectDynamicRepository |
development-guides/ACCESS_CONTROL_GUIDE.md
npx claudepluginhub btwld/skills --plugin rockets-sdk-configEnforces deny-by-default authorization at every resource access point using RBAC or ABAC patterns. Use when implementing access control decisions for APIs, web apps, or services.
Implements Node.js RBAC with permissions, role inheritance, Express middleware; Python ABAC patterns and access control models. For admin dashboards, multi-tenant apps, authorization.
Guides selection and implementation of authorization models including RBAC, ABAC, ACL, ReBAC, and policy-as-code for permission systems and access control design.