SKILL

worktree

Create, inspect, and clean isolated git worktrees for parallel feature development. Standardizes worktrees under a top-level .worktrees/ dir, copies env templates but never a secret file (it prints the run-time secrets line instead), assigns each worktree a deterministic port block, trusts mise configs in the new worktree when present, and runs lifecycle hooks for DB seed/teardown. Use for feature isolation, parallel-agent workflows, worktree health audits, stale cleanup, port conflicts, and monorepo or submodule setups. Hands Laravel Herd projects to herd-worktree for site/env/database setup. Runtime-agnostic: works in Claude Code, Codex CLI, and plain shell.

原文 · 译文尚未补齐

适用对象:数据库。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Worktree
  • Standard location: .worktrees/
  • Script path
  • Repo-declared worktree task
  • Laravel Herd auto-handoff
  • Workflow
  • Step 1 - Repo info
  • Step 1b - Scope check (open PRs)

Spin up an isolated git worktree so a new feature, bugfix, or parallel agent run lives on its own branch and its own filesystem path - without disturbing your main checkout. Each worktree arrives ready to run: env templates copied (never secrets), a private port block assigned, install commands detected. By default the agent session moves into the new worktree so subsequent work happens there - pass --no-enter to stay put. Pairs naturally with vd:cook and vd:fix (implement in the worktree) and vd:ship (land it). All worktrees live at /.worktrees/ - / - one rule for every repo type: standalone → /.worktrees/, monorepo → /.worktrees/, submodule → topmost superproject's .worktrees/. .worktrees/ is a top-level sibling of the .workbench/ artifact umbrella, deliberately not nested under it (full checkouts would pollute artifact globs and bloat the umbrella). The script auto-appends /.worktrees/ and .env.worktree to .git/info/exclude when not already ignored, so git status stays clean. Worktrees + the umbrella (artifacts survive worktree removal). Artifact paths anchor to the main worktree, so work done from any linked worktree writes back to the main checkout's .workbench/. Under paths.l

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
vanducng/skills
源文件
skills/worktree/SKILL.md
固定版本
c20411b8df8f821988c87689f6aefe142b6f9025
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:vanducng/skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T14:02:27.651Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。