nushell
Installation
SKILL.md
Using Nushell
Nushell is a structured-data shell. Commands pass tables, records, and lists through pipelines - not text.
Two execution paths:
- MCP server:
mcp__nushell__evaluate- persistent REPL (variables survive across calls) - Bash tool:
nu -c '<code>'- one-shot (use single quotes for outer wrapper)
Critical Rules
NEVER use bare print in MCP stdio mode. Output will be lost (returns empty []). Use print -e "msg" for stderr, or just return the value (implicit return).
String interpolation uses parentheses, NOT curly braces:
# WRONG: $"hello {$name}"
# CORRECT: $"hello ($name)"
$"($env.HOME)/docs" $"2 + 2 = (2 + 2)" $"files: (ls | length)"
Gotcha: $"(some text)" errors - parens are evaluated as code. Escape literal parens: \(text\).