knowledge-forge-ai/agentic-praxis-grimoire/nix-language-profile
Claude Code and agent skill by knowledge-forge-ai/agentic-praxis-grimoire
- community
Checking that the SKILL.md file is still in the repository.
Use when Nix-specific judgment is material to expressions, attribute sets, modules, derivations, flakes, overlays, purity, evaluation, store exposure, activation, remote builders, or warning and crisis thresholds beyond repository policy.
Install
npx vskill@latest install knowledge-forge-ai/agentic-praxis-grimoire/nix-language-profileSKILL.md
The same SKILL.md was published earlier as knowledge-forge-ai/agentic-praxis-grimoire/nix-language-profile.
Nix Language Profile
Core principle
Apply Nix-specific judgment only when it is material. Establish the supported Nix, NixOS, and Nixpkgs versions; repository and deployment policy; artifact ownership; evaluation and build boundaries; protected-data policy; target platforms; and task authority before recommending a construct or response. Use the highest justified Green — routine, Yellow — caution, Orange — warning, or Red — crisis / stop response for one coherent current decision.
Keep expression structure, merge semantics, dependency ownership, evaluation, build, store, activation, and rollback authority separate. Static inspection can warn about proposed growth and semantic risk; it cannot establish an evaluation result, derivation closure, build success, activation behavior, or runtime safety. This provisional profile classifies and recommends and does not grant evaluation, fetch, build, store, activation, or destructive authority.
Do not use
Do not use this profile for:
- a comment, typo, formatting-only edit, or mechanical rename with no material
Nix-specific judgment;
- generic design, planning, implementation, debugging, or review procedure;
- selecting a Nix, NixOS, or Nixpkgs version, formatter, analyzer, module
system, package source, deployment model, or host policy;
- authorizing expression evaluation, dependency fetch, a build, store
inspection or mutation, garbage collection, activation, system switch, remote builder, or destructive action;
- automatically rewriting generated lock files, machine-produced expressions,
historical artifacts, or existing Red owners;
- treating a hash or locked revision as proof of source trust, provenance,
licensing, compatibility, or review; or
- inferring reachable attribute names, derivation contents, store paths,
closure size, build behavior, or activation effects by executing target Nix.
Procedure
- Establish task authority, repository instructions, supported Nix, NixOS,
and Nixpkgs versions, platform matrix, evaluation and build policy, flake or channel ownership, module and overlay ownership, protected-data boundary, activation targets, rollback, and destructive-action limits.
- Classify each artifact as maintained expression, module, package,
derivation, overlay, flake, lock, test, legacy, generated, vendored, machine-produced, or other derived material. Classification never suppresses semantic Red.
- Use the repository's configured static Nix parser or analyzer when present
and record its name, version, settings, and supported syntax. Otherwise use the bounded lexical rules below. Do not evaluate an expression, fetch an input, inspect the store, or run a build to obtain a structural count.
- Measure current and projected owners separately across supported static
configurations. Use the maximum established value and report computed or conditional branches incomplete when their complete structure cannot be bounded statically.
- Assign the highest justified response. Three materially coupled Yellow signals
normally justify Orange. Two materially coupled Orange signals over one owner are presumptively Red unless accepted cohesive evidence supports Orange. One Red signal remains Red. Correlated size, breadth, dependency, output, shell, and responsibility measures are not independent escalation evidence.
- Proceed proportionally for Green; inspect policy and evidence for Yellow;
require an explicit local decision, bounded source and target, compatibility evidence, rollback, and focused validation for Orange; stop Red growth or unsafe behavior pending decomposition, an accepted bounded exception, or governing authority.
- Inspect merge precedence, recursion, fixed points, module priorities,
impurity, import-from-derivation, fetch and lock behavior, string context, derivation and store exposure, embedded shell interpretation, activation, remote trust, and destructive operations independently of structure.
- Pair separately with the applicable process capability.
implementing-with-test-discipline may remain primary for an authorized behavior change; reviewing-and-verifying-repository-work may remain primary for acceptance review. This profile supplies Nix judgment without silently invoking either.
- Preserve stricter project policy. Relax only a profile default through an
accepted scoped rationale, evidence, validation, growth limit, and rollback; never relax superior reproducibility, supply-chain, security, privacy, integrity, activation, destructive-action, or authority stops.
- Report the level, structural and semantic signals, artifact class, version
and parser basis, known and unknown evaluation or runtime facts, required response, focused validation, and rollback or decomposition boundary.
Structural threshold contract
These defaults apply mainly to proposed growth in maintained hand-written Nix expressions. They are review signals, not evaluation, build, closure, runtime, or activation claims.
| Signal | Green — routine | Yellow — caution | Orange — warning | Red — crisis / stop | |
|---|---|---|---|---|---|
| File physical lines | <= 200 | 201–350 | 351–500 | >= 501 | |
| Function formals | <= 6 | 7–12 | 13–20 | >= 21 | |
Direct let bindings | <= 8 | 9–16 | 17–28 | >= 29 | |
| Direct attribute-set breadth | <= 12 | 13–24 | 25–40 | >= 41 | |
| Attribute-definition depth | <= 3 | 4 | 5–6 | >= 7 | |
| Direct imports | <= 5 | 6–10 | 11–18 | >= 19 | |
| Module option leaf paths | <= 8 | 9–16 | 17–28 | >= 29 | |
| Merge/override mechanism families | <= 1 | 2 | 3 | >= 4 | |
| Direct derivation attributes | <= 15 | 16–25 | 26–40 | >= 41 | |
| Direct flake inputs | <= 6 | 7–12 | 13–20 | >= 21 | |
| Direct derivation input dependencies | <= 10 | 11–20 | 21–35 | >= 36 | |
| Direct outputs | <= 2 | 3–4 | 5–7 | >= 8 | |
| Embedded shell physical lines | <= 20 | 21–40 | 41–80 | >= 81 | |
| Independent responsibility families | 1 | 2 | 3 | >= 4 |
Count physical lines after universal-newline decoding; blanks, comments, multiline strings, embedded shell, and a final non-empty unterminated segment count. Record generated sections separately rather than silently excluding them.
Count formals per callable boundary. An identifier lambda contributes one formal. A set pattern counts each named formal once; a default does not add a second formal, ellipsis is not a formal, and a whole-set alias does not duplicate the set-pattern count. Curried functions remain separate callable boundaries rather than being flattened into one ambiguous total.
Count direct let bindings by names introduced in the selected lexical owner. Count direct attribute breadth from assignment and inherit names. A dotted path contributes its direct first segment once, and repeated first segments do not inflate breadth; measure path depth separately. Computed names whose possible set cannot be established statically make the breadth incomplete rather than authorizing evaluation.
Count direct imports under the repository's static import definition. Count module option leaves by distinct declared or assigned option leaf paths in the owner, with repeated path prefixes contributing only to depth. Count direct derivation attributes, direct flake inputs, direct declared derivation input dependencies, and direct outputs once per name in each supported static configuration. Do not union mutually exclusive configurations; use the maximum established current or projected value and identify its configuration.
Count embedded shell physical lines separately inside maintained multiline command payloads. Structural shell size does not prove quoting, interpretation, environment, or lifecycle safety; pair the Bash or Zsh profile only when that language is independently material.
Merge/override mechanism breadth counts independently changeable semantic families, not occurrences or helper names:
- shallow attribute-set update such as
//ormergeAttrsList; - generated-name or collision aggregation such as
listToAttrs,genAttrs',
concatMapAttrs, or zipAttrsWith;
- recursive or path update such as
recursiveUpdate; - fixed-point, package override, or overlay behavior; and
- module-type merge, definition priority, or ordering behavior.
Repeated occurrences of one family count once structurally. Helpers with materially different precedence remain semantically distinct even when their structural family is shared. Structural breadth and semantic merge risk are independent axes.
Responsibilities are independently changeable evaluation, dependency, packaging, module, compatibility, deployment, security, data, platform, or recovery concerns rather than steps in one cohesive result. Disclose correlated measures instead of stacking them automatically.
Classification and proportional exceptions
Generated locks, machine-produced expressions, vendored material, fixtures, snapshots, and historical configuration retain their producer and historical ownership. Do not hand-refactor or normalize them solely because they exceed a threshold. Review the producing workflow, update scope, reproducibility, consumer compatibility, protected-data exposure, and rollback.
An existing Red legacy artifact may receive the smallest safe fix when current authority permits it, the change adds no independent responsibility, and it avoids meaningful growth. Record the preserved boundary. New responsibility or major feature growth remains Red. A cohesive generated or data-driven artifact can change only a line-count response through an accepted bounded exception; semantic Red remains Red.
Semantic merge and override contract
Determine possible names, input owners and layers, collision behavior, precedence, shallow or recursive depth, consumers, compatibility, protected invariants, rollback, and focused validation separately from family count. A structurally Green merge-family count cannot downgrade an Orange or Red semantic merge response.
| Semantic case | Response | |
|---|---|---|
| Literal, statically disjoint local shallow update with unchanged ownership | Green, or Yellow when local compatibility evidence remains material | |
| Known local collision with deliberate documented precedence and reviewed compatibility | Yellow; Orange when public compatibility, shared ownership, migration, or rollback is consequential | |
| Closed computed-name merge that materially affects collision, precedence, ownership, or consumers | Orange | |
| Open or insufficiently bounded names, collisions, owners, or consumers | Orange pending evidence when consequences remain bounded; Red when an invariant can be bypassed or safe behavior cannot be established | |
| Recursive, repeated-layer, fixed-point, overlay, or module-priority merge | Orange; Red for unresolved recursion, uncontrolled collision, unsafe priority, or invariant bypass | |
| Security, integrity, reproducibility, trust, or ownership invariant-bypassing priority override | Red |
The shallow // operator is right-biased on duplicate names. builtins.listToAttrs keeps the first duplicate, while mergeAttrsList keeps the later duplicate. recursiveUpdate descends while both values are sets and then uses the right leaf. zipAttrsWith delegates collision reconciliation to its supplied function. Overlay ordering changes a package-set fixed point and does not recursively merge nested values merely by composition. NixOS option types own definition merging; the lowest numeric override priority survives, while ordering priority affects order rather than inclusion.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nix-language-profile/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/knowledge-forge-ai/agentic-praxis-grimoire/nix-language-profile)