shell
Skill14 starsChanged yesterdayMITView on GitHub
Write and lint portable POSIX sh, Bash, and Fish scripts (shellcheck, shfmt, traps).
- Deletes or force-pushes
21 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dotfilesword for word, first seen Nov 29, 2026
- elizaOS/elizatheir own version, first seen Nov 29, 2026
- fx/skillstheir own version, first seen Nov 8, 2026
- testdino-hq/google-styleguides-skillstheir own version, first seen Nov 8, 2026
- ryanmaclean/skillstheir own version, first seen Nov 1, 2026
- ArangoGutierrez/claude-toolkittheir own version, first seen Oct 15, 2026
Used with
Projects with it also use update-cli-config, migrate-to-skills and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
PandelisZSkillupdate-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
Also in 7 projects that use this
32103210Skillmigrate-to-skills
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
Also in 7 projects that use this
32103210Skillupdate-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
Also in 7 projects that use this
0mlkrizzz655335vSkillreview-bugbot
缺陷导向代码审查。用 Bugbot 子代理找 bug。
Also in 4 projects that use this
0mlkrizzz655335vSkillorigin
origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:
Also in 3 projects that use this
Tsumugii24Skillsplit-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
Also in 6 projects that use this
- +2 more from 32103210
- +3 more from 0mlkrizzz655335v
Other versions21 projects use a version of this.
Word for word · 1
- fmind/dotfiles★ 14100% same
Edited · 0
None found.
Wrote their own version · 20
- elizaOS/eliza★ 20ksame name
- zylos-ai/zylos-core★ 1.2ksame name
- blockcell-labs/blockcell★ 263same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- last9/mithai★ 20same name
- testdino-hq/google-styleguides-skills★ 15same name
- ArangoGutierrez/claude-toolkit★ 4same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- fx/skills★ 4same name
- 0mlkrizzz655335v/claude-skills-zh★ 2same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- agent-frameworksSkill
- agent-harnessesSkill
- bfSkill
- calibrateSkill
- clipboardSkill
- cloud-opsSkill
- code-securitySkill
- containersSkill
- decisionSkill
- diagrams-as-codeSkill
- docsSkill
- dot-cliSkill
- draftSkill
- extractSkill
- finopsSkill
- fmindSkill
- full-reviewSkill
- gcloudSkill
- git-deliverySkill
- githubSkill
- gwsSkill
- humanizeSkill
- infra-as-codeSkill
- miseSkill
- mlopsSkill
- openspecSkill
- proposalSkill
- pythonSkill
- skillifySkill
- <name>Skill
- sqlSkill
- sreSkill
- subagentSkill
- web-frontendSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Keep shell scripts small, strict, and auditable across POSIX sh, bash, zsh, and fish (bootstraps, entrypoints, Fish functions, git hooks, …
- Very specific: line 25
Bound temp files, traps & non-TTY runs: create temp dirs via mktemp -d with
- Very specific: line 26
Eliminate injection & brittle parsing: never interpolate variables into eval, sh -c "...", or sed/awk—pass positional args (sh -c 'cmd …
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
shellcheck -- <scripts...> shfmt -d -i 2 -s -- <scripts...> sh -n -- <posix-script> bash -n -- <bash-script> zsh -n -- <zsh-script> fish --no-config --no-execute -- <fish-script> fish --no-config -c 'fish_indent --check < <fish-script>'-nand--no-executeparse one script per invocation (loop over multiple files rather than passing a list). Enable optional.shellcheckrcchecks likeenable=check-extra-masked-returnswhere supported; projectshfmt/shellcheckflags take precedence. Pinshellcheckandshfmtper project inmise.toml(mise).
Gotchas
set -eexit masking:set -eis disabled insideif/&&/||conditions and function calls within them; check critical steps explicitly and collect background PIDs withwait "$pid".- Empty globs, empty arrays, & leading-dash filenames: unmatched globs pass literal
*unlessshopt -s nullglob(Bash) or[ -e "$f" ] || continue(POSIX) guards the loop; prefix relative globs (./*) or pass--so-filenames cannot become flags. On macOS Bash 3.2 underset -u, empty"${arr[@]}"errors—expand via${arr[@]+"${arr[@]}"}. - GNU vs BSD userland drift:
sed -i,mktemp,date,readlink -f, andxargs -rbehave differently on macOS vs Linux; stick to POSIX flags or move cross-platform scripts to Python.
Documentation
- ShellCheck Wiki · shfmt · POSIX Shell · Fish docs
- Companions: python/script, mise, github/ci-cd, subagent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

