使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/lenbok/qrspi --skill qrspi-worktree开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Invoke with: thoughts/qrspi/<id>/
Worktree — Isolate the Implementation
Create a git worktree so implementation happens on an isolated branch without affecting your main working tree.
Input
The artifact directory path is provided by the user.
Process
- Determine identifiers from the artifact directory name:
- Branch name: derive from the directory name (e.g.,
ENG-1234-descriptionor2026-03-29-new-feature) - Repo name: detect from
basename $(git rev-parse --show-toplevel) - Worktree path:
~/wt/<repo-name>/<branch-name>
- Create the worktree:
git worktree add ~/wt/<repo-name>/<branch-name> -b <branch-name>- Confirm with the user before executing:
Ready to create worktree:
Worktree: ~/wt/<repo-name>/<branch-name>
Branch: <branch-name>
Plan: <path>/plan.md
To implement, invoke the `qrspi-implement` skill from the worktree.
Proceed?- Create the worktree after user confirms.
- Copy QRSPI artifacts to the worktree. Untracked files from the main tree do not appear in worktrees:
cp -r <artifact-directory> ~/wt/<repo-name>/<branch-name>/<artifact-directory>Output
- Git worktree created at
~/wt/<repo-name>/<branch-name> - QRSPI artifacts copied to the worktree
- Tell the user the worktree path and how to start implementation
Rules
- Always confirm before creating the worktree.
- Worktrees do not share untracked files with the main tree. Always copy the artifact directory after creating the worktree.
- Do not start implementation. That's a separate phase with a separate context window.
When to Go Back
If the plan doesn't exist yet at <path>/plan.md, tell the user to invoke the qrspi-plan skill first.


