bew/dotfiles/coder-zsh

Claude Code and agent skill by bew/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Zsh code writing guidelines: idioms, completions, and shell gotchas. Always load when asked to draft/write/edit/refactor/review zsh code files.

Install

npx vskill@latest install bew/dotfiles/coder-zsh

SKILL.md

Goal

Write zsh code with native idioms, correct option parsing, working completion functions, and safe exit-status handling, building on coder-generic conventions.

REQUIRES: load coder-generic skill first.

Rules

  • Use [[ ... ]] over [ ... ] for conditional expressions.
  • Use (( ... )) over [[ ... ]] for numeric comparisons.
  • Always quote expansions: "$var", "$@", "${arr[@]}".
  • Use function name() { ... } style — always include the function keyword.
  • Use ${VAR:-default} for optional values and defaults.
  • Assign positional parameters to named locals at the top of a function;

use $1 directly only in trivial one-liners.

Completions

  • Name completion functions with a leading _ and register them with compdef.
  • Register against the real command name: compdef _foo foo.

Aliases are expanded before completion runs, so the alias name is not required.

  • Keep completers small; prefer built-in helpers (_arguments, _files, _directories) over

hand-rolled matching.

  • If a completer deliberately does not handle some flag/args, note it in a comment.
zsh
function _foo() {
_arguments '1:subdir:_directories'
}
compdef _foo foo

Output capture vs exit-status

Declare a local on its own line before capturing command output: local masks the substitution's exit status, so a guard on the same line never fires.

zsh
# Good — the guard sees the real exit status
local root
root=$(resolve_root) || return 1
# Bad — `local` reports 0, the guard is dead, and `root` may be empty
local root=$(resolve_root) || return 1

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bew/dotfiles/coder-zsh/badge)](https://verified-skill.com/skills/bew/dotfiles/coder-zsh)

Something wrong with this skill or its page? Tell us.