zsh
Installation
SKILL.md
ZSH Style Guide
Scope Boundaries
- Use this skill when the task matches the trigger condition described in
description. - Do not use this skill when the primary task falls outside this skill's domain.
Use this skill to write and review Zsh scripts that intentionally rely on Zsh behavior while staying safe and maintainable.
Structure And Readability
- Use explicit Zsh shebang for executable scripts (
#!/usr/bin/env zsh) - Use strict mode for executable entrypoints.
- Keep functions small and orchestration in
main. - Call main function at end:
main "${@}" - Use
localand typed variables where it improves safety. - Keep comments short and focused on intent.