nix-justfile

Conventions for writing justfile recipes in Nix-based projects.

8 stars

Best use case

nix-justfile is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Conventions for writing justfile recipes in Nix-based projects.

Teams using nix-justfile should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nix-justfile/SKILL.md --create-dirs "https://raw.githubusercontent.com/juspay/AI/main/.claude/skills/nix-justfile/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nix-justfile/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nix-justfile Compares

Feature / Agentnix-justfileStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Conventions for writing justfile recipes in Nix-based projects.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Justfile in Nix projects

## Doc comments

Every recipe must have a doc comment (`#` line above the recipe name).

## Devshell detection

Use a `nix_shell` variable to auto-detect whether we're inside `nix develop`:

```just
nix_shell := if env('IN_NIX_SHELL', '') != '' { '' } else { 'nix develop -c' }
```

Prefix commands that need devshell tools (node, trunk, cargo-watch, etc.) with `{{nix_shell}}`. Recipes that invoke `nix` directly (build, run, flake commands) don't need it.

## Legibility

Long chained commands should use multiline `\` continuations.

Related Skills

vhs

8
from juspay/AI

Techniques for creating deterministic terminal demo screencasts with VHS

programming-essay

8
from juspay/AI

Write a programming essay or blog post in the voice of the canon — Spolsky, Yegge, Graham, Mickens, Dijkstra, Brooks, Nystrom, Kleppmann, patio11. Invoke when the user wants to argue an idea about software, architecture, languages, or the craft — not a debugging war story (use debugging-story for that), not a tutorial, not a release note. The audience is working developers worldwide with taste and strong opinions of their own.

nix-typescript

8
from juspay/AI

pnpm + Nix build conventions. Covers fetchPnpmDeps hash management and dependency workflow.

nix-rust-leptos

8
from juspay/AI

Conventions for building Leptos CSR apps with Nix (crane + Trunk).

nix-health

8
from juspay/AI

Use this when diagnosing or fixing a user's Nix installation — checks flakes, version, caches, max-jobs, direnv, rosetta, trusted-users, and shell config

nix-haskell

8
from juspay/AI

Use this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration.

nix-flake

8
from juspay/AI

Use this when writing or editing a flake.nix. Covers flake-parts, perSystem, formatter, shell scripts, and package conventions.

nix-ci

8
from juspay/AI

Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project

frontend-design

8
from juspay/AI

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

cargo-watch

8
from juspay/AI

Run cargo-watch in the background for continuous clippy feedback during code editing.

justfile-author

13
from NickCrew/Claude-Cortex

Use this skill when authoring or refactoring a justfile (and matching Makefile wrapper) for one of Nick's projects. Triggers when the user asks to "create a justfile", "add a justfile to this project", "set up just for…", "wire up tmux services", "scaffold the task runner", or when working in a repo that lacks a justfile but obviously needs one. Produces a justfile using zsh syntax with the standard svc-* tmux service family, the canonical build/lint/dev/test recipes, a thin Makefile passthrough wrapper that auto-installs just, and per-service tx-start.sh helpers. Do NOT use for editing existing third-party justfiles or non-Nick projects unless the user explicitly opts in.

swe-cli-skills

12
from SylphAI-Inc/skills

Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms

DevOps & Infrastructure