nushell

Convert bash shell usage into Nushell pipelines operating on structured data.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bugabinga/pi-ext --skill nushell-bugabinga
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nushell
Source: https://github.com/bugabinga/pi-ext/tree/main/skills/nushell
Command: npx skills add https://github.com/bugabinga/pi-ext --skill nushell-bugabinga

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nushell helps you avoid brittle text-processing shell scripts by working with structured data pipelines, consistent environment variables, and correct I/O redirection behavior.

Core Features & Use Cases

  • Structured pipelines: Treat streams as tables/lists/records so filtering and transformations operate on fields instead of raw text.
  • Environment-variable correctness: Use $env.* for environment state and $in/$it for pipeline context to prevent common quoting and variable-scope bugs.
  • Safe command behavior: Handle stderr redirection correctly for external commands and use proper patterns for internal commands where stderr redirection does not apply.
  • Bash-to-Nushell conversion: Translate common bash idioms (vars, exit codes, subshells, redirection) into Nushell equivalents when porting scripts.

Quick Start

Ask the AI to convert your bash command or script pattern to an equivalent Nushell pipeline using $env.*, $it, and correct external-command stderr redirection.

Frequently Asked Questions about nushell

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

FAQPage Schema
How do I convert bash scripts to nushell pipelines?

To convert bash scripts to nushell pipelines, translate bash variables, exit codes, and subshells into structured data pipelines using `$env.*` for environment variables and `$in`/`$it` for pipeline context. This preserves script intent while operating on structured tables instead of raw text.

How does stderr redirection work in nushell for external commands?

Stderr redirection in nushell applies only to external commands using specific nushell syntax. For internal commands, stderr redirection does not apply, so you must use proper patterns to handle command behavior safely and avoid common redirection pitfalls.

What is the best way to filter structured data in shell scripts?

The best way to filter structured data in shell scripts is using nushell pipelines with `where` or `select` commands. This allows you to operate on table fields and records directly instead of parsing raw text with brittle text-processing tools.

Why do my environment variables fail in nushell pipelines?

Environment variables fail in nushell pipelines when not using `$env.*` syntax for environment state. To prevent common quoting and variable-scope bugs, ensure you map variables correctly and use `$in`/`$it` for pipeline context.

Can I use nushell to replace text-processing shell scripts?

Yes, you can use nushell to replace brittle text-processing shell scripts. It treats streams as tables, lists, and records, enabling filtering and transformations to operate on structured fields instead of raw text.