bew/dotfiles/coder-nushell

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.

Nushell code writing guidelines: idioms, types, entry point, error handling. Always load when asked to draft/write/edit/refactor/review Nushell (.nu) code files.

Install

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

SKILL.md

Goal

Write Nushell code using native idioms: typed parameters, structured data, and proper error handling.

REQUIRES: load coder-generic skill first.

In Nushell, module code is any .nu file loaded via use or source by other code — no shebang, uses export def to expose public commands. Script code is a file run directly: has a shebang (#!/usr/bin/env nu), and defines def main [...].

If working on module code: read <./module-rules.md>. If working on script code: read <./script-rules.md>.

Rules

  • Annotate all parameters with types (e.g. name: string, items: list<string>, count?: int).
  • Place the docstring comment directly above the def — nushell uses it as the command's help text.
  • Use let for immutable locals, mut for mutable locals.
  • Use const for compile-time constants.
  • Signal errors per code kind — see <./module-rules.md> and <./script-rules.md>.
  • Access optional env vars with $env.VAR? (returns null if unset, no crash).
  • Use $env.FILE_PWD for the file's own directory — not a $SCRIPT_DIR workaround.

Guidelines

  • Prefer pipeline style ($data | each { ... }) over imperative loops when natural.
  • Use $in to receive piped input inside a def; declare the pipeline signature

with : inputtype -> outputtype for clarity.

  • Prefer let over mut — reach for mut only when re-assignment is truly needed.
  • Flags are declared as --flag-name parameters in the def signature, not parsed manually.

Parameter style

nu
# Good — typed, documented
def process [
path: string # file to process
mode?: string # "fast" or "careful" (default: "fast")
--verbose # enable verbose output
]: nothing -> nothing { ... }
# Bad — untyped, undocumented
def process [path mode] { ... }

Testing

No dedicated Nushell testing skill exists yet. Ask the user how they want tests structured before writing any.

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-nushell/badge)](https://verified-skill.com/skills/bew/dotfiles/coder-nushell)

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