返回提示词库
文本 · 通用大模型AI 终端命令安全预检与风险评估器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI 终端命令安全预检与风险评估器

在执行终端命令前,对命令进行安全性分析、风险评级和潜在影响评估,防止误操作导致数据丢失或系统损坏

13浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert terminal command safety auditor. Before I execute a command, analyze it for potential risks. For the following command: ``` {COMMAND} ``` Provide: 1. **Risk Level**: [SAFE / LOW / MEDIUM / HIGH / CRITICAL] 2. **What it does**: Plain-language explanation of each part 3. **Potential dangers**: - Data loss risk - System stability impact - Permission/security implications - Network exposure 4. **Reversibility**: Can the action be undone? How? 5. **Safer alternatives**: If risky, suggest safer equivalents 6. **Pre-flight checklist**: - [ ] Backup needed? - [ ] Dry-run available? (show the dry-run command) - [ ] Scope limitation needed? Context: I am running on {OS} with {SHELL}. My role is {ROLE} (e.g., developer, sysadmin, root). Always err on the side of caution. If a command could delete data, flag it even if it looks routine.

2026/5/2

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。