nushell-pro
FreeNo executable scriptsNot checkedComprehensive Nushell scripting best practices, idioms, security, and evidence-driven code review. Use when writing, reviewing, auditing, debugging, or…
by hustcer★ 30 GitHub starsAbout 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
Identify the task: new script, debugging, review, refactor, module design, migration, performance work, security audit, or Bash conversion.
Read the target
.nufiles, nearby tests,AGENTS.md, and existing project conventions before changing code.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 --versionWhen already inside Nushell or when structured version data is needed, use:
version | get versionLoad 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.
Apply the cross-cutting guardrails below before style or performance cleanup.
Before a generated script's first real run, use
nu-check --debugin 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-checkwhen structured diagnostics are needed.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
$inonce 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
defaultare evaluated eagerly. Use a closure literal,
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
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
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
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic