nix-fast-build

nix-fast-build is a skill for Claude Code from ncaq/konoka. It costs 35 tokens per session (1,336 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,336 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.01336
Opus 5.5 $0.00014 $0.00534
Sonnet 5.5 $0.00007 $0.00267
Haiku 4.5 $0.00003 $0.00134

Measured yesterday against content hash be41e79174a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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 · 91 lines

How it starts

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

nix-fast-build

Mic92/nix-fast-buildは、 nix-eval-jobsと nix-output-monitor(nom)を組み合わせて、 Nix式の評価を並列に実行してビルドするツールです。 デフォルトではFlakeのchecksをビルドするので、 flake.nixが適切に設定されていれば、リントとビルドとテストが全て実行されます。 評価が並列化されるのでnix flake checkより高速です。

実行方法

手元のターミナルでは以下で実行します。

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

Claude CodeやCIのような非対話環境では--no-nomを追加します。

nix-fast-build --option eval-cache false --no-link --skip-cached --no-nom
  • --option eval-cache false: 評価キャッシュを無効にします。 評価キャッシュはSQLiteで管理されていて、 並列に評価するとビジー状態の警告が出て煩わしいことがあるためです。
  • --no-link: resultシンボリックリンクを作りません。 checksをビルドすると大量のシンボリックリンクが作られて煩わしいためです。 省かれるのはリンクの作成だけで、ビルドは実行されます。
  • --skip-cached: バイナリキャッシュ(substituter)に既にあるビルドをスキップします。 ローカルのストアにあるかどうかを調べるオプションではありません。
  • --no-nom: nomによるビルド出力の表示を無効にします。 nomはターミナルの制御シーケンスを使ったリッチな出力をするので、 CIのログ、パイプ、非対話シェルのようなターミナルではない環境では表示が崩れます。

新規ファイルがある場合

FlakeはGitで追跡されているファイルだけを対象にします。 新規ファイルがある場合は、nix-fast-buildを実行する前に以下のコマンドで追跡対象にしてください。 未追跡のファイルが無く入力が空でも、このコマンドはエラーになりません。

git ls-files --others --exclude-standard -z | git add --intent-to-add --pathspec-from-file=- --pathspec-file-nul

IFDを使うプロジェクト

--systemsはビルド対象を絞るだけで、評価は全てのアーキテクチャに対して行われます。 IFD(Import From Derivation)は評価の段階でderivationのビルドを要求するので、 ローカルでビルドできないアーキテクチャのIFDが走ってエラーになることがあります。 nix flake checkはNix 2.16以降、 デフォルトで他のシステムの評価をスキップするのでこの問題が出にくいですが、 nix-eval-jobsにはその仕組みがありません。

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

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

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

その他のオプション

以下のオプションを含め、基本的にデフォルトのままで問題ありません。

  • -j, --max-jobs: nix-fast-buildがビルドキューから同時にディスパッチするジョブ数の上限です。 Nixデーモンのmax-jobsとは別の制御です。
  • --systems: ビルド対象のシステムを、スペース区切りの1つの引数で指定します。 デフォルトは現在のシステムです。 例: --systems "x86_64-linux aarch64-linux"
  • --remote: 指定したSSHホストで評価とビルドを行い、結果をローカルに転送します。 リモートマシンがソースリポジトリにアクセスできない場合は--always-upload-sourceを付けます。 CIでリモートビルドしてキャッシュにアップロードするだけの場合は、--no-downloadで転送を省きます。
  • --eval-max-memory-size: nix-eval-jobsの評価ワーカー1つあたりのメモリ上限(MiB)です。 上限に達したワーカーは再起動されます。 大きなFlakeで評価中にOOMが発生する場合に調整します。
  • --result-file, --result-format: ビルド結果をファイルに書き出します。 CIでテスト結果として扱う場合は--result-format junitが便利です。

Read the full file on GitHub · 91 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. yesterday Changed · -125 lines be41e79174a0
  2. 3mo 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 yesterday), licensed Apache-2.0. It adds 35 tokens to every session and 1,336 once invoked, about $0.0001 per session on Opus 5.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.

Related

nix-fast-build compared with skills from other repositories

nix-fast-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nix-fast-buildncaq/konokaSkill3yesterdayApache-2.0A35Claude Code
github-project-automationsecondsky/claude-skillsSkill257todayMITA45Claude Code
hono-routingsecondsky/claude-skillsSkill257todayMITA41Claude Code
api-testingsecondsky/claude-skillsSkill257todayMITA39Claude Code
bun-http-serversecondsky/claude-skillsSkill257todayMITA31Claude Code
bun-jest-migrationsecondsky/claude-skillsSkill257todayMITA25Claude Code
cloudflare-workers-migrationsecondsky/claude-skillsSkill257todayMITA49Claude Code