# Send Local Approvals 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": "local-approvals",
    "name": "Local Approvals",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/shaiss/local-approvals",
    "canonicalUrl": "https://clawhub.ai/shaiss/local-approvals",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/local-approvals",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=local-approvals",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "cli.py",
      "core.py",
      "pending.json",
      "schemas/pending.json",
      "schemas/state.json",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "local-approvals",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T02:08:35.925Z",
      "expiresAt": "2026-05-12T02:08:35.925Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=local-approvals",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=local-approvals",
        "contentDisposition": "attachment; filename=\"local-approvals-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "local-approvals"
      },
      "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/local-approvals"
    },
    "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/local-approvals",
    "downloadUrl": "https://openagent3.xyz/downloads/local-approvals",
    "agentUrl": "https://openagent3.xyz/skills/local-approvals/agent",
    "manifestUrl": "https://openagent3.xyz/skills/local-approvals/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/local-approvals/agent.md"
  }
}
```
## Documentation

### Local Approvals Skill

A local approval system that manages agent permissions with auto-approve lists and approval history tracking.

### Quick Start

# List pending requests
python C:\\Users\\Shai\\.openclaw\\skills\\local-approvals\\cli.py list

# Approve a request
python C:\\Users\\Shai\\.openclaw\\skills\\local-approvals\\cli.py approve abc123

# Deny a request
python C:\\Users\\Shai\\.openclaw\\skills\\local-approvals\\cli.py deny abc123

# Show approval history
python C:\\Users\\Shai\\.openclaw\\skills\\local-approvals\\cli.py history

# Reset an agent's categories
python C:\\Users\\Shai\\.openclaw\\skills\\local-approvals\\cli.py reset assistant

### approve(id)

Approve a pending request by ID.

python cli.py approve <request_id> [--learn] [--reviewer <name>]

Options:

--learn: Add the category to the agent's auto-approve list
--reviewer: Who is approving (default: "user")

Example:

python cli.py approve abc123 --learn

### deny(id)

Deny a pending request by ID.

python cli.py deny <request_id> [--reviewer <name>]

Options:

--reviewer: Who is denying (default: "user")

Example:

python cli.py deny abc123

### list_pending()

List all pending requests, optionally filtered by agent.

python cli.py list [--agent <agent_id>]

Options:

--agent: Filter requests by agent ID

Example:

python cli.py list --agent assistant

### show_history()

Show approval history from state.json.

python cli.py history [--limit <number>]

Options:

--limit: Maximum number of entries to show (default: 20)

Example:

python cli.py history --limit 50

### reset_categories(agent)

Reset an agent's auto-approved categories list.

python cli.py reset <agent_id>

Example:

python cli.py reset assistant

### categories

Show auto-approved categories for one or all agents.

python cli.py categories [--agent <agent_id>]

Options:

--agent: Show categories for specific agent

Example:

python cli.py categories --agent planner

### State Files

The skill maintains two JSON files in the state directory:

state.json: Auto-approve lists and approval history
pending.json: Pending approval requests

Location: ~/.openclaw/skills/local-approvals/

### Core Functions

The core.py module provides the underlying functionality:

check_auto_approve(agent, category) - Check if a category is auto-approved
submit_request(agent, category, operation, reasoning) - Submit a pending request
learn_category(agent, category) - Add category to auto-approve list
get_request(request_id) - Retrieve a request by ID
update_request(request_id, decision, reviewer) - Update request with decision
list_pending(agent) - List pending requests
get_agent_approvals(agent) - Get agent's auto-approved categories

### Best Practices

Review before approving: Always check the operation and reasoning before approving
Use auto-learn carefully: Only use --learn for trusted categories that you want to auto-approve
Check history regularly: Review history to understand approval patterns
Reset when needed: Use reset to clear an agent's auto-approve list if you suspect issues

### Complete Workflow

# 1. Check what's pending
python cli.py list

# 2. Review the request details (output shows agent, category, operation, reasoning)
# ID: abc123
#   Agent:     assistant
#   Category:  file_write
#   Operation: Create config file
#   Reasoning: Setting up new environment

# 3. Approve and auto-learn this category for future
python cli.py approve abc123 --learn

# 4. Verify it was approved
python cli.py list  # Should show no pending requests

# 5. Check history
python cli.py history

# 6. View auto-approved categories
python cli.py categories

### Managing Categories

# View all auto-approved categories
python cli.py categories

# View categories for a specific agent
python cli.py categories --agent assistant

# Reset an agent's categories (clear all auto-approvals)
python cli.py reset assistant

### Integration

The CLI is designed to be used both interactively and programmatically. Exit codes:

0: Success
1: Error (request not found, agent not found, etc.)

### Files

cli.py - Command-line interface (this file)
core.py - Core approval functions
schemas/ - JSON schema definitions
schemas/state.json - State schema template
schemas/pending.json - Pending requests schema template
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: shaiss
- 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-05-05T02:08:35.925Z
- Expires at: 2026-05-12T02:08:35.925Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/local-approvals)
- [Send to Agent page](https://openagent3.xyz/skills/local-approvals/agent)
- [JSON manifest](https://openagent3.xyz/skills/local-approvals/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/local-approvals/agent.md)
- [Download page](https://openagent3.xyz/downloads/local-approvals)