fish-shell

Enforce Fish shell syntax and command usage in scripts and interactive sessions.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/damacus/agent-skills --skill fish-shell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fish-shell
Source: https://github.com/damacus/agent-skills/tree/main/skills/fish-shell
Command: npx skills add https://github.com/damacus/agent-skills --skill fish-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fish shell scripting reference and enforcement. Activate whenever executing shell commands, writing shell scripts, using run_command, or any shell interaction in the user's environment. The user's shell is fish — never use bash/zsh/POSIX syntax in interactive commands.

Core Features & Use Cases

  • Fish syntax enforcement for interactive commands and scripts.
  • Comprehensive rules covering variables, string manipulation, control flow, and functions.
  • Ensures safe, consistent Fish shell usage across workflows.

Quick Start

Provide a simple Fish script example that prints a greeting.

Frequently Asked Questions about fish-shell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce correct Fish shell syntax for scripting and interactive commands?

Fish shell syntax enforcement applies correct scripting style and command usage to interactive sessions and scripts. It prevents invalid bash, zsh, or POSIX syntax from executing in a Fish environment.

What is the best way to handle variables and string manipulation in Fish shell?

Fish shell variables and string manipulation follow specific syntax rules that differ from POSIX shells. Enforcing these rules ensures safe, consistent script execution and correct variable scoping across workflows.

Does this Fish shell enforcement work with run_command execution?

Yes, Fish shell enforcement applies whenever using run_command or interacting with the shell. It ensures all executed commands use robust Fish syntax instead of defaulting to bash or POSIX standards.

Why does my shell script fail when using POSIX syntax in a Fish environment?

Fish shell does not support POSIX or bash syntax. Enforcing Fish syntax prevents these failures by ensuring all control flow, functions, and commands use Fish-specific scripting rules.

Can I use standard bash commands and control flow in Fish shell scripts?

No, standard bash commands and control flow must be adapted to Fish syntax. Fish enforcement ensures scripts use Fish-specific structures for conditionals, loops, and functions to execute safely.