Claude-skill-registry jj-context
Show current commit status and changes from trunk in jj
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/jj-context" ~/.claude/skills/majiayu000-claude-skill-registry-jj-context && rm -rf "$T"
manifest:
skills/data/jj-context/SKILL.mdsource content
/jj-context - Show Current Context
Display the current jj working copy status and all changes from trunk.
Instructions
-
Show current status: Run
to see the current working copy status, including:jj status- Modified files in the working copy
- The current commit's parent(s)
- Any conflicts
-
Show commits from trunk: Run
to see all commits between trunk and the current working copy. This shows the commit history of your current work.jj log -r 'trunk()..@' -
Get change overview: Run these commands to understand the scope of changes from trunk:
- List of files with change type (modified/added/deleted)jj diff -r 'trunk()..@' --summary
- Histogram showing lines changed per filejj diff -r 'trunk()..@' --stat
-
Analyze the changes:
- For small changes (≤10 files, ≤300 lines total): Run
directly to see the full diffjj diff -r 'trunk()..@' - For large changes (>10 files or >300 lines): Use the Task tool with
to analyze:subagent_type=Exploreprompt: "Run `jj diff -r 'trunk()..@'` and provide a structured summary: 1) Group changes by directory/subsystem 2) Describe the key modifications in each area 3) Note any significant additions or deletions. Keep each section brief."
- For small changes (≤10 files, ≤300 lines total): Run
-
Present the context: Display to the user:
- Current status
- Commit log from trunk
- Files changed summary (from --summary)
- For small diffs: the actual diff; for large diffs: the Task agent's summary
Notes
in jj refers to the main branch (typicallytrunk()
ormain
)master- The
range includes all commits between the two revisions.. - This is useful for understanding the full scope of work before creating a PR or reviewing changes