← Files Unix CopilotARCHIVED FILE
skills/command-from-task/SKILL.md
1.97 KB · Nov 24, 2026 · 00:43 UTC
--- name: command-from-task description: Translate plain-language Unix or CLI tasks into safe, copy-ready shell commands with assumptions and verification. --- # Write a command from a task ## 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. Clarify inputs, outputs, scope, path, shell and platform only when necessary. Write a one-sentence intended effect before generating complex commands. 2. Prefer one simple command to a brittle pipeline; avoid parsing `ls`, needless privilege, `eval`, and dynamically constructed shell text. 3. Quote paths and variables, protect leading-dash filenames as the utility allows, and distinguish shell globbing from regular expressions. 4. If output is changed, identify overwrite/privilege risk. Generate a read-only preview first for consequential operations. Keep destructive command separate and never auto-execute it. 5. Show labeled GNU and BSD/macOS alternatives if relevant. For POSIX `sh`, avoid arrays, `[[ ]]`, process substitution and nonstandard pipefail. 6. Include a minimal command explanation and a meaningful validation command; skip boilerplate for straightforward read-only questions. ## Relevant references - Read `../../references/shell-quoting.md` for domain-specific guidance. - Read `../../references/safety-risk-model.md` for domain-specific guidance. - Read `../../references/portability-matrix.md` for domain-specific guidance. ## Completion checks - Copy-ready syntax - No unverifiable side effects - Preview and validation appropriate to scope ## 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: 77206475b22d72d954dec6792b1ba806a312ee01c8e6fa316ee6e05370f6380b