工作区管理
workspace
暂无简介
- License 许可
- GPL-2.0
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
02 资源文件 8
- 脚本convert.ts4.0 KB
- 脚本openoats.ts12.6 KB
- 脚本sync.ts7.2 KB
- 脚本transcribe-deepgram.sh1.9 KB
- 脚本transcribe-deepgram.ts4.1 KB
- 脚本transcribe-local.py2.6 KB
- 脚本voicememos.ts11.8 KB
- 脚本zoom.ts11.4 KB
03 SKILL.md 正文
Workspace
Create a new jj workspace rooted alongside the current repo.
Instructions
-
Determine the base:
- If the user provided a bookmark or change ID, use that
- Otherwise determine the default branch:
jj config get revset-aliases.'trunk()'and extract the bookmark name from the output - If the config lookup fails, fall back to
main
-
Determine the workspace name:
- If the user provided a feature name, slugify it: lowercase, dashes, no special chars
- Otherwise suggest a name based on the task context or ask
- If the workspace is for an existing ticket, prepend the ticket slug (its ID + name, kebab-cased) to the feature name (e.g. ticket "PROJ-123: Add auth middleware" →
proj-123-add-auth-middleware) - Final directory:
ws-<feature-name>(e.g.ws-add-auth-middleware, orws-proj-123-add-auth-middlewarefor a ticket)
-
Resolve paths:
- Get the repo root:
jj workspace root - The new workspace goes in the same parent directory:
$(dirname $(jj workspace root))/ws-<feature-name>
- Get the repo root:
-
Create the workspace:
jj workspace add ../ws-<feature-name> -
Set the working copy to the base change:
cd ../ws-<feature-name> jj edit <base-change-or-bookmark>Then create a new empty change on top:
jj new -m "<descriptive message>" -
Symlink gitignored root files (direnv, devenv, and
*.local.*overrides) from the source repo root into the new workspace:SRC="$(jj workspace root)" DST="../ws-<feature-name>" git -C "$SRC" ls-files --others --ignored --exclude-standard -z \ | grep -zZ -v '/' \ | grep -zZ -e '\.local\.' -e '^\.envrc$' -e '^\.devenv' \ | grep -zZ -v '^\.devenv\.flake\.nix$' \ | while IFS= read -r -d '' f; do ln -s "$SRC/$f" "$DST/$f" donegit ls-files --others --ignored --exclude-standardenumerates gitignored files respecting.gitignoresemantics (read-only).grep -v '/'keeps root-level entries only, so the.devenv/directory is skipped while.envrc,.devenv.local.nix, and any*.local.*file at root are symlinked..devenv.flake.nixis excluded — it is a generated artifact devenv rewrites in place; symlinking it would clobber the source. devenv regenerates it in the workspace on first shell entry.
-
Create a bookmark on the new change using the same feature name:
jj bookmark create <feature-name> -
Report: Print the workspace path and current
jj log --limit 3so the user can verify. Suggest the usercdinto the workspace and start a new Claude session there.
04 同仓库更多 Skills
start-ticket
Kick off work on a Linear ticket end to end — file or look up the ticket, create an isolated jj workspace for it, move into that workspace, pull the ticket, and brief its scope. Use when the user wants to start working on a subject or an existing ticket, "start a ticket", "kick off LIN-123", or spin up a workspace from a ticket and begin.
文本润色与扩写
writing-assistant
帮助改进和充实 markdown 或纯文本文件中的文字。当用户需要写作反馈、风格修正、语法纠正,或将要点扩展为散文时使用。不从零开始撰写文本。
Claude技能创建指导
skill-writer
指导用户为 Claude Code 创建 Agent Skills。当用户想要创建、编写、设计新 Skill,或需要帮助处理 SKILL.md 文件、frontmatter 或技能结构时使用。
代码变更审查
review
审查代码变更的质量、安全性和最佳实践
GitLab 合并请求审查
review-mr
查找当前 jj 分支对应的 GitLab 合并请求(MR)并对其进行代码审查。当用户想要审查 MR、审查合并请求、审查“我的 MR”,或审查当前分支在 GitLab 上的更改时使用。
主题资料研究
researcher
通过从网页来源和本地文件收集信息来研究某个主题。当用户要求研究、调查或深入探讨某个主题时使用。支持通过 research.md 文件进行增量式研究。