nushell
/nushell
Przetwarza dane strukturalne w potokach Nushell, filtruje tabele, przekształca JSON, CSV i YAML oraz definiuje własne polecenia z typowanymi parametrami.
- Autor
- DaRacci ↗
- Repozytorium
- nix-config ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Przetwarza dane strukturalne w potokach Nushell, filtruje tabele, przekształca JSON, CSV i YAML oraz definiuje własne polecenia z typowanymi parametrami.
Oryginalny opis (EN)
Process structured data in pipelines, filter tables, transform JSON/CSV/YAML, and define custom commands. Use when scripting with typed parameters or working with tabular data.
Jak działa
- Core Concepts
- Running Scripts
- Data Manipulation
- Scripting
- File Operations
- Tips
Podgląd SKILL.md
---
name: nushell
description: Process structured data in pipelines, filter tables, transform JSON/CSV/YAML, and define custom commands. Use when scripting with typed parameters or working with tabular data.
---
# nu-shell
Structured-data shell. Pipelines work on tables, lists, and records, not only text.
## Core Concepts
### Data Types
- **Record**: `{ name: "John", age: 30 }`
- **List**: `[1, 2, 3]`
- **Table**: list of records with same fields
### Pipelines
```nu
ls | where size > 10mb | sort-by size
```
## Running Scripts
```bash
nu myscript.nu # Run script file
nu -c 'ls | length' # Run inline command
source myscript.nu # Run in current session
```
## Data Manipulation
### Loading and Saving
```nu
let config = (open config.json)
let data = (open data.csv)
$data | save output.yaml
$data | to json | save output.json
```
### Filtering and Selecting
```nu
ls | where name =~ "test" # Filter rows
ls | select name size # Select columns
(open package.json).version # Access fields
```
### Processing Tables
```nu
ls | where size > 10mb # Filter by condition
ls | select name size # Select columns
ls | sort-by size # Sort
ls | group-by name # Group
ls | length # Count rows
```
### Processing Records
```nu
let user = { name: "John", age: 30 }
echo $user.name # Access field
let updated = { ...$user, age: 31 } # Update field
let merged = { ...$config, debug: true } # Merge
```
### Processing Lists
```nu
[1, 2, 3, 4, 5] | where $it > 2 # Filter
[1, 2, 3] | each { |x| $x * 2 } # Map
[1, 2, 3, 4, 5] | reduce { |acc, x| $acc + $x } # Reduce
```
## Scripting
### Basic Script Structure
```nu
#!/usr/bin/env nu
def "my command" [param: string] {
echo $"Hello, ($param)"
}
my command "world"
```
### Control Flow
```nu
# If statement
if true { echo "Hello" }
# If-else
if true { echo "Yes" } else { echo "No" }
# For loop
for i in 1..10 { echo $i }
# While loop
mut i = 1
while $i <= 10 {
echo $i
$i = $i + 1
}
```
### Custom Commands
```nu
# With typed parameters
def "create project" [name: string, type: string = "typescript"] {
echo $"Creating ($name) with ($type)"
}
# With flags
def "deploy" [--env: string = "production"] {
echo $"Deploying to ($env)"
}
```
## File Operations
```nu
let content = (open "file.txt") # Read
$content | save "output.txt" # Write
$content | save --append "file.txt" # Append
```
## Tips
- Use `nu -c 'command'` for inline runs
- Use `open` to load many data formats
- Use `save` to write many data formats
- Use `where` to filter tables
- Use `select` to pick columns
- Use `sort-by` to sort tables
- Use `each` to map lists
- Use `reduce` to combine list items
- Use `def` for custom commands with typed params
- Use `...` to merge records
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · DaRacci/nix-config | 100 | MIT |
| hakula139/plugins | 100 | MIT |
| ryoppippi/dotfiles | 100 | MIT |
| vinnie357/claude-skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki d0d3055ec67a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100nushell-data-processing
Przetwarza dane strukturalne w Nushell: natywne tabele, parsowanie JSON, YAML, TOML, CSV i XML, potoki oraz group-by dla wieloetapowych transformacji niewygodnych w jq. - 100nushell-plugin-builder
Prowadzi przez tworzenie wtyczek Nushell w Rust z crate'ami nu_plugin i nu_protocol: konfiguracja projektu, polecenia, strumieniowanie danych, własne wartości i testy. - 100nushell-usage
Opisuje podstawowe wzorce, idiomy i pułapki pisania kodu w Nushell: skrypty, funkcje, system typów, potoki i struktury danych. - 100csv-pipeline
Przetwarza, przekształca, analizuje i raportuje dane z plików CSV i JSON: filtrowanie, łączenie zbiorów, agregaty, konwersja formatów, deduplikacja i raporty podsumowujące. - 100data-processing
Przetwarza JSON narzędziem jq i YAML oraz TOML narzędziem yq: filtruje, przekształca i wyszukuje dane w konfiguracjach i manifestach. - 100celq
Wyszukuje, filtruje i przekształca dane JSON5, YAML, TOML, XML, JSON i NDJSON za pomocą wyrażeń CEL, jako czytelna alternatywa dla jq w potokach powłoki.