โ† All skills
Tencent SkillHub ยท Security & Compliance

Authorization

Build secure access control with RBAC, ABAC, permissions, policies, and scope-based authorization.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Build secure access control with RBAC, ABAC, permissions, policies, and scope-based authorization.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, middleware.md, models.md, patterns.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

When to Use

User needs to control what actions users can perform. Agent handles permission design, role hierarchies, policy evaluation, and access control middleware.

Quick Reference

TopicFileRBAC vs ABAC comparisonmodels.mdImplementation patternspatterns.mdFramework middlewaremiddleware.md

1. Auth โ‰  Authorization

Authentication: Who you are (login, OAuth, tokens) Authorization: What you can do (permissions, roles, policies) Never mix concerns โ€” auth happens BEFORE authorization

2. Principle of Least Privilege

Default deny โ€” explicit grants only Users get minimum permissions for their job Audit permissions periodically (revoke unused) Temporary elevation over permanent grants

3. Choose the Right Model

ModelBest ForComplexityACLSimple resource ownershipLowRBACOrganizational hierarchiesMediumABACDynamic context-based rulesHighReBACSocial graphs, sharingHigh Start simple โ†’ evolve when needed.

4. Role Design Patterns

Roles represent jobs, not permissions Max 3 inheritance levels (admin โ†’ manager โ†’ user) Avoid role explosion โ€” combine with ABAC for edge cases Document role definitions (what can this role DO?)

5. Permission Naming

resource:action:scope documents:write:own โ† Can edit own documents documents:write:team โ† Can edit team documents documents:delete:all โ† Can delete any document Consistent naming prevents ambiguity.

6. Policy Evaluation Order

Explicit deny โ†’ always wins Explicit allow โ†’ checked second No match โ†’ default deny Log all denials for debugging

7. Never Hardcode

// โŒ Bad โ€” hardcoded role check if (user.role === 'admin') { ... } // โœ… Good โ€” permission check if (can(user, 'settings:update')) { ... } Roles change. Permissions are stable.

Common Traps

Checking roles instead of permissions โ†’ brittle when roles change OR logic in permissions โ†’ "can edit OR is admin" creates backdoors Caching permissions too long โ†’ stale grants after role changes Frontend-only checks โ†’ always verify server-side God roles โ†’ split "admin" into specific permission sets Circular inheritance โ†’ A inherits B inherits A crashes system

Security & Privacy

Data that stays local: All documentation and patterns are reference material No data collection or external requests This skill does NOT: Access your codebase automatically Make network requests Store any user data

Feedback

If useful: clawhub star authorization Stay updated: clawhub sync

Category context

Identity, auth, scanning, governance, audit, and operational guardrails.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs
  • SKILL.md Primary doc
  • middleware.md Docs
  • models.md Docs
  • patterns.md Docs