advanced-jj

advanced-jj is a skill for Claude Code, Codex from martinemde/dotfiles. It costs 94 tokens per session (1,070 once invoked), scanned A, original, ISC.

A reference guide for advanced Jujutsu, or jj, version-control tasks. It covers conflicts, operation history, bookmarks, revision sets, pull-request workflows, and repository configuration.

In plain words
What is it for?
Use it when investigating jj conflicts, reviewing its operation log, managing bookmarks or multiple remotes, working with Git repositories, or using fileset patterns.
Why use it?
It provides guidance for jj situations beyond the everyday workflow, including commands whose details may change between versions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when investigating jj conflicts, reviewing its operation log, managing bookmarks or multiple remotes, working with Git repositories, or using fileset patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martinemde/dotfiles/advanced-jj
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add martinemde/dotfiles --skill advanced-jj
Clone the repo
git clone --depth 1 https://github.com/martinemde/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for advanced-jj

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinemde/dotfiles/advanced-jj/github.svg)](https://agentmods.dev/skills/martinemde/dotfiles/advanced-jj)
Your own site
<a href="https://agentmods.dev/skills/martinemde/dotfiles/advanced-jj"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/advanced-jj/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for advanced-jj

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinemde/dotfiles/advanced-jj"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/advanced-jj.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01070
Opus 5.5 $0.00038 $0.00428
Sonnet 5.5 $0.00019 $0.00214
Haiku 4.5 $0.00009 $0.00107

Measured 5d ago against content hash 5ed303e81c9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

advanced-jj scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

home/dot_agents/skills/advanced-jj/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Advanced Jujutsu (jj)

Everyday commit flow (describe, new, safety rules) lives in the active AGENTS.md or equivalent harness instructions. This skill is the deeper reference — load it when you hit something the system prompt doesn't cover.

Recipes here were verified against jj 0.38.0 (check jj --version). Consult jj <command> --help when a command actually fails, or when your version differs — not by default before acting.

Mental Model

  • @ — the working copy (current change)
  • @- — parent of @
  • Changes auto-amend: editing files updates @ in place, no staging
  • jj squash folds @ into its parent (--into <rev> targets any ancestor)

Diffs with Filesets

jj show does not accept path arguments — use jj diff. Filesets support glob and set operations:

jj diff -r @-                                     # full parent diff
jj diff -r @- path/to/file                        # one file
jj diff -- 'glob:"bin/*" ~ glob:"bin/,special"'   # glob minus exclusion

Non-interactive Split

jj split -i needs an editor. For scripted splits, use --tool true — the true command exits 0, accepting the file list as given:

jj split --tool true -m "Extract feature" -- \
  'glob:"path/to/file1"' 'glob:"path/to/file2"'

Remaining changes stay in a follow-up working copy change.

Rebase, Squash, Push

jj rebase takes -o/--onto — not -d/--destination, which older jj used and models reach for from memory.

jj rebase -r <rev> -o <dest>         # one revision onto a destination
jj rebase -s <rev> -o <dest>         # revision plus its descendants
jj rebase -b <rev> -o <dest>         # whole branch containing <rev>
jj rebase -r <rev> -B <target>       # insert before — reorders a stack
jj rebase -r <rev> -A <target>       # insert after

jj squash                            # fold @ into its parent
jj squash --into <rev>               # fold @ into any ancestor
jj squash --from <a> --into <b>      # move changes between revisions
jj squash --into <rev> --tool true   # non-interactive

jj git push -b <bookmark>            # one bookmark; new ones push by default
jj git push -c <rev>                 # push a change, auto-naming its bookmark
jj git push --all --dry-run          # preview every push

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +16 lines · +13 tokens per session 5ed303e81c9b
  2. 1mo ago First seen · 90 lines · 81 tokens per session scan A 482ce4af2819

Subscribe to this mod's changes

advanced-jj is a skill published in the GitHub repository martinemde/dotfiles (10 stars, last pushed 2d ago), licensed ISC. It adds 94 tokens to every session and 1,070 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.