Skip to content

muloka/claude-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Plugins for jj (Jujutsu)

Claude Code plugins for jj (Jujutsu) workflows — project setup, worktree isolation via jj workspaces, commit management, code review, PR review, and feature development.

All plugins include a PreToolUse hook (block-raw-git.sh) that intercepts Bash tool calls and blocks raw git commands, keeping your workflow pure jj. When Claude reaches for git add or git commit, the hook catches it and suggests the jj equivalent.

All jj output commands (jj log, jj diff, jj bookmark list, jj op log, jj workspace list, jj show, jj evolog, jj op show, jj config list, jj tag list) use JSON templates (-T 'json(self)') by default, giving Claude Code structured, machine-parseable output instead of human-readable text. Requires jj >= 0.31.0.

Plugins

Plugin Description Commands Agents
project-setup-jj Bootstrap jj workflow enforcement with /project-setup 1
workspace-jj Worktree isolation for jj repos via jj workspace hooks 2
commit-commands-jj jj commit workflows — commit, push, PR creation, and more 14
code-review-jj Automated code review with confidence-based scoring 1
pr-review-toolkit-jj Specialized PR review agents 1 6
feature-dev-jj Feature development with exploration, architecture, and review 1 3

project-setup-jj

Bootstrap jj workflow enforcement for any project with a single command. Sets up a SessionStart hook (shows jj context each session), a PreToolUse guard hook (prompts jj new before editing non-empty changes), permissions (allow jj/gh, deny git), and a CLAUDE.md policy directive.

Setup:

# 1. Install
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/project-setup-jj

# 2. Run setup in your jj project
/project-setup

# 3. Restart Claude Code for SessionStart hook

Requires: jj and jq

workspace-jj

Enables Claude Code's --worktree flag and subagent isolation: "worktree" in jj repositories. Claude Code uses git worktrees by default for isolated parallel sessions — this plugin replaces that with jj workspaces via WorktreeCreate and WorktreeRemove hooks, so --worktree works natively in jj repos.

Setup:

# 1. Install
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/workspace-jj

# 2. Run setup in your jj project (copies hook scripts, configures settings)
/workspace-setup

# 3. Restart Claude Code, then use worktrees
claude --worktree feature-auth

Claude Code doesn't pick up WorktreeCreate/WorktreeRemove hooks from plugins — they must be in project settings. The /workspace-setup command handles this by copying scripts to .claude/scripts/ and configuring .claude/settings.local.json.

Requires: jj and jq

commit-commands-jj

Streamline your jj commit workflow with simple slash commands.

Commands: /commit, /commit-push-pr, /new, /edit, /describe, /squash, /abandon, /sync, /undo, /clean_stale, /show, /evolog, /op-show, /tag-list

code-review-jj

Automated code review for pull requests using confidence-based scoring.

Command: /code-review

pr-review-toolkit-jj

Comprehensive PR review using six specialized agents, each running a focused pass:

Agent Purpose
code-reviewer Style guide adherence, best practices, project conventions
silent-failure-hunter Silent failures, inadequate error handling, swallowed exceptions
code-simplifier Code clarity, consistency, and maintainability
comment-analyzer Comment accuracy, completeness, and long-term maintainability
pr-test-analyzer Test coverage quality and completeness
type-design-analyzer Type encapsulation, invariant expression, and design quality

Command: /review-pr

feature-dev-jj

Guided feature development pipeline — explore, then architect, then review:

Agent Phase
code-explorer Deep codebase analysis — traces execution paths, maps architecture
code-architect Designs feature architectures following existing patterns and conventions
code-reviewer Reviews code for bugs, logic errors, security vulnerabilities, and quality

Command: /feature-dev

Installation

Install any plugin directly from GitHub using Claude Code:

/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/project-setup-jj
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/workspace-jj
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/commit-commands-jj
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/code-review-jj
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/pr-review-toolkit-jj
/install-plugin https://github.com/muloka/claude-plugins/tree/main/plugins/feature-dev-jj

Note: After installing workspace-jj, run /workspace-setup in your jj project and restart Claude Code.

Acknowledgments

Originally modelled off of Anthropic's claude-plugins-official.

License

See each plugin directory for the relevant LICENSE file.

About

jj (Jujutsu) plugins for Claude Code — commit workflows, code review, PR review, and feature development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages