← スキル一覧に戻る

jj-workflow
by TrevorS
⭐ 0🍴 0📅 2026年1月1日
SKILL.md
name: jj-workflow description: | Jujutsu (jj) version control for AI-assisted development. Use when:
- Repo has
.jj/directory (check withjj root) - Need undo/recovery after breaking changes
- Curating messy history before PR
jj Workflow
Mental Model
No staging area. Your working directory is always a commit. Every save is tracked.
@= your current change (the working copy)@-= parent of current change- Changes are mutable until pushed
When to Use What
| Situation | Do This |
|---|---|
| Starting new work | jj new -m "what I'm trying" |
| Work is done, move on | jj new (current becomes parent) |
| Annotate what you did | jj describe -m "feat: auth" |
| Broke something | jj op log → jj op restore <id> |
| Undo one file | jj restore --from @- <path> |
| Combine messy commits | jj squash |
| Split bloated commit | jj split |
| Try something risky | jj new -m "experiment", then jj abandon @ if it fails |
AI Coding Pattern
During implementation, don't think about commits. Just work. jj tracks everything.
# Before risky change
jj describe -m "checkpoint: auth works"
jj new -m "adding OAuth"
# If it breaks
jj op log # Find good state
jj op restore <id> # Go back
# When done, curate
jj log -r 'ancestors(@, 10)'
jj squash # Combine checkpoints
jj describe -m "feat: OAuth support"
Push to GitHub
jj bookmark create feature-x # Name for pushing
jj git push --allow-new # Push to remote
Teammates see clean git. They don't know you used jj.
Recovery
The oplog records every operation. Nothing is lost.
jj op log # See all operations
jj undo # Undo last operation
jj op restore <id> # Jump to any past state
Bail Out
rm -rf .jj # Delete jj, keep git unchanged
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です