/justfile:justfile-stylefrom justfile
Provides style guidelines for justfile recipes including script extraction, doc comments, and dependency management. Useful when writing or editing justfiles.
Ships in justfile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep recipes focused on orchestration. Do not embed script bodies in heredocs or multiline quoted strings; even short SSH status or provisioning blocks belong in standalone script files. Keep structured configuration payloads such as JSON and JQ in separate configuration or template files.
Pass runtime values as arguments or environment variables instead of interpolating them into script source. For remote execution, stream the script to the appropriate interpreter, for example:
ssh "${SSH_TARGET}" bash -s -- "${CONTAINER}" \
< "{{ justfile_directory() }}/.just/scripts/container-status.sh"
Preserve quoting, stdin usage, exit codes, and execution order when extracting. Keep secrets out of process arguments. Validate the extracted scripts locally without invoking deployment or provisioning as a test.
Within the requested scope, scan related recipes for remaining heredocs and multiline script or configuration strings rather than stopping after the first named example.
When a recipe body is a single line of roughly 120 characters or less, make its doc comment the command itself instead of a descriptive phrase. The command tells the reader exactly what runs.
Before:
# Install dependencies
[group('setup')]
install:
npm install
After:
# npm install
[group('setup')]
install:
npm install
Keep a descriptive doc comment for shebang recipes, multi-line recipes, and single-line commands longer than about 120 characters.
When a recipe needs other recipes to run first, prefer declaring them as dependencies over calling just from a recipe body or from a script the recipe runs. Dependencies run once per invocation even when several recipes share them, and avoid spawning a second just process.
Before:
# Build, then run tests
test:
just build
./scripts/run-tests.sh
After:
# ./scripts/run-tests.sh
test: build
./scripts/run-tests.sh
Pass arguments with parentheses, as in test: (build "release"). Put recipes that must run after the body behind &&, as in release: build && publish.
When several recipes begin with the same commands, extract those commands into their own recipe and declare it as a dependency of each. In a large graph of recipes, a shared dependency runs once per invocation, so just lint test does the common work once instead of repeating it in every body.
Before:
# Install, then lint
lint:
npm ci
npm run lint
# Install, then test
test:
npm ci
npm test
After:
# npm ci
install:
npm ci
# npm run lint
lint: install
npm run lint
# npm test
test: install
npm test
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub motlin/claude-code-plugins --plugin justfileOther plugins' skills for the same job