cmd/sgai/skel/.sgai/skills/using-jj-instead-of-git/SKILL.md
YOU MUST USE THIS SKILL WHENEVER YOU NEED TO USE git OR jj. Use jj instead of git for version control operations. When you need to perform version control tasks like committing, branching, merging, etc. Traps git use cases to steer to jj.
npx skillsauth add sandgardenhq/sgai using-jj-instead-of-gitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
CRITICAL YOU MUST USE jj INSTEAD OF git FOR ALL VERSION CONTROL OPERATIONS. Jujutsu (jj) provides a more intuitive and powerful interface while maintaining compatibility with Git repositories. Whenever you need to perform version control tasks, refer to the jj equivalents of git commands. This skill ensures you leverage jj's capabilities for better workflow and efficiency.
Use Jujutsu (jj) instead of Git for all version control operations. jj provides a more intuitive and powerful interface while maintaining compatibility with Git repositories.
When you need to:
Instead of using git, use the jj equivalents.
Map git commands to jj commands using this table:
| Git Command | JJ Command | Notes | |-------------|------------|-------| | git init | jj git init [--no-colocate] | | | git clone <source> <dest> | jj git clone <source> <dest> | | | git status | jj st | | | git diff | jj diff | | | git diff HEAD | jj diff | | | git diff <rev>^ <rev> | jj diff -r <rev> | | | git diff --from A --to B | jj diff --from A --to B | | | git add | (automatic) | jj tracks changes automatically | | git commit | jj commit | | | git commit -a | jj commit | | | git commit --amend | jj squash | | | git commit --amend --only | jj describe @- | Edit previous commit message | | git log | jj log | | | git log --oneline --graph | jj log -r ::@ | | | git log --oneline --graph --all | jj log -r 'all()' | or jj log -r :: | | git show <rev> | jj show <rev> | | | git branch | jj bookmark list | or jj b l | | git branch <name> <rev> | jj bookmark create <name> -r <rev> | | | git branch -f <name> <rev> | jj bookmark move <name> --to <rev> | or jj b m <name> -t <rev> | | git branch --delete <name> | jj bookmark delete <name> | | | git checkout -b topic main | jj new main | | | git merge A | jj new @ A | | | git rebase B A | jj rebase -b A -o B | | | git rebase --onto B A^ <bookmark> | jj rebase -s A -o B | | | git rebase -i A | jj rebase -r C --before B | For reordering | | git push | jj git push | | | git push --all | jj git push --all | | | git push <remote> <bookmark> | jj git push --bookmark <bookmark> | | | git fetch | jj git fetch | | | git pull | jj git fetch | Then jj new <remote bookmark> if needed | | git remote add <remote> <url> | jj git remote add <remote> <url> | | | git reset --hard | jj abandon | Abandon current change | | git reset --hard | jj restore | Make current change empty | | git reset --soft HEAD~ | jj squash --from @- | Keep diff in working copy | | git restore <paths> | jj restore <paths> | | | git stash | jj new @- | Old commit remains as sibling | | git cherry-pick <source> | jj duplicate <source> -o @ | | | git rev-parse --show-toplevel | jj workspace root | | | git blame <file> | jj file annotate <path> | | | git ls-files --cached | jj file list | | | git rm --cached <file> | jj file untrack <file> | Must match ignore pattern | | git revert <rev> | jj revert -r <rev> -B @ | |
For full table, see https://docs.jj-vcs.dev/latest/git-command-table/
jj allows concurrent editing, better conflict resolution, and stacked diffs.
documentation
Start, stop, and steer agentic sessions in sgai workspaces. Use when you need to launch AI agent sessions, halt running sessions, or inject steering instructions to guide the agent mid-execution without stopping it.
development
Monitor sgai workspace status, events, progress, diffs, and workflow diagrams. Use when you need to observe what agents are doing, track progress, get the current state of all workspaces, subscribe to real-time updates via SSE, or inspect code changes.
development
Access agents, skills, and code snippets available in sgai workspaces. Use when you need to discover what agents are defined in a workspace, browse available skills, get skill instructions, find code snippets by language, or retrieve snippet content for a specific task.
data-ai
Handle agent questions and work gates in sgai workspaces. Use when an agent is blocked waiting for human input, when you need to respond to multi-choice questions, approve work gates, or provide free-text answers to agent queries.