sudo: SuperUser Do — Run a command as the root (administrator) user. sudo runs a single command with administrator, or root, rights: sudo apt update or sudo systemctl restart nginx. It asks for your own password, not the root password, and logs what was run. It lets normal users do administrative tasks without logging in as root, which keeps an audit trail and limits mistakes to the commands that really need the extra rights.
Use it deliberately. sudo in front of a wrong command can damage the whole system, so double-check paths, especially with rm, chmod and chown. Do not run your application as root; create a dedicated user for it. And avoid sudo for package managers like Composer and npm in your projects, which causes file permission problems and can run untrusted install scripts with root rights.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`,