CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

nix-best-practices

Nix patterns for flakes, overlays, unfree handling, and binary overlays. Use when working with flake.nix or shell.nix.

1.59x
Quality

82%

Does it follow best practices?

Impact

91%

1.59x

Average score across 3 eval scenarios

SecuritybySnyk

—

The risk profile of this skill

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly actionable, code-first reference with complete executable templates and a useful troubleshooting section providing error-recovery loops. Its weaknesses are repetition between main sections and Troubleshooting, and a monolithic single-file structure where the large binary-overlay template could live in a separate reference file.

Suggestions

Move the full binary-overlay flake template and expanded troubleshooting entries into a references/ file (e.g. references/binary-overlay.md, references/troubleshooting.md), keeping brief pointers in SKILL.md so the main file works as an overview.

De-duplicate guidance stated twice: the 'list all inputs in the outputs function' rule and the unfree-with-nix-develop workaround each appear in a main section and again in Troubleshooting — state each once and cross-reference it.

Sequence the binary-overlay creation flow explicitly with a validation checkpoint (e.g. end with 'run nix flake check to verify the new flake') to close the workflow-clarity gap.

DimensionReasoningScore

Conciseness

The body is code-heavy with almost no explanation of concepts Claude already knows, but contains redundant passages: "All inputs must be listed in outputs function even if not directly used" repeats in Troubleshooting ("All inputs must be listed in outputs function"), and unfree-with-nix-develop guidance appears both in the Unfree section and again in Troubleshooting. This repetition keeps it below the lean 5 anchor.

4 / 5

Actionability

Nearly everything is copy-paste ready: a complete flake.nix template, follows-chaining snippets, an allowUnfreePredicate example, a full binary-overlay flake with per-platform sources and meta, hash-acquisition commands ("nix-prefetch-url", "nix hash to-sri --type sha256"), and a concrete command catalog covering the common cases. Placeholders like { ... } and <command> are standard fill-ins, not gaps.

5 / 5

Workflow Clarity

Sections are logically ordered by task and the Troubleshooting section provides genuine error-recovery loops ("Hash Mismatch: Re-fetch with nix-prefetch-url and update the hash"; unfree errors with 3 ranked fixes). It falls short of 5 because the multi-step binary-overlay creation flow is not explicitly sequenced with a verify step such as running "nix flake check" after writing the flake.

4 / 5

Progressive Disclosure

This is a single ~345-line file with no bundle files and no external references; section headers are clear, but the ~75-line binary-overlay template and the troubleshooting catalog are inline content that could be split into a references/ file so SKILL.md acts as an overview. This matches the 3 anchor ("could be better organized; content that should be separate is inline") rather than 4, since the split opportunity is more than minor at this size.

3 / 5

Total

16

/

20

Passed

Description

78%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it names a specific niche, enumerates concrete topic areas, and includes an explicit 'Use when' trigger with concrete file names. The main gap is that the 'what' states topics rather than actions and could mention additional natural terms like 'nixpkgs' or 'dev shell'.

DimensionReasoningScore

Specificity

"Nix patterns for flakes, overlays, unfree handling, and binary overlays" lists several specific, concrete topic areas rather than vague language. It falls short of 5 because it names topics rather than actions and omits body-covered areas like dev shells, direnv, and troubleshooting.

4 / 5

Completeness

Both parts are present: the "what" ("Nix patterns for flakes, overlays, unfree handling, and binary overlays") and an explicit "when" clause ("Use when working with flake.nix or shell.nix") with concrete trigger files. The "what" is topical rather than action-stated, so it does not clearly match the 5 anchor.

4 / 5

Trigger Term Quality

"Use when working with flake.nix or shell.nix" plus terms like "flakes", "overlays", and "unfree" give good natural keyword coverage including file names. It misses common variations such as "nixpkgs", "dev shell", "nix develop", and "NixOS", keeping it below the comprehensive 5 anchor.

4 / 5

Distinctiveness Conflict Risk

"Nix patterns for flakes, overlays, unfree handling, and binary overlays. Use when working with flake.nix or shell.nix." occupies a clear Nix niche with distinct file-name triggers, making conflict with other skills minimal.

5 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

NeverSight/learn-skills.dev

Path

data/skills-md/0xbigboss/claude-code/nix-best-practices/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.