Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

justfile-skill公正归档技能

Agent Skill

justfile-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

61

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:justfile-skill(公正归档技能)
来源仓库:https://github.com/julianobarbosa/claude-code-skills
仓库路径:skills/justfile-skill
安装命令:
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill justfile-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill justfile-skill

简介

justfile-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Just Command Runner 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, more portable, and avoids make's idiosyncrasies like .PHONY, tab sensitivity issues, and implicit rules.

When to Use Just vs Make

ScenarioTool
Project task automation (build, test, deploy, lint)just
Actual file-based build dependencies (compile.c to.o)make
Cross-platform command runnerjust
Legacy projects already deep in makemake (or migrate)

Core Concepts

Recipe = Target

Recipes are the core unit. Each recipe is a named set of commands:

recipe-name:
    command1
    command2
  • Indentation MUST be consistent (spaces or tabs, but pick one — set ignore-comments helps)
  • Each line runs in a separate shell by default (use set shell or shebang recipes for multi-line scripts)
  • No .PHONY needed — just doesn't track file timestamps

Variables

# Assignment
version := "1.0.0"

# Backtick evaluation (runs command, captures stdout)
git_hash := `git rev-parse --short HEAD`

# Environment variable access
home := env('HOME')

# Export to recipe commands
export DATABASE_URL := "postgres://localhost/mydb"

Settings Block

Place settings at the top of the justfile:

set dotenv-load           # Load .env file
set positional-arguments  # Pass recipe args as $1, $2, etc.
set shell := ["bash", "-euco", "pipefail"]  # Fail-fast shell
set export                # Export all variables as env vars
set quiet                 # Suppress command echoing (like @ in make)

Recipe Arguments

# Required argument
deploy target:
    echo "Deploying to {{target}}"

# Default value
greet name="World":
    echo "Hello {{name}}"

# Variadic (one or more)
test +targets:
    go test {{targets}}

# Variadic (zero or more)
lint *flags:
    eslint {{flags}} src/

Dependencies

# Run 'build' before 'test'
test: build
    cargo test

# Pass arguments to dependencies
push: (deploy "production")

# Multiple dependencies
all: clean build test lint

Conditional Logic

# Ternary-style conditional
rust_target := if os() == "macos" { "aarch64-apple-darwin" } else { "x86_64-unknown-linux-gnu" }

# In recipes
check:
    if [ -f .env ]; then echo "Found .env"; fi

Platform-Specific Recipes

[linux]
install:
    sudo apt install ripgrep

[macos]
install:
    brew install ripgrep

[windows]
install:
    choco install ripgrep

Recipe Attributes

[private]           # Hidden from --list
[no-cd]             # Don't cd to justfile directory
[confirm]           # Ask confirmation before running
[confirm("Deploy to production?")]
[no-exit-message]   # Suppress error message on failure
[group("deploy")]   # Group in --list output
[doc("Run the full test suite")]  # Custom doc string

Shebang Recipes (Multi-line Scripts)

When a recipe needs to run as a single script rather than line-by-line:

process-data:
    #!/usr/bin/env python3
    import json
    with open("data.json") as f:
        data = json.load(f)
    print(f"Found {len(data)} records")

Self-Documenting Help

# The default recipe — runs when you type `just` with no args
[private]
default:
    @just --list --unsorted

Comments above recipes become descriptions in just --list:

# Initialize Terraform with backend config
init:
    terraform init

Imports and Modules

# Import another justfile
import 'ci.just'

# Module (namespaced)
mod deploy 'deploy.just'
# Usage: just deploy::production

References

Useful Functions

FunctionPurpose
os()Current OS (linux, macos, windows)
arch()CPU architecture (x86_64, aarch64)
env('KEY')Get environment variable (aborts if missing)
env('KEY', 'default')Get env var with fallback
invocation_directory()Directory where just was called from
justfile_directory()Directory containing the justfile
join(a, b)Join path components
parent_directory(path)Parent of path
file_name(path)Filename component
without_extension(path)Remove file extension
uppercase(s)Uppercase string
lowercase(s)Lowercase string
replace(s, from, to)String replacement
trim(s)Trim whitespace
quote(s)Shell-quote a string
sha256_file(path)SHA-256 hash of file
shell(cmd, args...)Execute command, capture output

Installation

# macOS
brew install just

# Cargo
cargo install just

# Pre-built binaries
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin

# Shell completions
just --completions zsh > ~/.zsh/completions/_just
just --completions bash > /etc/bash_completion.d/just

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.07%
按下载量换算23

Claude

26.96%
按下载量换算18

Cursor

20.39%
按下载量换算13

Gemini CLI

9.57%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills