justfile-authoring
Justfile Authoring
Follow existing conventions
- Locate the nearest
justfileor.justfileto the working directory and edit in place. - Preserve naming style, indentation, and grouping conventions.
- Keep diffs minimal; avoid renaming recipes unless requested.
Edit workflow
- Read the existing
justfiletop to bottom; notesetdirectives, variables, aliases, and groups. - Add or update recipes using the same structure and indentation.
- Ensure dependencies and parameters are correct and consistent.
- If a recipe should be hidden from listings, mark it private or prefix with
_.
Syntax essentials
-
Recipe:
build target="app": clean cargo build --release --bin {{target}} -
Dependencies: run before the recipe body; parameterized deps are wrapped in parentheses.
rebuild: clean build build arch: (clean arch) cargo build --target {{arch}} -
Parameters: defaults supported; variadics use
*(zero or more) or+(one or more).test suite="all": cargo test --tests {{suite}} backup *files: tar czf backup.tar.gz {{files}} -
Exported parameters: prefix with
$to pass as environment variables.test-with-env $TEST_MODE: echo "$TEST_MODE" -
Variables and interpolation:
app := "myapp" build: echo "{{app}}" -
Default recipe: place first if you want it to run with
just.default: @just --list
Settings
Use set to configure behavior globally.
set dotenv-load := true
set shell := ["bash", "-eo", "pipefail", "-c"]
set working-directory := "ios"
Attributes and helpers
Common attributes:
[group('name')]or[group: 'name']to categorize recipes in listings.[working-directory('path')]to override the cwd for one recipe.[private]to hide a recipe or alias fromjust --list.[doc('description')]to control list output text.[confirm('prompt')]to request confirmation.[linux],[macos],[windows]for platform-specific recipes.[no-cd]to run in the invoking directory instead of the justfile directory.[positional-arguments]for positional-argument recipes.
Aliases:
alias b := build
Shebang recipes
For multi-line scripts, start the body with a shebang.
release:
#!/usr/bin/env bash
set -euo pipefail
./scripts/release.sh
Editing checklist
- Keep indentation consistent (spaces or tabs, not both, within a recipe).
- Use
@on a line (or@before the recipe name) to suppress command echoing. - Prefer
groupanddocattributes for clarity injust --list. - Avoid unused variables, aliases, or recipes.
- For repo-specific paths, anchor to the existing
working-directoryconventions.
More from derklinke/codex-config
copywriting
When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," or "CTA copy." For email copy, see email-sequence. For popup copy, see popup-cro.
26supabase-postgres-best-practices
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
23pdf
Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction.
23marketing-psychology
When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental models organized for marketing application.
22commit-conventions
Create conventional commit messages and plan commits. Use when a user asks to commit changes, write commit messages, or organize commits. Enforce repo-specific git/commit rules from AGENTS.md and split multiple logical changes into separate, digestible commits.
21seo-audit
When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," or "SEO health check." For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema-markup.
21