AI 终端命令安全预检与风险评估器
在执行终端命令前,对命令进行安全性分析、风险评级和潜在影响评估,防止误操作导致数据丢失或系统损坏
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.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



