fish-helper
БесплатноБез исполняемых скриптовНе проверенCurrent Fish shell scripting, functions, abbreviations, completions, variables, events, configuration, plugins, testing, and safety guidance. Use when writing…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
Fish Helper
Write Fish as Fish rather than translated POSIX shell. Preserve argv boundaries, propagate statuses, make configuration idempotent, and distinguish optional integrations from required tools.
Current baseline
Verified against Fish 4.8.1 on 2026-08-03:
fish --version
Fish 4.8 changed installed/embedded completion and function layout, added cd -L/-P, and removed automatic __fish_initialized universal creation. Fish 4.7 changed noninteractive theme initialization; Fish 4.6 changed emoji width and added prompt environment controls; Fish 4.5 mainly fixed Vi-mode regressions.
Read references/releases.md for the 51-page research ledger. Read references/syntax-and-safety.md for variables, argv, statuses, reading, tracing, temp directories, and shell boundaries. Read references/functions-completions-config.md for functions, events, abbreviations, completions, startup, prompts, and themes. Read references/plugins-and-testing.md for Fisher, popular plugins, testing, and installation security.
Variables and environment
Use exported global variables in version-controlled config for child-process environment:
set -gx EDITOR nvim
fish_add_path --global $HOME/.local/bin
Universal variables remain supported, but Fish 4.3 stopped creating several user-facing defaults as universal values. Use universal state only when cross-session persistence is intentional. set -U EDITOR vim is not exported; set -Ux is persistent and exported but can create hidden machine state.
Use fish_add_path --global for idempotent, version-controlled path changes. Do not replace PATH with a short hard-coded list or prepend the same directory every time config is sourced.
Fish supports command-scoped environment overrides:
MODE=test command --flag
Standalone assignment still uses set.
Preserve argv
Accept commands as the remaining arguments and invoke them directly:
function retry --description 'Retry a command with exact arguments'
argparse --stop-nonopt 'n/max-attempts=' -- $argv
or return
set -l max_attempts 3
if set -q _flag_max_attempts
set max_attempts $_flag_max_attempts
end
if not string match --quiet --regex '^[1-9][0-9]*$' -- $max_attempts
echo 'retry: max-attempts must be a positive integer' >&2
return 2
end
if test (count $argv) -eq 0
echo 'retry: missing command' >&2
return 2
end
set -l attempt 1
while test $attempt -le $max_attempts
$argv
set -l command_status $status
if test $command_status -eq 0
return 0
end
if test $attempt -eq $max_attempts
return $command_status
end
set attempt (math $attempt + 1)
or return
end
end
Do not turn command arguments into source text with eval. Invoke the argv list directly or call an exact function.
Error propagation
Fish functions return the status of their last command unless overridden. A helper named die that only executes return 1 returns from itself; its caller continues unless it propagates the status.
require_tool rg
or return
Check mktemp, pushd, reads, generated init commands, and cleanup explicitly. Required tools should fail fast. Only optional integrations may be conditionally absent, and the config should label them optional.
Reading input
read normally reads one line. It does not turn a whole file into an array by adding list flags:
while read -l line
process_line $line
end < file.txt
Use string split when delimiter-based parsing is deliberate. Use read --silent for interactive secrets, or a tool-specific credential file/secret manager; do not write credential-shaped literals into shell config.
Abbreviations
Use abbreviations for interactive expansion and functions for reusable logic. Cursor markers default to %:
abbr --add L --position anywhere --set-cursor '% | less'
The expansion needs the marker for cursor movement.
Transient prompts and themes
Enable transient prompts with a variable, not a function:
set -g fish_transient_prompt 1
Fish reruns fish_prompt, fish_right_prompt, and fish_mode_prompt with --final-rendering.
Prefer fish_config theme choose THEME for adaptive theme behavior. fish_config theme save stores universal colors and disables dynamic light/dark switching. Theme files use fish_color_command blue, not assignment syntax.
Startup and configuration
Fish searches user conf.d, system configuration, and user/vendor data directories according to documented priority; snippets are naturally sorted, and only the first same-named file is run. Do not describe a simple system-then-user order.
Put environment and path setup needed by noninteractive F
Установить fish-helper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fish-helper?
Current Fish shell scripting, functions, abbreviations, completions, variables, events, configuration, plugins, testing, and safety guidance. Use when writing or reviewing Fish config, `.fish` scripts, completions, functions, prompts, or plugin setup.
Как установить скилл fish-helper?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fish-helper запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic