nushell-pro

Installation
SKILL.md

Nushell Pro — Best Practices & Security Skill

Write idiomatic, performant, secure, and maintainable Nushell scripts. This skill enforces Nushell conventions, catches security issues, and helps avoid common pitfalls.

Core Principles

  1. Think in pipelines — Data flows through pipelines; prefer functional transformations over imperative loops
  2. Immutability first — Use let by default; only use mut when functional alternatives don't apply
  3. Structured data — Nushell works with tables, records, and lists natively; leverage structured data over string parsing
  4. Static parsing — All code is parsed before execution; source/use require parse-time constants
  5. Implicit return — The last expression's value is the return value; no need for echo or return
  6. Scoped environment — Environment changes are local to their block; use def --env when caller-side changes are needed
  7. Type safety — Annotate parameter types and input/output signatures for better error detection and documentation
  8. Parallel ready — Immutable code enables easy par-each parallelization

Critical: Pipeline Input vs Parameters

Pipeline input ($in) is NOT interchangeable with function parameters!

Related skills

More from hustcer/nushell-craft

Installs
6
GitHub Stars
1
First Seen
Mar 4, 2026