Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

jj杰杰

Agent Skill

jj 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

1

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jj(杰杰)
来源仓库:https://github.com/cachemoney/agent-toolkit
仓库路径:skills/jj
安装命令:
npx skills add https://github.com/cachemoney/agent-toolkit --skill jj
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cachemoney/agent-toolkit --skill jj

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理和辅助分析。
  • 可结合来源仓库和 README 进一步验证实际用途和限制。
  • 安装命令:npx skills add https://github.com/cachemoney/agent-toolkit --skill jj。
  • 注意权限范围和维护状态,避免触发联网、命令执行或文件读写。

SKILL.md

Jujutsu (jj) Version Control

Jujutsu is a Git-compatible VCS with mutable commits, automatic change tracking, and an operation log that makes every action undoable.

Target version: jj 0.36+

Topics

I need to...Deep dive
Understand how jj relates to Git, or use raw git in a jj repogit.md
Write revset, fileset, or template expressionsrevsets.md
Push, pull, manage bookmarks, or work with GitHubsharing.md
Split, rebase, squash, or resolve conflictshistory.md
Run parallel agents with isolated working copiesworkspaces.md
Configure jj, set up aliases, or customize diffsconfig.md

Mental Model

The working copy is a commit. No staging area. Every file change is auto-snapshotted into @ when you run any jj command. Instead of "stage → commit," just code and describe.

Change IDs are stable. Commit IDs are not. Every commit has two identifiers:

  • Change ID — Stable across rewrites. Letters k–z (e.g., tqpwlqmp). Prefer these.
  • Commit ID — Content hash, changes on any rewrite. Hex digits. This is the Git commit ID in colocated repos.

History is mutable. Commits can be freely rewritten. Descendants auto-rebase. Old versions stay in the operation log.

Bookmarks are not branches. Bookmarks don't advance when new commits are created. They follow rewrites but must be explicitly set before pushing. → Deep dive: sharing.md

Conflicts don't block. jj allows committing conflicted files. Resolve at your convenience by editing conflict markers directly, then verify with jj st. → Deep dive: history.md

Agent Rules

Non-negotiable when operating as an automated agent:

  1. Always use -m for messages. Never invoke a command that opens an editor. Commands that need -m: jj new, jj describe, jj commit, jj squash.
  2. Never use interactive commands. jj split (without file paths), jj squash -i, jj resolve — all hang. Use file-path args or jj restore workflows.
  3. Verify after mutations. Run jj st after squash, abandon, rebase, restore, or any destructive op.
  4. Use change IDs, not commit IDs. Change IDs survive rewrites.
  5. Quote revsets. Always single-quote: jj log -r 'mine() &::@'.

Agent-Specific Configuration

# agent-jj-config.toml
[user]
name = "Agent"
email = "agent@example.com"

[ui]
editor = "TRIED_TO_RUN_AN_INTERACTIVE_EDITOR"
diff-formatter = ":git"
paginate = "never"

Launch with: JJ_CONFIG=/path/to/agent-jj-config.toml <agent-harness> → Deep dive: config.md

Core Workflow

The daily loop: describe → code → new → repeat.

jj describe -m "feat: add user validation"
# make changes — auto-tracked, no `add` needed
jj st && jj diff
jj new -m "feat: add error handling"

Curating History

jj squash -m "feat: final clean message"   # fold working copy into parent
jj absorb                                   # auto-distribute hunks to right ancestor
jj abandon @                               # drop a failed experiment

→ Deep dive: history.md

Non-Linear Work

When new work doesn't depend on the current chain, branch off trunk:

# Create sibling from trunk (doesn't move @)
jj new trunk() --no-edit -m "fix: correct timezone handling"
jj edit <bugfix-change-id>
# ... fix the bug ...

# Return to original work
jj log -r 'heads(trunk()..)'
jj edit <feature-change-id>

Agent rule: Before creating a new commit, decide if it depends on the current chain. If not, branch off trunk and flag the divergence to the user.

Pushing Changes

jj bookmark set feat -r @
jj git push -b feat

Bookmarks must be set before pushing — they don't auto-advance. → Deep dive: sharing.md

Essential Commands

TaskCommand
Check statusjj st
View diff / logjj diff / jj log
Describe current commitjj describe -m "message"
Start new workjj new -m "task description"
Edit an older commitjj edit <change-id>
Squash into parentjj squash
Auto-distribute changesjj absorb
Abandon a commitjj abandon <change-id>
Undo last operationjj undo
View operation historyjj op log
Restore to earlier statejj op restore <op-id>
Create/move bookmarkjj bookmark create <n> -r @ / jj bookmark set <n> -r @
Push / fetchjj git push -b <bookmark> / jj git fetch

For Git translations: references/git-to-jj.md

Recovery

jj undo                      # undo last op; repeatable
jj op log                    # full operation history
jj op restore <op-id>        # jump to any past state
jj evolog -r <change-id>     # see how a change evolved

Detecting a jj Repo

.jj/ directory = jj repo. Both .jj/ and .git/ = colocated repo. Always use jj commands. Git's "detached HEAD" is normal in colocated repos — use jj log for real state.

Common Mistakes

MistakeFix
Omitting -m on commandsAlways pass -m — editor hangs agents
Using jj split without file pathsProvide paths or use the jj restore workflow
Forgetting to set bookmark before pushjj bookmark set <name> -r @ first
Using commit IDs instead of change IDsChange IDs (letters k–z) survive rewrites
Unquoted revset expressionsAlways single-quote: 'mine() &::@'
Confusing :: vs .. operators:: = ancestry path, .. = range (see revsets.md)
Creating workspaces as subdirectoriesMust be sibling dirs, not children

Reference Index

Git Interop:

Commands:

Revsets & Templates:

Sharing:

History:

Config:

Workspaces:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.12%
按下载量换算25

Claude

32.01%
按下载量换算23

Cursor

19.39%
按下载量换算14

Gemini CLI

8.94%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills