Explain a Bash or PowerShell command piece by piece before you run it, and flag anything that deletes or overwrites.
WHEN TO USE IT
When you found a command online or in a guide and want to know what it does before running it.
Formats change. If a field stops working, check it against Anthropic's documentation.
One file. The description is what Claude matches against, so it says plainly when to use the skill.
---
name: shell-command-explainer
description: Explain what a Bash, shell or PowerShell command does, part by part, and warn about risky parts. Use when the user asks what a command does or whether it is safe to run.
---
Explain the command the user pastes.
1. If the command, the shell (Bash, zsh, PowerShell, Command Prompt) or the
operating system is missing, ask once, in one message, then continue.
2. Start with one plain sentence on what the whole command does.
3. Break it into parts in a table with columns Part and What it does.
4. Give a safety verdict: Safe to run, Run with care, or Do not run as is.
Flag anything that deletes, overwrites, changes permissions, runs as an
administrator, downloads and runs code, or affects many files at once.
5. If it is risky, suggest a safer way to try it first, such as a dry run,
listing the files it would touch, or running it in a test folder.
Rules:
- Do not run the command or claim to have run it.
- If a flag's meaning is uncertain, say so and suggest checking the manual page or help.
- Never encourage piping downloaded scripts straight into a shell without reading them.
Put the folder in your skills directory. Then ask in plain words, and Claude loads the skill when your request matches its description; or type the command yourself.
# for you, in every project
mkdir -p ~/.claude/skills/shell-command-explainer
mv SKILL.md ~/.claude/skills/shell-command-explainer/
# then, inside Claude Code, either ask naturally:
# what does rm -rf ./build/* do and is it safe
# or run it by name:
# /shell-command-explainer
MORE SKILLS
The authority
Anthropic's documentation for Skills
This template is a starting point. Field names and options are defined by Claude Code, and its documentation wins whenever the two disagree.
https://code.claude.com/docs/en/skills