justfile
БесплатноЗапускает вложенные скриптыНе проверенCreate, edit, refactor, lint, and maintain Justfiles and `.just` module files using the `just` command runner. ALWAYS use this skill when the user mentions…
от julianobarbosa★ 18 звёзд на GitHubОб этом скилле
Justfile 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 and more portable, with none of
make's idiosyncrasies (.PHONY, tab sensitivity, implicit rules, timestamp tracking).
This skill enforces a consistent house style so every Justfile looks the same across projects.
The rules below are the authoritative convention; Tools/lint.ts validates the deterministic ones.
Workflow Routing
| Trigger | Workflow |
|---|---|
| "create a justfile", "set up just", "add a recipe/module" | Workflows/CreateJustfile.md |
| "migrate Makefile to just", "convert make to just" | Workflows/MigrateFromMake.md |
| "check/lint this justfile", "is this justfile correct" | Workflows/CheckJustfile.md |
When to Use Just vs Make
| Scenario | Tool |
|---|---|
| Project task automation (build, test, deploy, lint) | just |
| Cross-platform command runner | just |
Actual file-based build dependencies (compile .c → .o) |
make |
| Legacy projects already deep in make | make (or migrate) |
Common Mistakes — do NOT do these
Patterns the model often generates incorrectly. Check output against this list.
| WRONG | RIGHT |
|---|---|
justfile (lowercase) |
Justfile (capital J) |
mod docker (bare) |
mod docker '.justfiles/docker.just' |
Module at docker.just or just/docker.just |
Module at .justfiles/docker.just |
default: |
_default: (underscore required) |
@just --list |
@just --list --unsorted (module) or --unsorted --list-submodules (root with modules) |
env("NAME", "val") |
env_var_or_default("NAME", "val") |
| Module file without the three-line header | Every file gets the full header |
Module file without its own _default recipe |
Every file gets its own _default |
Module named after a tool (psql.just) |
Module named after a concern (db.just) |
Tests in docker.just because they run in a container |
Tests in test.just — classify by purpose, not implementation |
| Root recipe duplicates module logic | Root shortcut delegates: build: docker-build |
Ad-hoc names (run-tests, do-lint) |
Standard names: test, lint, build, dev, fmt, check |
Relative paths in module recipes (bash tests/run.sh) |
Use source_directory() for absolute paths |
Mandatory Rules — apply to EVERY file you create or edit
- The root file MUST be named
Justfile(capital J). - EVERY file (root and every
.justmodule) MUST start with this three-line header:
Use#!/usr/bin/env just --justfile set shell := ["bash", "-euo", "pipefail", "-c"] set dotenv-load := trueset dotenv-load := falsewhere appropriate, but the line must always be present. - EVERY file MUST have
_defaultas its first recipe:
The root Justfile with modules uses# List all available recipes _default: @just --list --unsorted@just --list --unsorted --list-submodules. Module files use@just --list --unsorted(no--list-submodules). - Section order in every file: variables → mod imports → recipes.
- Module files MUST live at
.justfiles/<name>.just— neverjust/, never beside the root. - Import modules with explicit paths:
mod name '.justfiles/name.just'— never baremod name. - Use
env_var_or_default("NAME", "value")for variable defaults — neverenv(). - Every recipe gets a
#doc comment on the line directly above it. - Parameterized recipes document each param:
# param - description (default: value). - Private/helper recipes start with
_. - Dependencies go on the definition line:
build: _lint test. - Destructive recipes prompt for confirmation; the doc comment says "DESTRUCTIVE, prompts for confirmation".
- Extract modules by domain concern, named after the concern (
db.just) not the tool (psql.just). The root Justfile is a thin orchestrator:_default, shortcut recipes, and project-wide recipes likecheck/clean. - The root provides shortcut recipes for common workflows that delegate to modules, giving developers a flat namespace for everyday tasks.
- Use the standard recipe vocabulary below as the public API. Never invent
run-tests,do-lint,compile,format. - In modules, never use bare relative paths — module recipes run with the module's directory as CWD. Define
root := source_directory() / ".."and reference files as{{root}}/tests/run.sh.
Standard Recipe Vocabulary
A developer should be able to run just test, just dev, or just check in any project without guessing. Use these exact names; include only the ones that apply.
| Recipe | Purpose | Include when |
|---|---|---|
dev |
Start dev environment (server, watch, REPL) | Project has a dev loop |
test |
Run the test suite | Always |
build |
Build or compile | Project ha |
Установить justfile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл justfile?
Create, edit, refactor, lint, and maintain Justfiles and `.just` module files using the `just` command runner. ALWAYS use this skill when the user mentions justfile, Justfile, just recipes, just modules, `.just` files, or asks to set up task automation with just. Also trigger when migrating a Makefile to just, adding recipes or modules to an existing Justfile, or organizing and documenting project commands. Covers house conventions, templates, namespacing by domain, dotenv, cross-platform support, and a structural lint. NOT FOR file-based build dependency graphs that need timestamp tracking (use make).
Как установить скилл justfile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл justfile запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic