Logo di Nix Language

Nix Language

Community
olafkfreund
nix-language

Write, explain, debug, and review Nix expressions using versioned upstream language references. Use for syntax, scope, lazy evaluation, functions, strings, paths, derivations, and built-ins; NixOS service options and Nixpkgs APIs need their own references.

Panoramica

Pubblicato daolafkfreund
Repositorynix-skills
Nome della skillnix-language
Stelle
26
Fork
2
File inclusi
4
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 4

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da olafkfreund su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Nix Language in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/olafkfreund/nix-skills/tree/main/skills/nix-language
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/olafkfreund/nix-skills.git /tmp/nix-skills
mkdir -p .claude/skills
cp -r /tmp/nix-skills/skills/nix-language .claude/skills/nix-language
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Nix Language in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Nix Language non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Nix Language non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Nix language

Read sources.json for the documented release and exact upstream revision. Establish the project's target Nix version and evaluation mode before relying on version-sensitive behaviour. The references describe that pinned release, not necessarily the user's installed evaluator. If versions differ, verify the relevant feature against the target version's manual or executable; preserve experimental and pure-evaluation restrictions.

Working with expressions

Read the affected expression and its callers before changing it. Trace argument bindings, attribute selection, and when values are forced. Reuse existing project functions and conventions; choose the smallest correct change. Distinguish language built-ins from functions supplied by Nixpkgs lib, and ordinary attribute sets from NixOS module option merging. Do not infer package APIs or service options from this language reference.

Read only the relevant section of the language reference:

  • Scope, functions, recursion: Scoping rules, Functions, Recursive sets, Let-expressions, and With-expressions. Lexical bindings beat with; args@{ a ? value, ... } binds the original argument set without inserting defaults.
  • Values and operators: Data Types, List, Attribute Set, Operators, and Update. // replaces overlapping attributes; it does not recursively merge nested sets. Parenthesise function applications used as list elements.
  • Evaluation: Laziness and thunks and Strictness. A result's outer shape being evaluated does not mean its nested values have been checked.
  • Text and files: String literals, Interpolated expression, Path, and String context. Paths and strings differ; interpolating a path can copy files into the store. Preserve dependency context rather than discarding it to suppress an error.
  • Derivations: Derivations and Required. Describing a derivation, evaluating it, and building its outputs are different operations. Do not treat language derivation attributes as NixOS options.

Consult selected built-ins for exact argument behaviour and availability notices. For built-ins or topics outside the selection, follow the versioned upstream manual links in the references. Do not assume a function exists just because an unrelated library provides a similarly named function. For idioms and reproducibility practice (rec, with, lookup paths, pinning, source paths), read nix.dev's best practices; it is not bundled here.

Verification

Run the project's relevant checks after a change. For a controlled, self-contained expression, evaluate an assertion or expected result with the target Nix executable. Syntax checks alone do not prove evaluation success; evaluation alone does not prove a derivation builds. For lazy results, force the values the change actually affects (for example with builtins.deepSeq), rather than checking only the outer set.

Evaluation can read files, fetch inputs, or trigger builds through import-from-derivation. Inspect unknown expressions before executing them and respect the task's existing permissions. Use controlled examples for language checks; do not run upstream shell examples as setup instructions. If execution is unavailable, explain the reasoning and clearly report that validation was limited to inspection. Report the version and checks actually run; never imply other agents or evaluator versions were tested.

Nix style

  • Never search /nix/store (for example find /nix/store/*foo-* -name libfoo.so) and never copy a literal store path. Find the providing package with nix-locate, and refer to it through Nix: ${pkgs.foo}/lib or lib.makeLibraryPath [ pkgs.foo ].
  • Do not quote attribute names that are valid identifiers ([A-Za-z_][A-Za-z0-9_'-]*, dashes included). Write pkgs.foo-bar and packages.x86_64-linux, not pkgs."foo-bar". Quote only other names (".config/foo", "2.0"), the keywords assert else if in inherit let or rec then with, and interpolations ("${name}"). Upstream examples in references sometimes quote needlessly; do not copy that style.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Nix Language?

Write, explain, debug, and review Nix expressions using versioned upstream language references. Use for syntax, scope, lazy evaluation, functions, strings, paths, derivations, and built-ins; NixOS service options and Nixpkgs APIs need their own references.

Perché usare Nix Language su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Nix Language è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Nix Language in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/olafkfreund/nix-skills/tree/main/skills/nix-language. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Nix Language?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Nix Language?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Nix Language: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Nix Language è gratuita?

Sì. È pubblicata su GitHub da olafkfreund con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇