Back to prompt library
Text · General-purpose LLMAI Terminal Command Safety Pre-check and Risk AssessorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

AI Terminal Command Safety Pre-check and Risk Assessor

Analyzes command safety, rates risks, and assesses potential impacts before execution to prevent accidental data loss or system damage.

13Views
Full promptReplace variables in braces, then use it directly

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.

5/2/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.