Nix Workflow logo

Nix Workflow

Community
olafkfreund
nix-workflow

Choose Nix commands, locate store paths and libraries, use development shells, debug builds, configure Nix and navigate ecosystem tools.

Overview

Publisherolafkfreund
Repositorynix-skills
Skill namenix-workflow
Stars
26
Forks
2
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by olafkfreund on GitHub. Read the source before you install it.

Installation

Install the Nix Workflow AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/olafkfreund/nix-skills/tree/main/skills/nix-workflow
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-workflow .claude/skills/nix-workflow
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Nix Workflow in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Nix Workflow on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Nix Workflow is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Nix workflow

Establish the context before advising. Read the repository's own instructions. Check nix --version, since Nix, Lix and Determinate Nix differ. Check whether nix-command and flakes are enabled (nix config show experimental-features), and whether the project pins inputs with a flake, npins, niv or channels. Advice that fits one of these can be wrong for another.

Rules

  1. Never search /nix/store by brute force. A find or ls over the store only sees what happens to be built locally. It misses everything else, and a path copied from it breaks as soon as the store changes. Use nix-locate to find which package provides a file. Use store queries (nix path-info, nix why-depends) for dependencies. Refer to libraries through Nix expressions such as ${pkgs.openssl.out}/lib or lib.makeLibraryPath, never through literal store paths.

  2. Use the right environment.

    • For a project, use its devShells output with nix develop.
    • For a tool the user needs for a moment, use nix shell nixpkgs#tool.
    • For one program, use nix run.
    • Do not install into the user's profile or system to satisfy one project.
  3. Search before inventing. When a build or package fails:

    • Read the full log with nix log.
    • Search NixOS/nixpkgs issues and pull requests for the distinctive error text.
    • Report what you found, with numbers, before proposing a workaround.

    Do not disable the sandbox, checks or hardening to make an error disappear.

  4. Use the smallest adequate tool. Inspect and transform data with jq, awk, sed, grep and nix subcommands such as nix eval --json and nix derivation show. Write Python or another script only when the logic needs it.

  5. Know where a setting lives. Nix settings belong to the client, the daemon or a remote builder. Some take effect only for trusted users. On NixOS, nix-darwin and Home Manager, Nix configuration is declarative, and generated files are not edited by hand. Do not edit nix.conf, add trusted users or substituters, collect garbage, or switch a system without the user's explicit authorization. Propose the change instead.

  6. Treat ecosystem facts as perishable. Tools and lang2nix projects are archived, renamed or replaced often. Before recommending one, check its upstream repository for its status and any successor. Prefer the Nixpkgs language builders first.

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.

References

  • Finding things: which package provides a file, store and dependency queries, and referring to libraries from Nix.
  • Shells: nix develop, nix shell, nix run, defining devShells, direnv, and project versus host tools.
  • Troubleshooting: evaluation versus build errors, reading logs, and searching Nixpkgs issues, pull requests and Hydra.
  • Configuration: settings precedence, the client and daemon, trusted users, caches, remote builders and declarative owners.
  • Ecosystem: helper tools, pinning, flake frameworks, Nix implementations and lang2nix status.

Other skills by role

These skills belong to the same collection, but may not all be installed. If one is missing, use the linked upstream documentation instead.

RoleTypical needUse
DeveloperProject environment, expressionsThis skill for shells; devenv-project for devenv (devenv.sh); nix-language for the language (Nix manual)
PackagerDerivations, overrides, overlaysnixpkgs-development (Nixpkgs manual)
Home Manager user, including darwinUser configurationhome-manager (Home Manager manual)
macOS system administratornix-darwin system configurationnix-darwin (nix-darwin)
NixOS administratorSystem configuration and rebuildsnixos-operations for rebuilds, generations, upgrades, store cleaning, boot and services; nixos-wiki for community guidance (NixOS manual, NixOS Wiki)
AI coding agent userChoosing, installing and sandboxing coding agentsnixos-coding-agents (llm-agents.nix, agent-images, agent-box)
VM userDeclarative microVMsmicrovm-nix (microvm.nix)

Report what you actually ran, which commands only evaluated and which built or changed anything, and which advice you could not verify on the user's version.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Nix Workflow AI skill do?

Choose Nix commands, locate store paths and libraries, use development shells, debug builds, configure Nix and navigate ecosystem tools.

Why use Nix Workflow on TypingMind?

Because you install it once and use it with any model. Nix Workflow is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Nix Workflow in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/olafkfreund/nix-skills/tree/main/skills/nix-workflow. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Nix Workflow?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Nix Workflow?

As many as you like. As long as a model supports skills, you can use Nix Workflow with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Nix Workflow AI skill free?

Yes. It is published on GitHub by olafkfreund under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇