Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fmind/dot --skill shellgit clone --depth 1 https://github.com/fmind/dotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fmind/dot/shell)<a href="https://agentmods.dev/skills/fmind/dot/shell"><img src="https://agentmods.dev/badge/skills/fmind/dot/shell/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fmind/dot/shell"><img src="https://agentmods.dev/badge/skills/fmind/dot/shell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.01370 |
| Opus 5.5 | $0.00010 | $0.00548 |
| Sonnet 5.5 | $0.00005 | $0.00274 |
| Haiku 4.5 | $0.00002 | $0.00137 |
Grade C, and why
shell scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
1. **Quote every expansion and protect paths**: wrap every variable and command substitution (`"${var}"`, `"$(cmd)"`), store argument lists in arrays `"${arr[@]}"` (or `set --` in `sh`) rather than space-delimited string How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Shell Scripting, Portability & Safety
Keep shell scripts small, strict, and auditable across POSIX sh, bash, zsh, and fish (bootstraps, entrypoints, Fish functions, git hooks, CI run: blocks). Once logic passes ~100 lines or needs retries, structured JSON/YAML parsing, or complex branching, graduate to a PEP 723 Python script (python/script).
Workflow
- Pick a dialect-true shebang and strict header:
- Strict POSIX
sh(dash/Alpine/BSD):#!/bin/sh+set -eu(no bashisms: no[[ ]], arrays,pipefail,localwhere strict portability applies, or$'...'). - Bash:
#!/usr/bin/env bash+set -euo pipefail. - Zsh:
#!/usr/bin/env zsh+emulate -L zsh+set -euo pipefail(syntax-check viazsh -n). - Fish:
#!/usr/bin/env fish(never mix POSIX syntax; useset -gx—neverset -U—inside tracked config files so persistent universal state is never mutated).
- Strict POSIX
- Quote every expansion and protect paths: wrap every variable and command substitution (
"${var}","$(cmd)"), store argument lists in arrays"${arr[@]}"(orset --insh) rather than space-delimited strings, pass--before variable paths (rm -rf -- "${dir:?}/sub"), and splitlocal out; out="$(cmd)"solocal/export/readonlynever mask non-zero exits underset -e. - Bound temp files, traps & non-TTY runs: create temp dirs via
mktemp -dwithtrap cleanup EXIT; trap 'trap - EXIT; cleanup; trap - INT; kill -INT $$' INT; trap 'trap - EXIT; cleanup; trap - TERM; kill -TERM $$' TERM(avoids double cleanup and preserves signal exits; guard unset vars underset -u), disable prompts (--yes,</dev/null), and keep operations idempotent (ln -sfn, pre-checks over blind>>). - Eliminate injection & brittle parsing: never interpolate variables into
eval,sh -c "...", orsed/awk—pass positional args (sh -c 'cmd "$1"' _ "$arg"), and verify checksums/signatures before running downloaded installers.- Structured data: parse JSON with
jqand YAML with Goyq(mikefarah/yq, e.g.yq -i '.key = strenv(VAL)' file.yml—distinct from Pythonkislyuk/yq). - Safe file iteration: in POSIX
sh, usefind ... -exec ... {} +or safe globs; in Bash, usewhile IFS= read -r -d '' f; do ...; done < <(find ... -print0)(neverfor f in $(ls ...)).
- Structured data: parse JSON with
- Verify with deterministic linters and syntax checks:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed c9f7f8f98e4f
- 3d ago Changed · +5 lines e6057ef4af10
- 8d ago First seen · 48 lines · 24 tokens per session scan C ded98c6760fb
shell is a skill published in the GitHub repository fmind/dot (14 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,370 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.
shell compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| shellfmind/dot | Skill | 14 | yesterday | MIT | C | 24 | Claude Code, Codex |
| go-stackfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 31 | Claude Code, Codex |
| python-stackfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 41 | Claude Code, Codex |
| python-scriptfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 34 | Claude Code, Codex |
| scaffold-nodeurmzd/dotfiles | Skill | 6 | 5d ago | Apache-2.0 | A | 119 | Claude Code |
| write-codeurmzd/dotfiles | Skill | 6 | 5d ago | Apache-2.0 | A | 112 | Claude Code |
| cloud-runfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 28 | Claude Code, Codex |