agentsclimarketplace

Jj workflow

Skill ikeisuke/claude-skills/skills/jj-workflow

jj(Jujutsu)でバージョン管理操作を実行する。リポジトリに .jj/ ディレクトリが存在する co-locationモード環境で、commit・push・rebase等のバージョン管理操作が必要なときに gitコマンドの代わりに使用される。From its SKILL.md

Install
npx -y skills add ikeisuke/claude-skills --skill jj-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.8 KB, as published. Nobody here has run it

jj Workflow Guide

jjの核心

  • ワーキングコピー = コミット: ファイルを編集した時点で自動的にコミット(@)に反映される。git add / ステージングは不要。
  • Change ID: コミットを rebase や squash で書き換えても、Change ID は変わらない。履歴を安全に編集できる。
  • bookmark: Gitのブランチに相当するが、コミット時に自動追従しない。明示的に jj bookmark set で移動するか、jj bookmark advance で前進させる。

基本ワークフロー

状況確認

jj log          # 履歴とbookmarkの位置を確認
jj status       # ワーキングコピーの変更内容
jj diff         # 差分表示

作業開始

jj new <bookmark>                  # bookmarkの先頭から新しいリビジョンを開始
jj bookmark create <bookmark>     # 新しいbookmarkを作成(必要な場合)

コミット(3点セット)

ファイル編集後、以下の3ステップでコミットを確定する:

jj describe -m "コミットメッセージ"           # 現在のリビジョンに説明を付ける
jj new                                        # 新しい空のリビジョンを作成(作業を区切る)
jj bookmark set <bookmark> -r @-              # bookmarkを確定したコミットに移動

bookmark advance を使う方法(代替)

jj bookmark advance はbookmarkを最寄りのリビジョンまで前進させるコマンド。bookmark set の代わりに使える:

jj describe -m "コミットメッセージ"
jj new
jj bookmark advance <bookmark>                # bookmarkを@-(直前のコミット)に前進

push

jj git push --bookmark <bookmark>    # 特定のbookmarkをpush
jj git push                          # 変更のあるすべてのbookmarkをpush

整理

jj abandon <change_id>    # 不要なリビジョンを破棄(空リビジョンの削除等)
jj squash                 # 現在のリビジョンを親にまとめる
jj squash --into <rev>    # 指定リビジョンにまとめる

トラブルシューティング

bookmarkが取り残された

jj log                                   # bookmarkの現在位置を確認
jj bookmark set <bookmark> -r <rev>      # 正しいリビジョンに移動

操作を取り消したい

jj undo              # 直前の操作を取り消す
jj op log            # 操作履歴を表示
jj op restore <id>   # 特定の操作時点に復元

コンフリクトが発生した

jjではコンフリクトはコミットに記録される(ファーストクラスオブジェクト)。慌てず解消できる:

jj status            # コンフリクトのあるファイルを確認
# ファイルを編集してコンフリクトマーカーを解消
jj status            # 解消を確認(自動検知される)

Examples

User: 「変更をコミットして push して」 → jj describe → jj new → jj bookmark set → jj git push を順に実行。

User: 「新しいブランチで作業を始めたい」 → jj new main → jj bookmark create feature-xxx で新 bookmark を作成。

参考

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.