# onevcat-jj

Teaches a coding agent to handle local changes with jj and exchange work through a Git remote. Useful when agent tasks run in a jj repository.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 295
- Author: lis186
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lis186/ccxray/tree/HEAD/.claude/skills/onevcat-jj/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/onevcat-jj

## What it does

The skill guides an agent through recognizing a jj repository and choosing jj for local version-control work, including repositories that also contain `.git/`. It explains changes as the unit of work, with edits belonging to the current change, and bookmarks as names used to connect work to Git branches. The remote remains standard Git.

Instructions cover inspecting the change graph and diffs, describing or splitting changes, switching to another change, and undoing operations. They also walk through fetching, tracking remote bookmarks, and pushing; parallel workspaces are included. jj must be installed for its commands to run. Claude Code installation uses `npx`.

For an existing Git repository, the skill shows `jj git init --colocate`. When `.jj/` is present, it directs the agent to use jj for local operations, so the agent does not mix local Git commands into the workflow. The listed platforms also include Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lis186/ccxray --skill onevcat-jj -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/onevcat-jj/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/onevcat-jj/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lis186/ccxray --skill onevcat-jj -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/onevcat-jj/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lis186/ccxray --skill onevcat-jj -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/onevcat-jj/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lis186/ccxray onevcat-jj
```

2. **Manually: put the files in place**
- File: `.github/skills/onevcat-jj/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lis186/ccxray --skill onevcat-jj -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lis186/ccxray --path .claude/skills/onevcat-jj
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/onevcat-jj/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lis186/ccxray --skill onevcat-jj -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lis186/ccxray/tree/HEAD/.claude/skills/onevcat-jj/SKILL.md

## When to use it
- identify whether a repository uses jj
- inspect change history and diffs with jj
- start a fresh change for another task
- move changes onto a new base or undo an operation
- create a bookmark and push it to a Git remote

## Example prompts
- Check whether this repository uses jj and show its current state.
- Start a separate task from `master` and describe the change as a bug fix.
- Create a bookmark for the current change and push it to the Git remote.

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

From the same set: [lis186/ccxray](https://affpapa.org/en/nevibecode/by/lis186/ccxray.md) — 8 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
