nushell

Author, validate, and debug Nushell scripts, modules, and pipelines using nu-check.

1|Updated Sep 3, 2017
One-click install
npx skills add https://github.com/mmgeorge/config --skill nushell-mmgeorge
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nushell
Source: https://github.com/mmgeorge/config/tree/main/rulesync-global/.rulesync/skills/nushell
Command: npx skills add https://github.com/mmgeorge/config --skill nushell-mmgeorge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Nushell scripts without syntax validation leads to parse errors discovered only at runtime. This Skill provides structured guidance for authoring Nushell code and validating it with nu-check before execution or deployment. ## Core Features & Use Cases - Script Validation: Runs nu-check on standalone scripts, module definitions (with --as-module), and inline pipeline expressions to catch parse errors early. - Authoring Guidance: Consults the official nushell/nushell and nushell.github.io repositories via GitHub MCP for verified command signatures, grammar, and cookbook patterns. - Use Case: When converting a Bash script to Nushell, use this Skill to write the equivalent pipeline, validate it with nu-check, and resolve any parse errors before running it. ## Quick Start Use the nushell skill to validate my script backup.nu and fix any syntax errors it reports.

Frequently Asked Questions about nushell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a Nushell script for syntax errors?▼

Run nu -c 'nu-check path/to/script.nu' to parse the script without executing it. For module files, add the --as-module flag so nu-check applies module parsing rules instead of script rules.

How to check a Nushell pipeline expression without running it?▼

Pipe the pipeline string into nu-check, for example "ls | where size > 1mb" | nu-check. This parses the expression and reports any syntax errors without executing the commands.

Does nu-check work for Nushell modules?▼

Yes, nu-check supports module validation through the --as-module flag. Run nu -c 'nu-check --as-module path/to/module.nu' so the file is parsed under module grammar rather than standalone script grammar.

Why does Nushell script validation fail in my environment?▼

Validation fails when the nu binary is not installed or not on the PATH. Verify nu is accessible first; if a runtime dependency is missing, the exact missing command and diagnostic output should be reported.

Where can I find official Nushell command signatures and documentation?▼

Consult the nushell/nushell repository for builtin command implementations and language internals, and nushell/nushell.github.io for official documentation, cookbook patterns, and migration guides, both accessible via GitHub MCP.