Agent skill
add-fish-alias
Use when creating a new fish shell alias, function, or command shortcut, or when user asks to "add an alias for X"
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/add-fish-alias-avegancafe-juliet
SKILL.md
Add Fish Alias
Create a new fish shell function/alias in Juliet dotfiles.
Process
-
Create function file
symlinked/config/fish/functions/aliases/<name>.fish -
Write the function
fishfunction <name> --wraps "<wrapped-command>" <wrapped-command> $argv end -
Reload fish (or open new terminal)
bashsource ~/.config/fish/config.fish
File Naming
- Filename = function name (e.g.,
g.fishdefinesgfunction) - Use lowercase, hyphens for multi-word names
- Files are auto-loaded alphabetically
Patterns
Simple Wrapper
function g --wraps "git"
git $argv
end
Wrapper with Auto-Install
function nv --wraps "neovide"
if ! command -v neovide 2&> /dev/null
gum confirm "Neovide not installed. Install?" && brew install --cask neovide
end
neovide $argv
end
Function with Subcommand Aliases
function pv --wraps "pipenv"
switch $argv[1]
case "i"
set argv[1] install
end
pipenv $argv
end
Interactive Function (using gum)
function clone
set -l provider (gum choose --header "Source?" github gitlab)
# ... rest of logic
end
Multiple Functions in One File
Group related functions (e.g., git.fish contains ga, gl, gm, commit, etc.)
Conventions
- Use
--wrapsfor tab completion inheritance - Use
$argvto pass all arguments - Use
gumfor interactive prompts (confirm, choose, input, spin) - Helper functions:
log,error,debuglog(defined in fish config)
Common Mistakes
- Forgetting
--wraps(loses tab completion) - Using
$@instead of$argv(bash syntax, not fish) - Creating in wrong directory (must be in
symlinked/config/fish/functions/aliases/)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?