Cli Just

paulrberg/agent-skills/skills/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 从公开仓库中收录这些内容。

举报或申请下架