Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计提醒

jujutsu-colocated柔术并置

Agent Skill

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

总安装

312

周安装

13

GitHub Stars

公开资料未说明

下载量

104
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/khoahyh/skills --skill jujutsu-colocated

简介

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

  • 适合围绕代码变更或协作事项进行信息整理。
  • 通过 GitHub 仓库安装,建议结合原始 README 确认功能。
  • 可能涉及网络请求或文件操作,需评估权限和维护状态。
  • jujutsu-colocated 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Jujutsu Colocated Workflow

Use this skill to execute jj-first workflows safely in repositories where git and jj coexist.

Detect VCS First

Run this before any VCS command:

if jj root &>/dev/null; then echo "jj"
elif git rev-parse --show-toplevel &>/dev/null; then echo "git"
else echo "none"
fi

Interpretation:

  • jj: continue with this skill (also covers colocated repos).
  • git: stop and report that this is a Git-only repository. Ask the user to colocate before continuing with this skill (for example, run jj git init --git-repo. from the repo root, then verify with jj git colocation status).
  • none: stop and report no repository detected.

Default to jj help <command> for command syntax to keep context lean. Use Context7 selectively for nuanced or best-practice questions (for example colocation caveats, safety guidance, and version-migration differences).

In colocated repositories, prefer read-only git commands and use jj for mutating operations.

Follow Non-Negotiable Safety Rules

  • Treat working copy @ as a real commit, not a staging area.
  • Use one workspace per agent for parallel work; never share a workspace path across active agents.
  • Refer to work using change IDs when coordinating; commit IDs can change after rewrites.
  • Use jj op log as the recovery source of truth.
  • Treat bookmarks as publication pointers, not a current-branch model.
  • Never run destructive history/state operations without explicit written approval in-thread.
  • Never edit .env or environment variable files.
  • Never revert or delete other agents' work without coordination.

Workspace and Worktree Naming Convention

Use one canonical token for JJ workspace names and Git worktree directory names:

<repo>-<agent>-<task>

Rules:

  • repo: short repository slug (for example billing-api).
  • agent: stable agent identifier (for example hephaestus, reviewer-2).
  • task: short kebab-case task slug (for example token-refresh).
  • Keep names lowercase and ASCII; avoid spaces and punctuation beyond -.
  • If the same agent repeats the same task, append a short disambiguator (for example -v2, -2, -20260210).

Example:

billing-api-hephaestus-token-refresh

Cross-tool policy:

  • JJ: pass --name <repo>-<agent>-<task> explicitly so workspace identity does not depend on path basename inference.
  • Git worktree: pass -b <branch> explicitly; do not rely on git worktree add <path> default branch-from-path behavior.
  • Recommended Git branch shape for agent worktrees: wip/<agent>/<task>.

Forbidden without explicit written approval:

  • jj op restore...
  • jj op abandon...
  • jj util gc
  • jj bookmark set --allow-backwards...
  • jj abandon <shared-change>
  • jj bookmark delete <shared-bookmark>
  • destructive Git fallbacks (git reset --hard, git checkout --, broad git restore, rollback rm)

Use Conventional Commit Descriptions

In jj, the -m value is the change description (commit message equivalent). Require Conventional Commit format:

<type>(<scope>): <description>

Allowed types:

  • feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

Examples:

  • feat(auth): add token refresh flow
  • fix(sync): avoid duplicate bookmark tracking
  • chore(integration): merge parallel agent changes

Core Workflow

  1. Sync first:
jj git fetch --remote origin
  1. Create a dedicated workspace for this agent from mainline, with the first scoped change already described:
jj workspace add --name <repo>-<agent>-<task> --revision main@origin \
  -m "<type(scope): description>" ../<repo>-<agent>-<task>
cd ../<repo>-<agent>-<task>
jj workspace list
  1. Create additional scoped changes in that workspace only when needed:
jj new -m "<type(scope): description>"
  1. Keep one logical concern per change:
jj split -i
jj squash --into <target-change>
  1. Inspect and pick publish targets (plain English):
jj status
jj diff
jj log -r "main@origin..@" --reversed --no-graph \
  -T 'change_id.short() ++ " | " ++ description.first_line() ++ "\n"'
  1. Publish selected change(s) explicitly (single PR or stack):
# Single PR in this workspace
jj bookmark set pr/<agent>/<task> -r <change-id>
jj git push --bookmark pr/<agent>/<task> --remote origin

# Stacked PRs in this workspace
jj bookmark set pr/<agent>/<task>/01 -r <change-id-1>
jj bookmark set pr/<agent>/<task>/02 -r <change-id-2>
jj git push --bookmark pr/<agent>/<task>/01 --bookmark pr/<agent>/<task>/02 --remote origin

CI guardrails:

  • Push only selected bookmarks. Never use broad push patterns for publish.
  • Reuse stable bookmark names with jj bookmark set to avoid creating extra CI-triggering branches.
  1. Resolve conflicts intentionally (never by deleting peers' edits):
jj resolve --list
jj resolve
  1. Retire temporary workspaces after integration:
jj workspace list
jj workspace forget <workspace-name>

Recovery Ladder

  1. Use jj undo for immediate local mistakes.
  2. Use jj op log and inspect prior states.
  3. Use operation-level restore only with explicit approval.

References

  • Colocated playbooks: references/colocated-workflows.md
  • Git-to-JJ mental model: references/git-to-jj-map.md
  • Safety and recovery rules: references/safety-and-recovery.md
  • Parallel multi-agent contract: references/parallel-agent-contract.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.25%
按下载量换算37

Claude

30.89%
按下载量换算32

Cursor

19.54%
按下载量换算20

Gemini CLI

8.61%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills