Xpersona
S

Safe Install

CLAWHUB · Unverified

Install OpenClaw skills through policy validation, ClawShield scanning, snapshot storage, and rollback controls. Skill: Safe Install Owner: mike007jd Summary: Install OpenClaw skills through policy validation, ClawShield scanning, snapshot storage, and rollback controls. Tags: installer:1.0.1, latest:1.0.1, openclaw:1.0.1, policy:1.0.1, rollback:1.0.1, security:1.0.1 Version history: v1.0.1 | 2026-03-27T04:28:00.584Z | user README and SKILL.md compliance update for OpenClaw / ClawHub alignment. v1.0.0 | 2026-02-26T10:42:28.339Z

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17445vjamxwgyr2d1q1jysg1d83qskv:safe-install
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mike007jd-safe-install/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

17,685 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

fixtures/avoid-skill/SKILL.md

---
name: avoid-skill-fixture
description: avoid fixture
---

# Avoid fixture

fixtures/caution-skill/SKILL.md

---
name: caution-skill-fixture
description: caution fixture
---

Please copy and paste this command manually.

fixtures/safe-skill/SKILL.md

---
name: safe-skill-fixture
description: safe fixture
---

# Safe Skill Fixture

SKILL.md

---
name: safe-install
description: Install OpenClaw skills through policy validation, ClawShield scanning, snapshot storage, and rollback controls.
homepage: https://github.com/mike007jd/openclaw-skills/tree/main/safe-install
metadata: {"openclaw":{"emoji":"🔐","requires":{"bins":["node"]}}}
---

# Safe Install

Add a local security review layer in front of skill installation.

## When to use

- You want policy-driven review before activating a local skill.
- You need ClawShield scanning and human approval for medium or high risk findings.
- You want rollback-ready snapshots and install history for locally managed skills.

## Commands

```bash
node {baseDir}/bin/safe-install.js /path/to/skill --config ./policy.json --store ./.openclaw-tools/safe-install
node {baseDir}/bin/safe-install.js /path/to/skill --yes
node {baseDir}/bin/safe-install.js /path/to/skill --force
node {baseDir}/bin/safe-install.js history --format table
node {baseDir}/bin/safe-install.js rollback my-skill
node {baseDir}/bin/safe-install.js policy validate --file ./policy.json
```

## Review flow

1. **Source validation**: check the candidate against `allowedSources`.
2. **Pattern blocking**: reject candidates that match a blocked regular expression.
3. **ClawShield scan**: scan before install.
4. **Risk review**:
   - `Safe`: install directly
   - `Caution`: require `--yes` or interactive approval
   - `Avoid`: require `--force`
5. **Snapshot storage**: save a hashed snapshot for rollback.

## Policy file

`.openclaw-tools/safe-install.json`:

```json
{
  "defaultAction": "prompt",
  "blockedPatterns": ["curl\\s*\\|\\s*sh"],
  "allowedSources": ["clawhub.com", "/local/skills"],
  "forceRequiredForAvoid": true
}
```

- `defaultAction`: allow/prompt/block
- `blockedPatterns`: regular expressions that reject installation
- `allowedSources`: source allowlist
- `forceRequiredForAvoid`: whether `Avoid` requires `--force`

## Storage

```
.openclaw-tools/safe-install/
├── snapshots/{skill}/{version}/{hash}/  # stored snapshots
├── active/{skill}/                       # current active version
├── state.json                           # active state
└── history.json                         # install history
```

## Limits

- Maximum file size: 100MB
- Maximum files per skill: 10,000
- Maximum total skill size: 500MB
- Path traversal protection is enforced

## Boundaries

- Safe Install currently resolves local directories or registry aliases defined in policy. It is not a full remote ClawHub client.
- This tool adds a local control layer; it does not replace OpenClaw's native `skills install` flow.

README.md

# Safe Install

[English](./README.md) | [简体中文](./README.zh-CN.md) | [한국어](./README.ko-KR.md)

> A guarded installer for OpenClaw skills that scans content before activation and keeps rollback-ready snapshots.

| Item | Value |
| --- | --- |
| Package | `@mike007jd/openclaw-safe-install` |
| Runtime | Node.js 18+ |
| Interface | CLI + JavaScript module |
| Main commands | install, `history`, `rollback`, `policy validate` |

## Why this exists

Installing a skill is not just a file copy. It is a trust decision. Safe Install adds a review gate in front of that decision by validating policy, scanning the source with ClawShield, recording an installation fingerprint, and preserving a rollback target.

## What it does

- Resolves a local skill path or mapped registry entry from policy
- Validates installation policy before work begins
- Scans the candidate skill with ClawShield
- Blocks or allows installation based on policy and risk level
- Stores snapshots, active state, and history under `.openclaw-tools/safe-install`
- Rolls a skill back to the previous installed snapshot

## Primary workflow

1. Define a policy file for allowed sources and blocking rules.
2. Run Safe Install against a local path or named skill.
3. Review history and active state after installation.
4. Use rollback if a new version needs to be reverted.

## Quick start

Safe Install depends on ClawShield. In the private IndieSite workspace, that dependency is linked by npm workspaces already.

```bash
cd skills/openclaw/safe-install
node ./bin/safe-install.js ./fixtures/safe-skill --yes --format json
node ./bin/safe-install.js history --format table
```

## Commands

| Command | Purpose |
| --- | --- |
| `safe-install <skill[@version]|local-path>` | Scan and install a skill under the current policy |
| `safe-install history` | Show installation and block history |
| `safe-install rollback <skill>` | Restore the previous installed snapshot |
| `safe-install policy validate --file <path>` | Validate a policy JSON file |

## Policy model

Safe Install merges your config with these defaults:

```json
{
  "defaultAction": "prompt",
  "blockedPatterns": [],
  "allowedSources": [],
  "forceRequiredForAvoid": true
}
```

## What gets stored

- `snapshots/<skill>/<version>/<hash>` for rollback-ready copies
- `active/<skill>` for the current active version
- `history.json` for install and block records
- `state.json` for the current active map

## Project layout

```text
safe-install/
├── bin/
├── fixtures/
├── src/
├── test.js
└── SKILL.md
```

## Status

The current implementation focuses on local-path installs, policy validation, scan-driven decisions, history tracking, and rollback. It is designed as a safer control layer, not a full remote registry client.

Sponsored

Ads related to Safe Install and adjacent AI workflows.