Skill Safe Install (L0 Strict)
Enforce a conservative, auditable install workflow.
Purpose
Use this skill to reduce accidental or risky third-party skill installs:
- - Force risk review before installation.
- Require sandbox verification before formal install.
- Require explicit user confirmation before sensitive actions.
- Avoid hidden trust escalation (no author-based bypass, no implicit allowBundled writes).
Non-negotiable rules
- 1. Never skip steps.
- Never auto-trust by author, popularity, or “official-looking” name.
- Never modify persistent config (
openclaw.json) without explicit user consent in the current conversation. - If risk cannot be evaluated, treat as high risk and pause.
Workflow (Step 0 → Step 6)
Step 0 — Confirm target
- - Resolve exact skill slug and (if available) version.
- If input is ambiguous, ask for confirmation before install.
Suggested checks:
- - INLINECODE1
- Verify exact slug/version from results.
Step 1 — Duplicate/state check
- - Check whether the skill is already installed.
- Check current trust state (whether already in
skills.allowBundled).
Suggested checks:
- - INLINECODE3
- Read
~/.openclaw/openclaw.json (or platform-equivalent config path)
Step 2 — Mandatory security review (no whitelist bypass)
Run inspect and summarize at least:
- 1. Maintainer/source and recent update signal
- Required secrets/credentials (API keys, OAuth, tokens)
- Network/system access scope
- Command execution or file-system mutation risk
- Persistence behavior (config edits, auto-run, always-on behavior)
Suggested check:
Risk rating rubric
- - LOW: Text/process guidance only, no credentials, no system mutation.
- MEDIUM: Requires limited credentials or external API access with clear scope.
- HIGH: Broad command execution, config mutation, or multi-system OAuth.
- CRITICAL: Destructive capability, privilege escalation, stealth persistence, or unclear behavior.
Gate policy
- - LOW / MEDIUM: Continue to sandbox.
- HIGH: Continue only after explicit confirmation.
- CRITICAL: Do not install by default; require explicit override and warn strongly.
Step 3 — Sandbox install (isolated workdir)
Install in a temporary isolated directory first.
- - Use isolated workdir (do not install to primary skill directory yet).
- Confirm install result and basic behavior.
- If sandbox fails, stop.
Example pattern:
Step 4 — User confirmation checkpoint
Before formal install, present:
- - Chosen skill slug/version
- Risk rating + top risks
- Sandbox result
- Exact next action
Proceed only after explicit “yes/install/继续”.
Step 5 — Formal install
Run formal install only after Step 4 consent.
Example:
If install fails, stop and report error + rollback advice.
Step 6 — Optional trust persistence (allowBundled)
Default is do not write trust list.
Only perform this step when user explicitly asks to persist trust.
Required safeguards:
- 1. Backup config with timestamp.
- Show exactly what key will change (
skills.allowBundled). - Append skill slug only if absent (idempotent).
- Confirm backup path and rollback command.
Do not use hidden or implicit trust writes.
Output format (required)
- - INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
- INLINECODE14
- INLINECODE15
- INLINECODE16
Refusal conditions
Stop and ask for confirmation/override when any condition is met:
- - Skill identity is ambiguous.
- Inspect output is unavailable or incomplete.
- Risk is HIGH/CRITICAL and user has not explicitly approved.
- Requested config mutation lacks explicit consent.
技能安全安装(L0严格模式)
强制执行保守、可审计的安装工作流程。
目的
使用此技能可减少意外或高风险第三方技能安装:
- - 安装前强制进行风险审查。
- 正式安装前要求沙箱验证。
- 敏感操作前要求用户明确确认。
- 避免隐式信任升级(无基于作者的绕过,无隐式allowBundled写入)。
不可协商规则
- 1. 绝不跳过步骤。
- 绝不基于作者、流行度或看似官方的名称自动信任。
- 未经当前对话中用户明确同意,绝不修改持久化配置(openclaw.json)。
- 若无法评估风险,则视为高风险并暂停。
工作流程(步骤0 → 步骤6)
步骤0 — 确认目标
- - 解析确切的技能slug及(如有)版本。
- 若输入模糊,安装前请求确认。
建议检查:
- - clawhub search <查询词>
- 从结果中验证确切的slug/版本。
步骤1 — 重复/状态检查
- - 检查该技能是否已安装。
- 检查当前信任状态(是否已在skills.allowBundled中)。
建议检查:
- - clawhub list
- 读取~/.openclaw/openclaw.json(或平台等效配置路径)
步骤2 — 强制性安全审查(无白名单绕过)
运行检查并至少总结以下内容:
- 1. 维护者/来源及近期更新信号
- 所需密钥/凭据(API密钥、OAuth、令牌)
- 网络/系统访问范围
- 命令执行或文件系统变更风险
- 持久化行为(配置编辑、自动运行、常驻行为)
建议检查:
风险评级标准
- - 低风险:仅文本/流程指导,无需凭据,无系统变更。
- 中风险:需有限凭据或外部API访问,范围明确。
- 高风险:广泛命令执行、配置变更或多系统OAuth。
- 严重风险:破坏性能力、权限提升、隐蔽持久化或行为不明确。
门控策略
- - 低风险/中风险:继续进入沙箱。
- 高风险:仅在有明确确认后继续。
- 严重风险:默认不安装;需明确覆盖并强烈警告。
步骤3 — 沙箱安装(隔离工作目录)
先在临时隔离目录中安装。
- - 使用隔离工作目录(暂不安装至主技能目录)。
- 确认安装结果及基本行为。
- 若沙箱失败,则停止。
示例模式:
- - clawhub --workdir <临时目录> --dir skills install <技能>
步骤4 — 用户确认检查点
正式安装前,展示:
- - 所选技能slug/版本
- 风险评级 + 主要风险
- 沙箱结果
- 确切下一步操作
仅在收到明确是/install/继续后继续。
步骤5 — 正式安装
仅在步骤4同意后执行正式安装。
示例:
若安装失败,停止并报告错误及回滚建议。
步骤6 — 可选信任持久化(allowBundled)
默认不写入信任列表。
仅在用户明确要求持久化信任时执行此步骤。
必要保护措施:
- 1. 备份配置并附带时间戳。
- 显示将更改的确切键值(skills.allowBundled)。
- 仅当技能slug不存在时追加(幂等操作)。
- 确认备份路径及回滚命令。
不得使用隐藏或隐式信任写入。
输出格式(必需)
- - [步骤 0/6] 目标:...
- [步骤 1/6] 状态:...
- [步骤 2/6] 审查:风险=低|中|高|严重;发现=...
- [步骤 3/6] 沙箱:通过|失败
- [步骤 4/6] 同意:待定|已批准|已拒绝
- [步骤 5/6] 安装:通过|失败
- [步骤 6/6] 信任写入:已跳过|待定|已写入
拒绝条件
满足以下任一条件时停止并要求确认/覆盖:
- - 技能身份不明确。
- 检查输出不可用或不完整。
- 风险为高/严重且用户未明确批准。
- 请求的配置变更缺乏明确同意。