justfile-skill
Skill0 starsChanged 9 months agoMITView on GitHub
Create, edit, and maintain justfiles using the `just` command runner. Use this skill whenever the user mentions justfiles, just recipes, just command runner, or wants to migrate from Makefile/make to just. Also trigger when the user has a justfile in their project and asks about running, organizing, or documenting project commands. Covers migration from make, recipe design, variable patterns, dotenv integration, and cross-platform support.
- Pipes a download into a shell
- Reads credentials
- Installs packages
In this repository97 other files it gives its agents.
- skills/obsidian-second-brain-skill/templates/CLAUDE.mdCLAUDE.md
- 1passwordSkill
- alz-accelerator-skillSkill
- ArgocdAppInstallSkill
- argocd-applicationset-skillSkill
- ArgocdClusterBootstrappingSkill
- argocd-cluster-bootstrappingSkill
- ArgoCdCommandSkill
- ArgocdImageUpdaterSkill
- argocd-image-updaterSkill
- ArgoCDReviewSkill
- argocd-cliSkill
- ArgoRolloutsSkill
- atuinSkill
- az-aks-agentSkill
- aztfexport-skillSkill
- azure-ad-ssoSkill
- azure-devops-skillSkill
- azure-devops-wikiSkill
- AzureFinOpsSkill
- BmadOrchestrateSkill
- cloudflare-dnsSkill
- commit-skillSkill
- consulting-designSkill
- Context7Skill
- defectdojoSkill
- dependency-track-skillSkill
- direnvSkill
- external-dnsSkill
- external-urlsSkill
- GithubPagesSkill
- gitops-principles-skillSkill
- git-advanced-workflowsSkill
- git-advanced-workflowsSkill
- git-worktreeSkill
- grafana-skillSkill
- holmesgpt-skillSkill
- Iterm2Skill
- json-canvasSkill
- k8s-clustersSkill
- k8s-timezone-configSkill
- kargo-skillSkill
- keyvault-csi-driverSkill
- knativeSkill
- lokiSkill
- looking-up-docsSkill
- macos-cleanerSkill
- macos-setupSkill
- managing-infraSkill
- markitdown-skillSkill
- merge-and-cleanup-skillSkill
- mimirSkill
- mkdocsSkill
- neovimSkill
- NotebookLMSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- obsidian-master-skillSkill
- obsidian-nvimSkill
- obsidian-second-brainSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
Place settings at the top of the justfile:
- Distinctive: line 146
When a recipe needs to run as a single script rather than line-by-line:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Just Command Runner Skill
just is a command runner (not a build system) that saves and runs project-specific commands
in a file called justfile. It uses make-inspired syntax but is simpler, more portable, and
avoids make's idiosyncrasies like .PHONY, tab sensitivity issues, and implicit rules.
When to Use Just vs Make
| Scenario | Tool |
| Project task automation (build, test, deploy, lint) | just |
| Actual file-based build dependencies (compile .c to .o) | make |
| Cross-platform command runner | just |
| Legacy projects already deep in make | make (or migrate) |
Core Concepts
Recipe = Target
Recipes are the core unit. Each recipe is a named set of commands:
recipe-name:
command1
command2- Indentation MUST be consistent (spaces or tabs, but pick one —
set ignore-commentshelps) - Each line runs in a separate shell by default (use
set shellor shebang recipes for multi-line scripts) - No
.PHONYneeded — just doesn't track file timestamps
Variables
# Assignment
version := "1.0.0"
# Backtick evaluation (runs command, captures stdout)
git_hash := `git rev-parse --short HEAD`
# Environment variable access
home := env('HOME')
# Export to recipe commands
export DATABASE_URL := "postgres://localhost/mydb"Settings Block
Place settings at the top of the justfile:
set dotenv-load # Load .env file
set positional-arguments # Pass recipe args as $1, $2, etc.
set shell := ["bash", "-euco", "pipefail"] # Fail-fast shell
set export # Export all variables as env vars
set quiet # Suppress command echoing (like @ in make)Recipe Arguments
# Required argument
deploy target:
echo "Deploying to {{target}}"
# Default value
greet name="World":
echo "Hello {{name}}"
# Variadic (one or more)
test +targets:
go test {{targets}}
# Variadic (zero or more)
lint *flags:
eslint {{flags}} src/Dependencies
# Run 'build' before 'test'
test: build
cargo test
# Pass arguments to dependencies
push: (deploy "production")
# Multiple dependencies
all: clean build test lintConditional Logic
# Ternary-style conditional
rust_target := if os() == "macos" { "aarch64-apple-darwin" } else { "x86_64-unknown-linux-gnu" }
# In recipes
check:
if [ -f .env ]; then echo "Found .env"; fiPlatform-Specific Recipes
[linux]
install:
sudo apt install ripgrep
[macos]
install:
brew install ripgrep
[windows]
install:
choco install ripgrepRecipe Attributes
[private] # Hidden from --list
[no-cd] # Don't cd to justfile directory
[confirm] # Ask confirmation before running
[confirm("Deploy to production?")]
[no-exit-message] # Suppress error message on failure
[group("deploy")] # Group in --list output
[doc("Run the full test suite")] # Custom doc stringShebang Recipes (Multi-line Scripts)
When a recipe needs to run as a single script rather than line-by-line:
process-data:
#!/usr/bin/env python3
import json
with open("data.json") as f:
data = json.load(f)
print(f"Found {len(data)} records")Self-Documenting Help
# The default recipe — runs when you type `just` with no args
[private]
default:
@just --list --unsortedComments above recipes become descriptions in just --list:
# Initialize Terraform with backend config
init:
terraform initImports and Modules
# Import another justfile
import 'ci.just'
# Module (namespaced)
mod deploy 'deploy.just'
# Usage: just deploy::productionReferences
- references/justfile-patterns.md — Common justfile patterns by project type
- references/make-migration.md — Makefile-to-justfile migration guide
Useful Functions
| Function | Purpose |
os() | Current OS (linux, macos, windows) |
arch() | CPU architecture (x86_64, aarch64) |
env('KEY') | Get environment variable (aborts if missing) |
env('KEY', 'default') | Get env var with fallback |
invocation_directory() | Directory where just was called from |
justfile_directory() | Directory containing the justfile |
join(a, b) | Join path components |
parent_directory(path) | Parent of path |
file_name(path) | Filename component |
without_extension(path) | Remove file extension |
uppercase(s) | Uppercase string |
lowercase(s) | Lowercase string |
replace(s, from, to) | String replacement |
trim(s) | Trim whitespace |
quote(s) | Shell-quote a string |
sha256_file(path) | SHA-256 hash of file |
shell(cmd, args...) | Execute command, capture output |
Installation
# macOS
brew install just
# Cargo
cargo install just
# Pre-built binaries
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
# Shell completions
just --completions zsh > ~/.zsh/completions/_just
just --completions bash > /etc/bash_completion.d/justDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

