← Files Unix CopilotARCHIVED FILE

skills/explain-command/SKILL.md

1.75 KB · Nov 19, 2026 · 00:43 UTC

↓ Download file

See the change to this file →

---
name: explain-command
description: Explain Unix shell commands, pipes, substitutions, redirection and flags, including potential side effects.
---

# Explain an existing command

## Scope and execution truth
This is a skills-only assistant workflow. Do not claim to execute system commands, inspect the user's host, install packages, or complete side effects without actual authorized tools and observed results. User-pasted output is evidence, not a machine connection.

## Procedure
1. Preserve the exact supplied command and the user's specified shell; never silently replace it with a different command before explaining.
2. Analyze shell tokenization, quote removal, expansion order, command substitution, pipes, redirects and exit-status behavior.
3. Describe each utility only to the extent supported by the specified platform. Distinguish parsing time from execution time for wildcard expansion.
4. Identify side effects and risky redirections (for example `>` truncation), privilege changes, and secrets in command arguments.
5. If the command has a bug or unsafe assumption, propose a corrected option separately with a reproducible read-only check.

## Relevant references
- Read `../../references/shell-quoting.md` for domain-specific guidance.
- Read `../../references/pipelines-and-exit-status.md` for domain-specific guidance.
- Read `../../references/safety-risk-model.md` for domain-specific guidance.

## Completion checks
- No invented execution
- Expansion semantics are correct
- Redirections and side effects described

## Deliverable
Use the minimum format that makes the answer actionable: the actual command or patch, platform assumptions, a preview before risky changes, and a reproducible validation step. Clearly label proposed actions versus observed execution.

SHA-256: b25eb7d957ce58f346effcb29dfddbe39333e1ac1a864f5e0e8a11d737e7d6f5