Things to check
Executable permission does not make a script trustworthy. Broad or recursive permissions can expose sensitive data or weaken security.
Before you run it
Read the script first and grant the smallest necessary permission.
Ask your agent
“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”
Context is part of the command
A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.