# Send Authorization to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "authorization",
    "name": "Authorization",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/ivangdavila/authorization",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/authorization",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/authorization",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=authorization",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "middleware.md",
      "models.md",
      "patterns.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "authorization",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T03:06:33.887Z",
      "expiresAt": "2026-05-06T03:06:33.887Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=authorization",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=authorization",
        "contentDisposition": "attachment; filename=\"authorization-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "authorization"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/authorization"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/authorization",
    "downloadUrl": "https://openagent3.xyz/downloads/authorization",
    "agentUrl": "https://openagent3.xyz/skills/authorization/agent",
    "manifestUrl": "https://openagent3.xyz/skills/authorization/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/authorization/agent.md"
  }
}
```
## Documentation

### 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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T03:06:33.887Z
- Expires at: 2026-05-06T03:06:33.887Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/authorization)
- [Send to Agent page](https://openagent3.xyz/skills/authorization/agent)
- [JSON manifest](https://openagent3.xyz/skills/authorization/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/authorization/agent.md)
- [Download page](https://openagent3.xyz/downloads/authorization)