Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

justfile-author

БесплатноБез исполняемых скриптовНе проверен

Use this skill when authoring or refactoring a justfile (and matching Makefile wrapper) for one of Nick's projects. Triggers when the user asks to "create a…

NickCrewот NickCrew★ 76 звёзд на GitHub

Об этом скилле

Justfile Author

Overview

Generate a justfile (and matching Makefile + tx-start helpers) following Nick's project conventions: zsh shell, DRY parameterized helpers, svc-* tmux service family wired through cortex tmux, and standard quality recipes (build, lint, dev, test, typecheck, ci, clean).

When to use this skill

  • A repo lacks a justfile and the user wants one.
  • A justfile exists but is missing the svc-* family, the Makefile wrapper, or the standard quality recipes.
  • The user asks to add a new service window (e.g., svc-worker) to an existing justfile.
  • The user asks to refactor a justfile to be more DRY or to align with the conventions captured here.

Skip this skill when:

  • Editing third-party / open-source justfiles (their conventions own).
  • The user has explicitly chosen make, npm scripts, or another runner for this project.

Reference example

/Users/nick/Developer/Facet/justfile and /Users/nick/Developer/Facet/Makefile are the canonical reference. When in doubt, mirror their shape.

Workflow

Step 1 — Inspect the project

Before writing anything, read the project to determine:

  1. Project slug — derive from the repo directory basename.
  2. Stack and package manager — what language(s), which lockfile.
  3. Service catalog — what long-running processes the dev runs locally.
  4. Existing tooling — what build/test/lint commands the project already uses (do not invent new ones).
  5. Runtime activation needs — nvm, asdf, uv, etc.

Consult references/inspection-checklist.md for the full detection table and the exact slug-normalization rules.

Step 2 — Choose the recipe block

Pull the right language reference into context:

Stack Reference
Node references/recipes-node.md
Rust references/recipes-rust.md
Python references/recipes-python.md
Go references/recipes-go.md

For polyglot repos, read multiple references and combine. For stacks not listed, mirror the structure of the closest listed stack and substitute the native commands.

Step 3 — Choose the service catalog

Consult references/service-patterns.md for the full svc-* surface area and the rules for when to add a new service window. Every detected service gets a parallel pair of recipes (foreground + svc-) and a tx-start-<role>.sh wrapper.

Step 4 — Emit the files

Use assets/justfile.tmpl, assets/Makefile.tmpl, and assets/tx-start.sh.tmpl as the structural starting points. These are not literal templates — read them, then write the project's actual files with the inspection results substituted and the irrelevant scaffolding deleted.

Required substitutions in justfile.tmpl:

Placeholder Value
{{PROJECT_TITLE}} Human-readable project name (e.g., Facet).
{{PROJECT_SLUG}} Normalized slug (lowercase, underscores).
{{INSTALL_CMD}} From the language recipe block.
{{DEV_CMD}} From the language recipe block.
{{BUILD_CMD}} From the language recipe block.
{{TYPECHECK_CMD}} From the language recipe block.
{{LINT_CMD}} From the language recipe block (omit if not configured).
{{TEST_CMD}} From the language recipe block.
{{TEST_FILE_CMD}} From the language recipe block.
{{TEST_WATCH_CMD}} From the language recipe block.
{{CLEAN_CMD}} Project-specific build artifacts.

In Makefile.tmpl, also keep the .PHONY list and the passthrough recipe block in sync with the recipes actually emitted in the justfile — the catch-all rule pattern is intentionally NOT used; an explicit list keeps make help honest.

For each service, copy tx-start.sh.tmpl to scripts/tx-start-<role>.sh, uncomment the relevant runtime activation block, and replace {{SERVICE_CMD}} with the actual launch command. Make the script executable: chmod +x scripts/tx-start-<role>.sh.

Step 5 — Validate

After writing the files, run these checks before declaring completion:

  1. just --list — must succeed and show every recipe.
  2. make help — must show the passthrough list.
  3. For each svc-<role> recipe: confirm a matching tx-start-<role>.sh exists, is executable, and has the right activation block uncommented.
  4. just ci — should be runnable end-to-end (don't actually run it unless the user wants to; just confirm the deps resolve).
  5. Confirm set shell := ["zsh", "-c"] is present and that no recipe uses bash-specific syntax that would break under zsh.

If any check fails, fix it before reporting done.

Полный SKILL.md на GitHub

Установить justfile-author в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/Makefile.tmplassets/justfile.tmplassets/tx-start.sh.tmplreferences/inspection-checklist.mdreferences/recipes-go.mdreferences/recipes-node.mdreferences/recipes-python.mdreferences/recipes-rust.mdreferences/service-patterns.md

FAQ

Что делает скилл justfile-author?

Use this skill when authoring or refactoring a justfile (and matching Makefile wrapper) for one of Nick's projects. Triggers when the user asks to "create a justfile", "add a justfile to this project", "set up just for…", "wire up tmux services", "scaffold the task runner", or when working in a repo that lacks a justfile but obviously needs one. Produces a justfile using zsh syntax with the standard svc-* tmux service family, the canonical build/lint/dev/test recipes, a thin Makefile passthrough wrapper that auto-installs just, and per-service tx-start.sh helpers. Do NOT use for editing existing third-party justfiles or non-Nick projects unless the user explicitly opts in.

Как установить скилл justfile-author?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл justfile-author запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить justfile-author с