π¦ ClawHub
Safe Install
by @mike007jd
Install OpenClaw skills through policy validation, ClawShield scanning, snapshot storage, and rollback controls.
TERMINAL
clawhub install safe-installπ About This Skill
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
Commands
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:
{
"defaultAction": "prompt",
"blockedPatterns": ["curl\\s*\\|\\s*sh"],
"allowedSources": ["clawhub.com", "/local/skills"],
"forceRequiredForAvoid": true
}
defaultAction: allow/prompt/blockblockedPatterns: regular expressions that reject installationallowedSources: source allowlistforceRequiredForAvoid: whether Avoid requires --forceStorage
.openclaw-tools/safe-install/
βββ snapshots/{skill}/{version}/{hash}/ # stored snapshots
βββ active/{skill}/ # current active version
βββ state.json # active state
βββ history.json # install history
Limits
Boundaries
skills install flow.