Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

nushell-pro

FreeNo executable scriptsNot checked

Comprehensive Nushell scripting best practices, idioms, security, and evidence-driven code review. Use when writing, reviewing, auditing, debugging, or…

hustcerby hustcer★ 30 GitHub stars

About this skill

Nushell Pro

Write secure, idiomatic, portable, and testable Nushell. Keep the main workflow in this file; load detailed references only when the task needs them.

Operating Workflow

  1. Identify the task: new script, debugging, review, refactor, module design, migration, performance work, security audit, or Bash conversion.

  2. Read the target .nu files, nearby tests, AGENTS.md, and existing project conventions before changing code.

  3. Establish both the project's supported Nu range (from CI, documentation, or project configuration) and the active local version. Do not assume the local binary defines the compatibility target. Prefer the official English docs; translations can lag. When local docs/source checkouts are available, inspect them and record their revision separately from the installed Nu version. From any shell, prefer:

    nu --version
    

    When already inside Nushell or when structured version data is needed, use:

    version | get version
    
  4. Load the smallest relevant reference set:

    Task Reference
    Nu 0.117 migration, types, records, dotenv, config, dynamic calls Nu 0.117 Migration
    Nu 0.116 migration, completions, flag spreading, cleanup Nu 0.116 Migration
    Nu 0.115 migration, YAML, CLI args, command changes Nu 0.115 Migration
    Strings, regex/globs, generated JS/JSON String Formats
    Security, paths, credentials, destructive operations Security
    Script/code review Script Review and Anti-Patterns
    Bash/POSIX conversion Bash to Nushell
    Modules, exports, scripts, tests Modules & Scripts
    Daemons, background jobs, E2E smoke tests Daemon & E2E Smoke Tests
    Types, records, lists, conversions Data & Type System
    Streaming, closures, performance, diagnostics Advanced Patterns
    Large columnar data Dataframes
    Common mistakes Anti-Patterns

    Only the three newest migration guides are listed here. For earlier versions, consult the migration archive.

  5. Apply the cross-cutting guardrails below before style or performance cleanup.

  6. Before a generated script's first real run, use nu-check --debug in the intended scope. Assert exact output for tricky strings/serialized payloads, then run the relevant tests; parsing alone cannot detect unintended but valid interpolation. Use --ide-check when structured diagnostics are needed.

  7. Report security/correctness findings before style and performance notes.

If a referenced file is unavailable, say so and continue with this file rather than inventing its contents.

Cross-Cutting Guardrails

These rules apply across task types. Load the routed reference before relying on syntax or behavior that changed between Nushell releases.

Types and pipeline contracts

  • Declare pipeline input in the I/O signature rather than as a positional parameter. Capture $in once when it must be reused because streams can be single-pass.
  • Type exported command parameters and input/output signatures.
  • Treat external/config records as untrusted; use optional access such as $record.field? and validate the resulting type/value.
  • Ordinary expressions passed to default are evaluated eagerly. Use a closure literal,
Full SKILL.md on GitHub

Install nushell-pro in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

.env-example.gitignore.oxfmtrc.jsonREADME.mdtest-prompts.json

FAQ

What does the nushell-pro skill do?

Comprehensive Nushell scripting best practices, idioms, security, and evidence-driven code review. Use when writing, reviewing, auditing, debugging, or refactoring Nushell (.nu) scripts, modules, custom commands, pipelines, config, and tests. Also use for Bash/POSIX-to-Nushell conversion and Nu migration issues including type aliases, record transforms, dotenv, custom completions, record-spread flags, YAML, SemVer, cleanup, and subprocess diagnostics.

How do I install the nushell-pro skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the nushell-pro skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare nushell-pro with