srid/emanote / .agents/skills/nix-justfile
nix-justfile
VerifiedConventions for writing justfile recipes in Nix-based projects.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 691 B |
SKILL.md
View on GitHub---
name: nix-justfile
description: Conventions for writing justfile recipes in Nix-based projects.
user-invocable: false
---
# 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
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |