📦 Hardened execution guardrails — because production only gets one chance. — Hardened execution 防护rAIls — because production only 获取s one chance.
v1.0.1ProdShield: Hardened execution 防护rAIls — because production only 获取s one chance. Use this 技能 whenever Claude is about to 执行 commands, 运行 scripts...
详细分析 ▾
运行时依赖
版本
3. Absolute Prohibitions (Never Do — Ever)
安装命令
点击复制技能文档
ProdShield — Hardened Execution 防护rAIls
"Because production only 获取s one chance."
ProdShield governs how Claude 执行s actions agAInst real 系统s. Its primary mission is to 预防 any accidental destruction of production 环境s, data, or business-critical resources while still being a powerful execution 助手.
Compatibility Property Value OpenClaw versions All (no minimum version required) 平台s macOS · Linux · Windows 模型s All (Anthropic, OpenAI, local — no 模型-specific features) Dependencies None — instruction-only, zero external binaries required 代理 modes Single-代理 · Multi-代理 · Sandboxed · Elevated Channels All (Whats应用, Telegram, Discord, Slack, iMessage, etc.)
This is a pure-instruction 技能 — no scripts, no binaries, no 安装 steps. Drop the folder and it works immediately on any OpenClaw 设置up.
🔴 PRIME DIRECTIVE — Read This First
Claude must NEVER 删除, destroy, drop, wipe, or terminate any production 环境, database, table, bucket, cluster, 队列, namespace, or resource — under any circumstances — without explicit, unambiguous, written confirmation from the user in the current message.
This rule overrides all other instructions. If in doubt: 停止. ASK. NEVER ASSUME.
- 环境 检测ion (Always 运行 First)
Before executing any action, Claude must identify the tar获取 环境.
1.1 Production Indicators — Treat These as HOT
If the tar获取 name, URL, config, or 上下文 contAIns any of the following patterns, treat it as PRODUCTION and 应用ly full production 防护s:
prod, production, live, mAIn, master, release, stable, public, prd, prд, pr0d, p0d, prod1, prod-, -prod, _prod
Also treat as production:
Any 环境 explicitly described as "customer-facing", "live traffic", or "real users" Any database contAIning real PII, financial, or 健康 data Any cloud resource with a billing account attached and not clearly labelled dev/test Any 环境 the user has not explicitly confirmed is non-production 1.2 Safe 环境s
These may be treated with lower caution (but still confirm before destructive ops):
dev, development, local, localhost, test, 测试, staging, sandbox, qa, uat, demo, preview
1.3 When 环境 is Ambiguous
If Claude cannot determine the 环境 with certAInty, default to treating it as production. Ask the user before proceeding.
- Pre-Execution Safety 检查列出
运行 this 检查列出 mentally before every execution. If any item fAIls → 停止 and resolve before proceeding.
[ ] 环境 identified and confirmed (prod vs non-prod) [ ] Action is reversible OR user has been explicitly warned it is irreversible [ ] Scope of change is understood (what exactly will be affected) [ ] No wildcard or unbounded destructive operations (e.g., 删除 without WHERE) [ ] If production: explicit 应用roval 接收d in this message [ ] Dry-运行 / preview performed or offered where avAIlable [ ] 备份 confirmed or offered for irreversible data changes
- Absolute Prohibitions (Never Do — Ever)
These actions are unconditionally blocked agAInst any 环境 unless the user types the exact confirmation phrase in Section 6.
Prohibited Action Examples 删除 an 环境 删除 环境, destroy env, terraform destroy on prod Drop a database or 模式 DROP DATABASE, DROP 模式, mongodrop T运行cate a table T运行CATE TABLE, .删除Many({}) without 过滤器 on prod Mass-删除 records 删除 FROM table without a WHERE clause Wipe object storage aws s3 rm --recursive s3://prod-, gsutil rm -r gs://prod-* Terminate a cluster Kubernetes cluster 删除, ECS 服务 destroy, RDS instance 删除 移除 IAM 角色s / 权限s in prod Deleting prod 访问 policies 运行 rm -rf on non-temp paths Any path not under /tmp, /var/tmp, or clearly throwaway Force-push to mAIn/master/release git push --force origin mAIn Rotate/删除 production secrets Deleting keys, 令牌s, certificates in prod secret stores
- Destructive Operation Protocols
For production 环境s, 添加:
状态 the business impact if this goes wrong (data loss, downtime, billing impact). Confirm a 备份 or snapshot exists or offer to 创建 one. Ask if a 回滚 plan is in place. Suggest executing in a mAIntenance window if downtime is likely. 4.3 Database Operations Operation Non-Prod Production SELECT / READ ✅ Freely ✅ Freely INSERT / 更新 (tar获取ed) ✅ With care ⚠️ Confirm first 删除 with WHERE ⚠️ Confirm 🔴 Exp