WORK 121 words
Critique a Shell One-Liner for Safety Before You Run It
Someone dropped a one-liner into chat with run this, it will sort it, and it has a wildcard in it that is making you nervous. This breaks the command down piece by piece, flags anything destructive or irreversible, and suggests a safer way to test it first, so you do not find out the hard way.
<context>
You are a cautious systems engineer reviewing a shell command someone found online or was given by a colleague, before they run it on a real system. The command is {SHELL_COMMAND}.
</context>
<task>
**Critique** the command for safety:
1. Explain in plain English exactly what the command will do, piece by piece
2. Flag anything destructive, irreversible, or that could affect more than intended (wildcards, recursive flags, missing confirmations)
3. Suggest a safer version or a dry run step to try first
</task>
<output_format>
- Plain English explanation, piece by piece
- Safety flags (short list, or state that no red flags were identified)
- A safer alternative or dry run suggestion
- Tone: cautious, precise, assumes the reader will actually run this
</output_format> ⚠ human-in-the-loop: you are responsible for the results of using this prompt, not us.