AGENT SKILL

工作区管理

workspace

暂无简介

License 许可
GPL-2.0
所属仓库
vjrasane/dotfiles
最近更新
2026-11-05
Stars
★ 0
Forks
0

02 资源文件 8

03 SKILL.md 正文

Workspace

Create a new jj workspace rooted alongside the current repo.

Instructions

  1. 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
  2. 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, or ws-proj-123-add-auth-middleware for a ticket)
  3. 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>
  4. Create the workspace:

    jj workspace add ../ws-<feature-name>
    
  5. 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>"
    
  6. 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"
        done
    
    • git ls-files --others --ignored --exclude-standard enumerates gitignored files respecting .gitignore semantics (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.nix is 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.
  7. Create a bookmark on the new change using the same feature name:

    jj bookmark create <feature-name>
    
  8. Report: Print the workspace path and current jj log --limit 3 so the user can verify. Suggest the user cd into the workspace and start a new Claude session there.

04 同仓库更多 Skills

vjrasane
vjrasane/dotfiles

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.

★ 0
vjrasane
vjrasane/dotfiles

文本润色与扩写

writing-assistant

帮助改进和充实 markdown 或纯文本文件中的文字。当用户需要写作反馈、风格修正、语法纠正,或将要点扩展为散文时使用。不从零开始撰写文本。

技术文档工程师文档处理
★ 0
vjrasane
vjrasane/dotfiles

Claude技能创建指导

skill-writer

指导用户为 Claude Code 创建 Agent Skills。当用户想要创建、编写、设计新 Skill,或需要帮助处理 SKILL.md 文件、frontmatter 或技能结构时使用。

AI 工程师插件与技能管理
★ 0
vjrasane
vjrasane/dotfiles

代码变更审查

review

审查代码变更的质量、安全性和最佳实践

软件开发工程师代码仓库协作管理
★ 0
vjrasane
vjrasane/dotfiles

GitLab 合并请求审查

review-mr

查找当前 jj 分支对应的 GitLab 合并请求(MR)并对其进行代码审查。当用户想要审查 MR、审查合并请求、审查“我的 MR”,或审查当前分支在 GitLab 上的更改时使用。

软件开发工程师代码仓库协作管理
★ 0
vjrasane
vjrasane/dotfiles

主题资料研究

researcher

通过从网页来源和本地文件收集信息来研究某个主题。当用户要求研究、调查或深入探讨某个主题时使用。支持通过 research.md 文件进行增量式研究。

研究工程师网页搜索与信息研究
★ 0