Index of every page on this site: llms.txt
All skills
devon-systems avatar
by Devon Systemsdevon-systems/hoenn250 stars
3
Run it yourself

Use Nix over apt, dnf, or brew for installing packages, adding tools, dev environments, and missing binaries when nix is available.

  • 11 files
  • 14.8 KB
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/devon-systems/hoenn/nix

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈34 tokens for metadata: the name and description. ≈926 when used: this file. ≈987 more on demand in 6 files.

Description uses 1.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈137 characters, or 1.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Nix

Nix provides the runtime and toolchain. Language PMs (npm, pip, cargo) manage project-level deps inside that shell.

Detection

scripts/nix-detect
# Output keys: nix_available, flakes_enabled, is_nixos, is_flake_project, flake_path
# → {"nix_available":true,"flakes_enabled":true,"is_nixos":false,"is_flake_project":false,"flake_path":""}

Manual: command -v nix, nix flake --help >/dev/null 2>&1, test -f /etc/NIXOS, nix flake metadata 2>/dev/null. If flakes are off, pass --extra-experimental-features 'nix-command flakes'.

How to Run a Package

Default: scripts/nix-ensure <tool> [args] — checks PATH first, fetches via Nix if missing. Use this for any standalone tool.

When nix-ensure doesn't apply (flake dev shells, chaining language PMs):

Scenario Command
Flake dev → build nix develop -c just build
Flake dev → test nix develop -c npm test
No flake, need npm nix shell nixpkgs#nodejs -c 'npm ci && npm test'
No flake, need pip nix shell nixpkgs#python3 -c 'pip install -r requirements.txt'

The -c Rule

Every agent nix shell or nix develop call MUST include -c <command>, or it hangs waiting for input.

❌ Wrong ✅ Right
nix shell nixpkgs#jq then jq . file nix shell nixpkgs#jq -c 'jq . file'
nix develop then npm test nix develop -c npm test

Banned → Replacement

❌ ✅
nix-shell -p pkg nix shell nixpkgs#pkg
nix-env -i pkg nix profile install nixpkgs#pkg
nix-build nix build
sudo apt-get install pkg nix shell nixpkgs#pkg
brew install pkg nix shell nixpkgs#pkg
pip install pkg (global) nix shell nixpkgs#python3Packages.pkg
npm install -g pkg nix shell nixpkgs#nodePackages.pkg
cargo install pkg nix shell nixpkgs#pkg
curl ... | sh nix shell nixpkgs#pkg

Package names

Most tools and runtimes are the obvious nixpkgs#<name> (jq, ripgrep, python3, nodejs, go). Rust needs both nixpkgs#cargo and nixpkgs#rustc.

Tricky names (package name differs from the binary, so use nix-ensure -p <pkg> <bin>): delta→git-delta, yq→yq-go, watch→procps, awscli→awscli2.

Missing from nixpkgs?

  1. Try broader search: nix search nixpkgs name
  2. Try vendor flake: nix run github:vendor/project
  3. Try unstable: nix shell github:NixOS/nixpkgs/nixos-unstable#pkg
  4. Last resort: language PM inside nix shell nixpkgs#python3

Never curl | sh.

Helpers

All in scripts/ relative to this skill.

scripts/nix-detect          # JSON env classification
scripts/nix-ensure jq . f   # run jq, fetch via nix if missing
scripts/nix-ensure -p git-delta delta f   # pkg name ≠ binary name
scripts/nix-verify          # smoke test nix setup

Flake & Project

Flake init and update, direnv, and permanent installs: see references/flake.md. Agent calls still need -c.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 52b1f68. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago

README badge

README badge for devon-systems/hoenn/nix