agents/skills/shell/SKILL.md
When writing fish shell scripts, functions, abbreviations, or editing shell configuration
npx skillsauth add nazozokc/dotfiles shellInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
~/.config/fish/functions/abbr) or aliases in fish_user_key_bindings or config.fish.fish files)config.fish errors[[ ]], source, export VAR=val, etc.)function definitions over alias for anything non-trivialabbr for short forms: Abbreviations expand in-line and are more discoverable than aliases| Task | fish syntax | ❌ Bash (don't use) |
| -------------------- | ------------------------------- | ------------------------------- |
| Set variable | set var value | var=value |
| Set env variable | set -x VAR value | export VAR=value |
| Local variable | set -l var value | local var=value |
| Condition | if test $var = "foo" | if [ "$var" = "foo" ] |
| String compare | if string match -q "foo" $var | if [[ $var == foo ]] |
| Command substitution | set result (cmd) | result=$(cmd) |
| Source a file | source file.fish | source file / . file |
| Append to PATH | fish_add_path /some/dir | export PATH="$PATH:/some/dir" |
| Return value | return 0 | same |
| Function args | $argv[1], $argv | $1, $@ |
# ~/.config/fish/functions/my_func.fish
function my_func --description "What this does"
# implementation
end
--description flag for discoverability (functions my_func)# In config.fish or a dedicated file
abbr --add gs git status
abbr --add gp git push
abbr for git shortcuts and common commands--add flag explicitlyconfig.fish
├── Environment variables (set -x)
├── PATH additions (fish_add_path)
├── Abbreviations (abbr --add)
└── Source other configs if needed
config.fish — use functions/ directoryconfig.fish short and readableconfig.fish (e.g. nix evaluations, slow eval calls)fish_add_path instead of set -x PATH — it deduplicates automaticallyfish --command "exit" --profile /tmp/fish-profile.txt~/.config/fish/~/.config/fish/home-manager modulesdevelopment
Method and notes when performing web searches
development
Guidelines when working on TypeScript/JS projects
tools
Template and notes when creating or updating SKILL.md files under skills/
documentation
Guidelines when managing Nix configuration