nix-fast-build

nix-fast-build is a skill for Claude Code from ncaq/konoka. It costs 35 tokens per session (1,970 once invoked), scanned A, original, Apache-2.0.

A guide for using nix-fast-build, a tool that evaluates Nix expressions in parallel and shows build progress. Nix expressions describe packages, system configurations, tests, and other reproducible results.

In plain words
What is it for?
Use it to run Nix flake checks, builds, lints, and tests, including in automated environments such as CI, and to limit evaluation to a suitable system when needed.
Why use it?
It can make evaluation faster than the standard flake check when many checks are involved, while documenting conditions that can cause evaluation errors.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Part of the nix-tasuke plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to run Nix flake checks, builds, lints, and tests, including in automated environments such as CI, and to limit evaluation to a suitable system when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ncaq/konoka/nix-fast-build
View source ↗ ncaq/konoka
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ncaq/konoka --skill nix-fast-build
Clone the repo
git clone --depth 1 https://github.com/ncaq/konoka

Made for: Claude Code.

Or install nix-tasuke, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nix-fast-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/ncaq/konoka/nix-fast-build/github.svg)](https://agentmods.dev/skills/ncaq/konoka/nix-fast-build)
Your own site
<a href="https://agentmods.dev/skills/ncaq/konoka/nix-fast-build"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/nix-fast-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nix-fast-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/ncaq/konoka/nix-fast-build"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/nix-fast-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01970
Opus 5 $0.00017 $0.00985
Sonnet 5 $0.00007 $0.00394
Haiku 4.5 $0.00003 $0.00197

Measured 11d ago against content hash 471e18575b04, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

nix-fast-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/nix-tasuke/skills/nix-fast-build/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

nix-fast-build

Mic92/nix-fast-buildnix-eval-jobsnix-output-monitorを組み合わせて、 Nix式の評価を並列実行するツールです。

checksがビルドされるため、 適切にflake.nixで設定されていればリント・ビルド・テストが全て実行されます。

nix flake checkと比べて評価が並列化されるため高速です。

FlakeはGitで追跡されているファイルのみを対象とするため、 新規ファイルがある場合は事前にgit ls-files --others --exclude-standard -z | git add --intent-to-add --pathspec-from-file=- --pathspec-file-nulを実行してください。 未追跡ファイルがなく空の入力でもエラーにはなりません。

典型的な使い方

手元のターミナルで実行する場合

nix-fast-build --option eval-cache false --no-link --skip-cached

nomによるリッチな出力が表示されます。

Claude CodeやCIなど非対話環境で実行する場合

nix-fast-build --option eval-cache false --no-link --skip-cached --no-nom

nomはターミナル制御シーケンスに依存するため、 非対話環境では--no-nomを追加してください。

IFDを使うプロジェクトでの注意

nix-fast-buildは--systemsでビルド対象を絞っても、 評価は全アーキテクチャに対して行います。 IFD(Import From Derivation)は評価フェーズでderivationのビルドを要求するため、 ローカルでビルドできないアーキテクチャのIFDが走ってエラーになることがあります。

nix flake checkはNix 2.16以降デフォルトで他システムの評価をスキップするためこの問題が出にくいですが、 nix-eval-jobsにはその仕組みがありません。

回避策: Flake URLでシステムを限定する

評価対象を現在のシステムに限定することで回避できます。

nix-fast-build --flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)" --no-link --skip-cached

--impureが必要ですが、 builtins.currentSystemを取得するだけなので実害はありません。

オプション

nix-fast-build --helpの順番に記載しています。

-f, --flake FLAKE

評価・ビルド対象のFlake URLを指定します。 デフォルトは.#checksで、通常はそのままで問題ありません。

-j, --max-jobs MAX_JOBS

同時に実行するビルドジョブの最大数です。 0を指定すると無制限になります。 基本的にデフォルトで問題ありません。

これはNixデーモンのmax-jobsとは別の制御です。 nix-fast-buildがビルドキューから同時にディスパッチするジョブ数を制限します。

--option name value

Nixの設定オプションを指定します。 nix build --optionと同じ形式です。

--option eval-cache false

よく使う例です。 評価キャッシュを無効化します。

評価キャッシュはSQLiteで管理されており、 並列評価時にビジー状態の警告が出ることがあります。 煩わしい場合は無効化してください。

--remote-ssh-option name value

リモートマシンへのSSH接続オプションを指定します。

--cachix-cache CACHIX_CACHE

アップロード先のCachixキャッシュ名を指定します。

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 35 tokens per session scan A 471e18575b04

Subscribe to this mod's changes

nix-fast-build is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed today), licensed Apache-2.0. It adds 35 tokens to every session and 1,970 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.