jj-context

Displays jj working copy status, trunk commits, and file diffs summaries.

1|Updated Feb 4, 2023
One-click install
npx skills add https://github.com/jbott/nix-config --skill jj-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jj-context
Source: https://github.com/jbott/nix-config/tree/main/home-manager/programs/claude-code/skills/jj-context
Command: npx skills add https://github.com/jbott/nix-config --skill jj-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Display the current jj working copy status and changes from trunk.

Core Features & Use Cases

  • Show current status: Run jj status to see the current working copy status, including modified files and the current commit's parent(s).
  • Show trunk commits: Run jj log -r 'trunk()..@' to see all commits between trunk and the current working copy.
  • Get change overview: Run these commands to understand the scope of changes: jj diff -r 'trunk()..@' --summary and jj diff -r 'trunk()..@' --stat.
  • Analyze the changes: For small changes, run jj diff -r 'trunk()..@' to view the full diff; for large changes, use the Task tool for structured analysis.
  • Present context: Display current status, trunk log, and file changes summary; for large diffs, rely on the Task agent's summary.

Quick Start

Ask jj-context to display the current status, trunk commits, and a summary of changes for the active workspace.

Frequently Asked Questions about jj-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view jj working copy status and trunk changes?

To view jj working copy status and trunk changes, the tool runs jj status, jj log, and jj diff to display modified files, trunk history, and file diffs. It provides a quick snapshot for code review and development scenarios.

What is the best way to review local jj diffs before committing?

Reviewing local jj diffs is best handled by executing jj diff -r 'trunk()..@' for full changes. For large diffs, the tool leverages a Task agent to provide structured analysis and summaries.

How do I see all commits between trunk and my current jj working copy?

To see all commits between trunk and the current working copy, the tool executes jj log -r 'trunk()..@'. This displays the complete trunk history leading up to your current workspace.

Can I get a summary of changed files in my jj workspace?

Yes, you can get a summary of changed files using jj diff -r 'trunk()..@' --summary and --stat. This surfaces a concise overview of modifications without loading the full diff output.

How does jj-context handle large diffs during code review?

For large diffs, the tool avoids displaying the full output directly. Instead, it relies on a Task tool agent to perform structured analysis and present a summarized context of the changes.

Do I need any special setup to display jj status and file changes?

No special setup is required beyond having jj installed. The tool operates directly on your active workspace using standard jj status, log, and diff commands to surface local changes.