nushell-pro
БесплатноБез исполняемых скриптовНе проверенComprehensive Nushell scripting best practices, idioms, security, and evidence-driven code review. Use when writing, reviewing, auditing, debugging, or…
от hustcer★ 30 звёзд на GitHubОб этом скилле
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,
Установить nushell-pro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nushell-pro?
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.
Как установить скилл nushell-pro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nushell-pro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от 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…
от 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…
от 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…
от Anthropic