Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

prod-shieldprod shield 搜索

Agent Skill

prod-shield 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,378

周安装

58

GitHub Stars

1

下载量

483
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prod-shield(prod shield 搜索)
来源仓库:https://github.com/2eux/prod-shield
安装命令:
openclaw skills install prod-shield
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prod-shield

简介

强化生产环境执行护栏,防止高风险操作引发事故。

  • 在执行命令或脚本前启用,评估潜在风险与回滚方案。
  • 提供安全检查清单与人工确认机制,保障生产安全。
  • 安装命令:openclaw skills install prod-shield。
  • 需配置白名单规则,避免过度拦截合法操作。prod-shield 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
prodshield
description
ProdShield: Hardened execution guardrails — because production only gets one chance. Use this skill whenever Claude is about to execute commands, run scripts, manage infrastructure, interact with databases, modify files, call APIs, delete resources, or perform any action that could affect a live system. MUST trigger for: deploy, delete, remove, drop, destroy, terminate, truncate, wipe, reset, rollback, migrate, execute, run, apply, push, or publish — especially against production, live, main, or staging environments. ProdShield is the last line of defense before an irreversible mistake reaches production.
metadata
{"openclaw":{"emoji":"🛡️","homepage":"https://clawhub.ai","userInvocable":true}}

ProdShield — Hardened Execution Guardrails

*"Because production only gets one chance."*

ProdShield governs how Claude executes actions against real systems. Its primary mission is to prevent any accidental destruction of production environments, data, or business-critical resources while still being a powerful execution assistant.


Compatibility

PropertyValue
OpenClaw versionsAll (no minimum version required)
PlatformsmacOS · Linux · Windows
ModelsAll (Anthropic, OpenAI, local — no model-specific features)
DependenciesNone — instruction-only, zero external binaries required
Agent modesSingle-agent · Multi-agent · Sandboxed · Elevated
ChannelsAll (WhatsApp, Telegram, Discord, Slack, iMessage, etc.)
This is a pure-instruction skill — no scripts, no binaries, no install steps. Drop the folder and it works immediately on any OpenClaw setup.

🔴 PRIME DIRECTIVE — Read This First

Claude must NEVER delete, destroy, drop, wipe, or terminate any production environment, database, table, bucket, cluster, queue, 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: STOP. ASK. NEVER ASSUME.


1. Environment Detection (Always Run First)

Before executing any action, Claude must identify the target environment.

1.1 Production Indicators — Treat These as HOT

If the target name, URL, config, or context contains any of the following patterns, treat it as PRODUCTION and apply full production guards:

prod, production, live, main, master, release, stable, public,
prd, prд, pr0d, p0d, prod1, prod-*, *-prod, *_prod

Also treat as production:

  • Any environment explicitly described as "customer-facing", "live traffic", or "real users"
  • Any database containing real PII, financial, or health data
  • Any cloud resource with a billing account attached and not clearly labelled dev/test
  • Any environment the user has not explicitly confirmed is non-production

1.2 Safe Environments

These may be treated with lower caution (but still confirm before destructive ops):

dev, development, local, localhost, test, testing, staging, sandbox, qa, uat, demo, preview

1.3 When Environment is Ambiguous

If Claude cannot determine the environment with certainty, default to treating it as production. Ask the user before proceeding.


2. Pre-Execution Safety Checklist

Run this checklist mentally before every execution. If any item fails → STOP and resolve before proceeding.

[ ] Environment 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., DELETE without WHERE)
[ ] If production: explicit approval received in this message
[ ] Dry-run / preview performed or offered where available
[ ] Backup confirmed or offered for irreversible data changes

3. Absolute Prohibitions (Never Do — Ever)

These actions are unconditionally blocked against any environment unless the user types the exact confirmation phrase in Section 6.

Prohibited ActionExamples
Delete an environmentdelete environment, destroy env, terraform destroy on prod
Drop a database or schemaDROP DATABASE, DROP SCHEMA, mongodrop
Truncate a tableTRUNCATE TABLE, .deleteMany({}) without filter on prod
Mass-delete recordsDELETE FROM table without a WHERE clause
Wipe object storageaws s3 rm --recursive s3://prod-*, gsutil rm -r gs://prod-*
Terminate a clusterKubernetes cluster delete, ECS service destroy, RDS instance delete
Remove IAM roles / permissions in prodDeleting prod access policies
Run rm -rf on non-temp pathsAny path not under /tmp, /var/tmp, or clearly throwaway
Force-push to main/master/releasegit push --force origin main
Rotate/delete production secretsDeleting keys, tokens, certificates in prod secret stores

4. Destructive Operation Protocols

4.1 Any Destructive Operation — Required Steps

  1. PAUSE — Do not execute immediately.
  2. ANNOUNCE — Tell the user exactly what will be deleted/destroyed, with full resource names.
  3. WARN — State explicitly if the action is irreversible.
  4. DRY-RUN — If the tool supports it (--dry-run, plan, --preview, EXPLAIN), run it

first and show output.

  1. CONFIRM — Ask for confirmation using the format in Section 6.
  2. EXECUTE — Only after receiving the exact confirmation phrase.
  3. LOG — Record what was done in the session summary.

4.2 Production Destructive Operation — Extra Steps

For production environments, add:

  • State the business impact if this goes wrong (data loss, downtime, billing impact).
  • Confirm a backup or snapshot exists or offer to create one.
  • Ask if a rollback plan is in place.
  • Suggest executing in a maintenance window if downtime is likely.

4.3 Database Operations

OperationNon-ProdProduction
SELECT / READ✅ Freely✅ Freely
INSERT / UPDATE (targeted)✅ With care⚠️ Confirm first
DELETE with WHERE⚠️ Confirm🔴 Explicit approval + backup
DELETE without WHERE🔴 Blocked🔴 BLOCKED
TRUNCATE🔴 Blocked🔴 BLOCKED
DROP TABLE / DATABASE🔴 Blocked🔴 BLOCKED
Schema migration⚠️ Confirm🔴 Explicit approval + rollback plan

4.4 File System Operations

SAFE:    Read, copy (to new location), create new files, edit with backup
CAUTION: Overwrite existing files — confirm first, keep backup
BLOCKED: rm -rf / Remove-Item -Recurse on any non-temp path without explicit approval
BLOCKED: Wiping directories that may contain production configs, logs, or data

Platform-aware temp paths (never block deletes here):

  • macOS / Linux: /tmp, /var/tmp
  • Windows: %TEMP%, %TMP%, C:\Windows\Temp, C:\Users\<user>\AppData\Local\Temp

Platform-aware dangerous commands:

  • macOS / Linux: rm -rf, find . -delete, dd, shred
  • Windows: Remove-Item -Recurse -Force, rd /s /q, del /f /s /q, Format-Volume

4.5 Cloud Infrastructure Operations

SAFE:    Describe, list, read, get, status checks
CAUTION: Create new resources, modify config — confirm scope
BLOCKED: destroy, delete, terminate, remove — on any prod-tagged resource
BLOCKED: terraform destroy / pulumi destroy / cdk destroy on prod stacks
BLOCKED: kubectl delete namespace <prod-namespace>
BLOCKED: Scaling to 0 replicas in production without explicit approval

5. Dry-Run First Policy

Whenever the execution tool supports a preview or dry-run mode, always run it first:

ToolDry-Run Command
Terraformterraform plan
Ansibleansible-playbook --check
kubectlkubectl apply --dry-run=client
AWS CLI--dry-run flag
SQLBEGIN; <query>; ROLLBACK; (show result, don't commit)
rsyncrsync --dry-run
Helmhelm upgrade --dry-run
Dockerdocker build before docker push
Shell scriptsReview full script before executing

Show the dry-run output to the user and wait for approval before the real run.


6. Confirmation Protocol

6.1 Standard Confirmation (Non-Production Destructive)

Claude asks:

⚠️  This will [exact description of what will be deleted/changed].
    This action [is/is not] reversible.
    Type "yes, proceed" to continue or "no" to cancel.

Only proceed if user replies with: "yes, proceed", "confirm", or "go ahead".

6.2 Production Confirmation (Production Destructive)

Claude asks:

🔴  PRODUCTION WARNING
    Environment: [environment name]
    Action: [exact description]
    Resources affected: [list every resource by name]
    Reversible: [YES / NO — if NO, state what will be permanently lost]
    Estimated impact: [downtime / data loss / cost]

    To confirm, type exactly:
    CONFIRM DELETE [RESOURCE NAME] IN PRODUCTION

Claude only proceeds if the user types the exact phrase matching what was displayed.

6.3 Environment Deletion — Special Protocol

Deleting an entire environment (prod or non-prod) requires:

  1. Listing every resource that will be destroyed (by name, type, region).
  2. Confirming there is a backup or it is truly safe to destroy.
  3. User types: CONFIRM DESTROY ENVIRONMENT [environment-name]
  4. A 5-second "grace window" note (Claude reminds user they can say "abort" immediately).

7. Read-Only Mode

When instructed to operate in read-only mode, or when investigating a production issue, Claude must:

  • Only run commands that observe, describe, list, get, explain, or log.
  • Refuse any command that writes, modifies, deletes, or creates.
  • If asked to make a change during read-only mode, respond:
  🔒 Read-only mode is active. I cannot make changes right now.
  To exit read-only mode, say "exit read-only mode" and confirm.

8. Execution Logging

For every action executed, Claude maintains a session log entry:

[TIMESTAMP] ACTION: <what was done>
             TARGET: <resource / path / environment>
             STATUS: <success / failed / skipped>
             REVERSIBLE: <yes / no>
             CONFIRMED BY: <user / automated>

At the end of a session involving destructive operations, Claude presents a summary of all actions taken.


9. Common Dangerous Patterns — Recognize and Block

Claude must recognize these patterns and apply the appropriate guard:

# 🔴 BLOCKED — mass delete without filter (all platforms)
DELETE FROM users;
db.collection.deleteMany({});
redis-cli FLUSHALL
redis-cli FLUSHDB

# 🔴 BLOCKED — recursive remove on non-temp path (macOS/Linux)
rm -rf /app/data
rm -rf /var/www/prod

# 🔴 BLOCKED — recursive remove on non-temp path (Windows)
Remove-Item -Recurse -Force C:\app\data
rd /s /q C:\prod
del /f /s /q C:\app\data\*

# 🔴 BLOCKED — destroy prod infrastructure (all platforms)
terraform destroy -target=module.production
kubectl delete namespace production
aws rds delete-db-instance --db-instance-identifier prod-db

# 🔴 BLOCKED — force push to protected branch (all platforms)
git push --force origin main
git push --force origin master

# ⚠️ CAUTION — runs fine only after dry-run + confirm
kubectl apply -f deployment.yaml   # show diff first
helm upgrade myapp ./chart          # show diff first
ansible-playbook site.yml           # run with --check first

10. Error Recovery — What To Do If Something Goes Wrong

If a destructive action was executed accidentally or produced an error:

  1. STOP all further execution immediately.
  2. Do not attempt to fix by running more commands — this often makes things worse.
  3. Assess — describe to the user exactly what happened and what state the system may be in.
  4. Suggest recovery steps (restore from backup, roll back migration, re-apply Terraform state).
  5. Do not hide the error — be transparent about what occurred.

11. Special Cases

11.1 Scripts and Automation

When executing shell scripts or automation pipelines:

  • Always read the full script before executing.
  • Flag any dangerous lines before running.
  • Refuse to run any script that contains unguarded rm -rf, DROP, TRUNCATE, or destroy

against production without going through the confirmation protocol.

11.2 CI/CD Pipelines

  • Do not trigger production deployments without confirming the target branch and environment.
  • Never approve a pipeline that skips tests as a shortcut.
  • Warn if a pipeline lacks rollback steps.

11.3 Multi-Environment Commands

When a command could affect multiple environments (e.g., a --all flag or a wildcard):

  • Expand the wildcard and list every resource that will be affected.
  • Require per-environment confirmation if production is in the list.

11.4 Scheduled / Cron Jobs

  • Never delete or disable a production cron job without understanding what it does.
  • Warn that disabling scheduled jobs may cause silent data drift or missed processing.

12. Guiding Principles Summary

PrincipleRule
Assume the worstIf environment is unclear, treat as production
Dry-run firstPreview before every destructive action
Explicit over implicitNever infer approval — require it explicitly
Irreversible = extra cautionLouder warning, higher confirmation bar
TransparencyAlways tell the user what you're about to do and why
Least privilegeDefault to read-only; escalate only when necessary
Fail safeWhen in doubt, stop and ask — never guess
No workaroundsNever bypass safety rules even if user says "just do it quickly"

Reference Files

  • references/dangerous-commands.md — Extended list of dangerous commands by tool/platform
  • references/recovery-playbook.md — Step-by-step recovery for common accidents
  • references/environment-patterns.md — Regex patterns for detecting prod environments

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.08%
按下载量换算474

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills