Cli Just

作者 paulrberg7f1d9025caf7無授權條款97 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Use for just/justfile task automation: create justfiles, write recipes, configure settings, add modules/attributes, or set up command-runner workflows.

AI 產生的概覽

建立與編輯 just/justfile 任務自動化,包含配方、設定、模組與命令執行器工作流程。

功能
引導代理為 Just 命令執行器撰寫與修改 justfile:配方、參數、相依性、設定、模組、屬性與內嵌 shell 指令碼。它會先檢查已安裝的 Just 版本與現有 justfile 慣例,再做最小幅度的變更,並以 just --list 或 just --summary 等指令驗證。內容也涵蓋組織方式、格式規則與隨版本變動的語法,最後提供驗證摘要。
適用情境
當儲存庫需要新建 justfile、新增或修改配方、Just 設定、模組或屬性,或建立命令執行器工作流程時使用。適合必須遵循已安裝 Just 版本與現有 justfile 風格的任務自動化情境。
執行需求
需要安裝 Just 命令執行器,才能執行版本、說明與驗證指令。內含參考文件與範例 justfile,但沒有指令碼;只有在查閱線上 Just 手冊時才需要網路連線。

Just Command Runner

Create readable task automation that matches the repository's installed Just version and existing justfile conventions.

Defaults

  • Inspect just --version, the existing justfile/module tree, and just --list before editing. Installed capabilities and existing syntax are authoritative over this skill's examples.

  • Preserve bespoke formatting. Do not rewrite a justfile with just --fmt. Use just --fmt --check only when the repository explicitly treats the built-in formatter as authoritative. just --dump is inspection output, not a formatting source.

  • Define multi-item string sequences one item per line with a parenthesized concatenation. Keep a trailing separator in every non-final item. Do not combine them into one long string. Triple-quoted strings are for values whose newlines are semantic, not visual wrapping. For example:

    just
    check-steps := (  "event-class-coverage " +  "orphan-disposal " +  "price-coverage")
  • When creating a new standalone justfile, use the user's section-banner style. Existing repository organization overrides that style.

Workflow

  1. Determine the requested recipe behavior, inputs, outputs, cwd, shell, environment, dependencies, and success condition.

  2. Use the installed manual (just --help, just --man, or https://just.systems/man/en/) for version-sensitive syntax. Read only the task-specific reference:

    TaskReference
    Recipes, parameters, dependencies, cache, executable checks, echo rulesreferences/recipes.md
    Settings, dotenv, lists, modulesreferences/settings.md
    Expressions, functions, constantsreferences/syntax.md
    Shell or script recipes, macOS Bash constraintsreferences/inline-scripts.md
    Check/write, status, aliases, organizationreferences/patterns.md
  3. Make the smallest recipe or setting change. Do not enable unstable features unless the requested design needs them and the installed version supports them.

  4. Validate parsing with just --list or just --summary. Then execute the narrowest safe recipe path. For state-changing recipes, use an existing dry-run/check mode or inspect the expanded command first.

Opinionated Organization

For a new standalone file, prefer dependency declarations, constants, public recipes, checks, then private helpers. Use set default-list := true when no single default action makes sense and the installed version supports it. Example starting points are in examples/standalone.just and examples/devkit.just. Load one only when creating that shape.

Completion requires a parsable justfile, the requested recipe behavior, and execution or dry-run evidence appropriate to its side effects. Finish with ### ✅ Just workflow ready, a compact recipe/alias/purpose table when several entries changed, and ### 🧪 Verification with exact commands and outcomes. Keep confirmation prompts, recipe data output, compiler output, and just --list output undecorated. Preserve the repository's own banner vocabulary.

來源與署名

來源:paulrberg/agent-skills位於skills/cli-just提交7f1d902

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架