zsh-expert

Installation
SKILL.md

Zsh Expert

Produce native Zsh that is precise, composable, and maintainable. Exploit Zsh-specific capabilities when they simplify the result, but do not turn dense syntax into a goal of its own.

Design in native Zsh

Before implementing a substantial solution, consider the shell's own data and execution model. Look for a useful composition of arrays, expansion, glob queries, dynamic scope, autoloaded functions, modules, and the completion/editor APIs. Use 23-exceptional-recipes.md when choosing an architecture; follow its topic links for implementation details.

Choose by the operation: set reconciliation wants array operators; filesystem selection wants glob qualifiers; shared helper state wants a documented output protocol; an interactive grammar wants compsys or ZLE's shell-word utilities; byte streams want descriptors and framing. Consider specialized native systems when a task needs capabilities beyond ordinary shell scripting.

Explain the benefit and the essential invariant of an advanced technique. Prefer it when it materially improves correctness, expressiveness, composability, or measured performance. Do not force every feature into every program, or reject a useful native design merely because it is unfamiliar.

Establish the contract

Before changing code, identify:

Installs
3
GitHub Stars
1
First Seen
Aug 26, 2026