Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By MaceTenthv0.7.0MITIn 1 marketplace
Writes throwaway bash or Python for one-off file and data tasks, using fewer tokens and recovering from failed commands cheaply. A PreToolUse hook denies unfiltered man calls and returns a cheaper lookup instead.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Write throwaway bash/python for one-off file & data tasks so they cost minimal tokens and run fast — and let the skill improve itself from its own benchmark runs.
token-efficient-scripts/
├── .claude-plugin/plugin.json
├── skills/token-efficient-scripts/
│ ├── SKILL.md # the skill (3 tiers + verdict commands + recovery ladder + guardrails)
│ └── references/
│ ├── benchmark-findings.md # shipped read-only baseline findings
│ ├── cli-failure-recovery.md # failed-command recovery findings
│ ├── verification-output.md # tests/builds/git/archives: loud vs quiet findings
│ └── log-run.py # append helper (standalone use)
├── commands/
│ ├── bench.md # /token-efficient-scripts:bench
│ ├── bench-recovery.md # /token-efficient-scripts:bench-recovery
│ └── bench-verify.md # /token-efficient-scripts:bench-verify
├── hooks/hooks.json # PreToolUse(Bash) -> pre-bash-man.py; Stop -> on-stop.sh
└── scripts/
├── bench.py # portable benchmark (tiktoken optional)
├── bench-recovery.py # failed-command recovery benchmark
├── bench-verify.py # verification-output benchmark (hermetic fixtures)
├── pre-bash-man.py # DENIES unfiltered `man`, returns the ladder
├── test-pre-bash-man.py # 35 tests for that hook (--e2e drives real claude)
├── test-cheatsheet.py # verifies SKILL.md's platform table still works
├── check-release.py # pre-push gate (see ../../RELEASING.md)
├── run-bench.sh # runs bench.py, logs to $CLAUDE_PLUGIN_DATA
├── run-bench-recovery.sh # runs bench-recovery.py, logs to $CLAUDE_PLUGIN_DATA
├── run-bench-verify.sh # runs bench-verify.py, logs to $CLAUDE_PLUGIN_DATA
└── on-stop.sh # cheap deduped datapoint on session stop
From GitHub:
/plugin marketplace add MaceTenth/token-efficient-scripts
/plugin install token-efficient-scripts@macetenth-plugins
Or from a local clone:
/plugin marketplace add /path/to/token-efficient-scripts
/plugin install token-efficient-scripts@macetenth-plugins
/token-efficient-scripts:bench to re-benchmark and log any new finding./token-efficient-scripts:bench-verify to measure loud vs quiet forms of tests, builds, git and archive commands (97.1% fewer tokens in the shipped run, every answer kept, no speed change).man hook (enforcement, not suggestion)A skill is injected text: it biases the model, it cannot stop a tool call. This plugin also
ships a PreToolUse hook that does stop one — an unfiltered man is denied, and the
denial hands back the ladder (--help, then a tight grep, then the web).
It is deliberately narrow, and fails open on anything unexpected:
| denied | allowed |
|---|---|
man find | man find | col -b | grep -nE -m3 -B2 -A3 'printf' |
man 5 hosts | man -k compress, man -w find (already tiny) |
man find | col -b, man x | less (still the whole page) | man find > /tmp/f (never enters context) |
MANWIDTH=80 man date | TE_ALLOW_MAN=1 man find (explicit override) |
No false positives on human, command -v man, /usr/share/man, or bare man.
The denial itself costs 229 tokens — 93% less than the average man page it replaces, and it
is actionable rather than just a refusal. To disable it, delete the PreToolUse block from
hooks/hooks.json, or use the TE_ALLOW_MAN=1 prefix per call.
Tests. A hook that misfires is worse than no hook, so it has its own suite:
python3 scripts/test-pre-bash-man.py # 35 cases: fast, free, no API, no network
python3 scripts/test-pre-bash-man.py --e2e # ALSO drives a real `claude -p` (costs money)
The unit matrix covers what must be denied (man find, man 5 hosts, MANWIDTH=80 man date,
and pipes that don't reduce — | col -b, | cat, | less), what must be allowed (a reducing
filter, -k/-w/-f/--help, redirects, the override), and what must never false-positive
(human, command -v man, /usr/share/man, apropos, bare man). Six cases assert it
fails open on malformed stdin, a missing field, or a non-Bash tool. Exits non-zero on any
failure.
--e2e spawns a real headless session via --settings and asserts both directions — that the
denial reaches the model, and that a filtered man still runs. It touches no config of yours.
7-day copy clicks
npx claudepluginhub macetenth/token-efficient-scripts --plugin token-efficient-scriptsPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.