/efficient-commands:efficient-shell-usagefrom efficient-commands
Prevents wasteful shell command patterns: re-running commands to see different output slices, re-running without changes, and over-verifying after fixes. Saves output to files and uses Grep/Read for triage.
Ships in efficient-commands. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Shell commands like test suites, linters, typecheckers, and builds are expensive — they take wall-clock time, consume tokens reading output, and burn through rate limits.
Never re-run a command to see a different slice of its output, and never pipe commands
through tail, head, or grep — that re-executes the entire command each time.
Instead, run once, save to file, and use tools to inspect:
command 2>&1 | tee /tmp/cmd-output.txt; echo "EXIT: $?"
Then triage:
/tmp/cmd-output.txt (e.g.,
"FAIL", "error", "Error:"). Then use Read with offset and limit to see context
around those lines — typically 5-10 lines before and after is enough.This applies to any output inspection. To search saved output, use the Grep tool. To view a section, use Read with offset/limit. Never re-run the command or pipe it through shell utilities to see different parts.
For short commands with small output (e.g., git status, ls), saving to a file is
unnecessary — just read the Bash tool result directly.
Do not re-run an expensive command unless something has changed that would affect its result — a source file edit, a dependency change, a config change.
Do not re-run to "double-check" a passing result, to hope for a different outcome, or
to see the output differently (use saved output from Rule 1 instead). Do not re-run the
same tool through a different entry point (e.g., npx eslint after npm run lint
already ran eslint).
The sequence is: run → see failure → fix the cause → re-run.
After making changes, run each verification step once. Only re-run a step if your fix could plausibly affect its result.
typecheck → pass
lint → fail → fix → re-run lint → pass
tests → fail → fix → re-run tests → pass
# Done. The lint fix didn't affect typecheck. The test fix didn't affect lint.
Do not re-verify steps that already passed unless the fix touched something they check.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pavlov-net/claude-plugins --plugin efficient-commandsOther plugins' skills for the same job