con un clic
using-git-worktrees
当需要开始与当前工作区隔离的功能开发或执行实现计划之前使用——创建具有智能目录选择和安全验证的隔离 git 工作树。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
当需要开始与当前工作区隔离的功能开发或执行实现计划之前使用——创建具有智能目录选择和安全验证的隔离 git 工作树。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Use this skill when the Agent needs to decide where a capability, rule, workflow, runtime anchor, script, job, document, persona change, plugin asset, or repository maintenance item should live. It provides a layered map of the Agent's durable assets so requests to “落实到 all”, “整理自身框架”, or “细化自身” do not bloat memory or scatter files.
Use this skill when the user asks to 自检自身、重新蒸馏、进化版 Agent、增强回去、避免死循环处理、能力增益评估,或在瘦身与增强之间取舍。它先盘点已处理对象、能力风险和真正增益点,再决定增强、修复、拆分、瘦身或停止,不把行数减少当成默认目标。
Use this skill when the Agent needs an executive-control layer before acting: classify user intent, decide direct execution vs read-only inspection vs button confirmation vs clarification, avoid over-asking, and keep work moving to the smallest safe completed state. Trigger especially when the user says 继续、落地、放开手脚、接管、自己判断、按方案推进,or complains about typing confirmations that should be buttons.
Use this skill when the Agent needs to read feedback signals before deciding whether to act, correct itself, distill a lesson, or ask for clarification. It treats user wording, repeated failures, tool errors, missing evidence, and activity context as sensory inputs, then routes to the right organ without overreacting.
Use this skill when the Agent needs to turn experience into a repeatable growth loop: observe signals, decide whether learning is needed, distill reusable lessons, place them into the right asset layer, verify the change, and keep future behavior lighter rather than heavier. Trigger when the user asks to 主动成长、持续进化、经验闭环、复盘后改进, or when repeated failures show a missing habit rather than a one-off bug.
Use this skill when the Agent needs to distinguish safe self-improvement from high-risk mutation. It guards credentials, destructive actions, MoviePilot core files, downloads, restarts, external service changes, and over-broad memory edits while still allowing authorized low-risk /config/agent and /config local plugin work to proceed.
| version | 2 |
| name | using-git-worktrees |
| description | 当需要开始与当前工作区隔离的功能开发或执行实现计划之前使用——创建具有智能目录选择和安全验证的隔离 git 工作树。 |
| allowed-tools | execute_command read_file list_directory ask_user_choice |
Git worktree 用于在同一仓库下创建隔离工作区,适合并行开发、执行实现计划、接收代码审查修改或处理高风险改动。
这是开发隔离辅助技能,不是 MoviePilot 媒体业务主路线。普通搜索、订阅、下载、转移、站点任务不要因此变成重型开发流程。
使用场景:
不使用场景:
/config/agent 小型 skill/memory 调整;按优先级选择:
.worktrees/,优先使用。worktrees/,次选。.worktrees/、worktrees/、外部临时目录、取消。项目内目录必须确认被 Git 忽略,避免工作树内容被误跟踪。
git check-ignore -q .worktrees || git check-ignore -q worktrees
若未忽略,先说明风险;只有在用户授权或任务已授权修改仓库配置时,才追加 .gitignore 并验证。
git rev-parse --show-toplevel
git status --short --branch
feature/agent-ops-buttons。git worktree add <path> -b <branch>
cd <path>
package.json → npm install 或项目约定命令;pyproject.toml / requirements.txt → Python 依赖准备;go.mod → go mod download;Cargo.toml → cargo build。创建成功后报告:
开发完成后的清理、合并或保留,由 finishing-a-development-branch 接管。
/config/agent 能力资产的小改动,通常直接改并验证,不必创建 worktree。完成前至少验证:
git worktree list
git status --short --branch
如修改了仓库配置或 .gitignore,还要验证相关目录确实被忽略。