本文へスキップ
Skillpedia
一般的なプログラミング37k · #7584

just

できること

このスキルは、プロジェクトのコマンドを保存するためのツールであるjustコマンドランナーの使い方を説明します。justfileのあるプロジェクトで作業する開発者向けです。

使う場面

  • ✓プロジェクトにjustfileがあり、そのレシピを見たり実行したりしたいとき。
  • ✓繰り返し実行するコマンドを、justのレシピにしたいとき。
  • ✓レシピに引数を渡したり、そのソースを確認したりしたいとき。

スキルのリンク

https://github.com/casey/just/blob/master/skills/just/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/casey/just/blob/master/skills/just/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このプロジェクトのjustfileにはどんなレシピがありますか?deployのレシピはどう実行しますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、レシピの表示、そのソースの出力、引数を付けた1つのレシピの実行など、ツールが対応しているコマンドを一覧にします。また、新しいレシピを書くための、基本的なjustfileの文法も説明します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Just

Discovery

  • just --dump Print justfile
  • just --evaluate Print variable values
  • just --help Print detailed command-line syntax help
  • just --list Print recipes with descriptions
  • just --show <RECIPE> Print recipe source
  • just --summary Print recipes without descriptiosn

Execution

  • just Run default recipe
  • just <RECIPE> Run specific recipe
  • just <RECIPE> <ARG1> <ARG2 Run recipe with arguments

Syntax

executable := 'main'

# compile main.c
compile:
  cc main.c -o {{ executable }}

# run main
run: compile
  ./{{ executable }}

# run test
test name: compile
  ./bin/test {{ name }}

# start webserver
serve port='8080':
  python -m http.server {{port}}

# publish current tag
publish:
  #!/usr/bin/env bash
  set -euxo pipefail
  tag=`git describe --tags --exact-match`
  ./bin/check-tag $tag
  git push origin $tag

Notes

The comment proceeding a recipe is used as its doc-comment, and included in just --list.

By default, each line of a recipe runs in a fresh shell. Recipes whose bodies start with #! are written to a file and executed as a script.

Commonly used commands and scripts should be turned into just recipes.

よくある質問

justfileとは何ですか?

名前の付いたコマンドであるレシピを保存する、プロジェクトのファイルです。

最初にjustをインストールする必要がありますか?

はい。レシピを実行する前に、justコマンドランナーがインストールされている必要があります。

あるレシピが別のレシピに依存することはできますか?

はい。レシピは別のレシピに依存でき、その場合、依存先が先に実行されます。

詳細

作者による元の説明

Reference for `just`, the command runner. Use when working in a project with a `justfile` or when the user mentions `just` or `justfile`.

repo: casey/just

人気

GitHubのスター
37k
ランキング
#7584
ライセンス
CC0-1.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

似ているスキル