‹ 首页

dot-ai-worktree-prd

@vfarcic · 收录于 1 周前 · 上游提交 1 周前

Create a git worktree for PRD work with a descriptive branch name. Infers PRD from context or asks user.

适合你,如果需要在开发时快速创建与 PRD 关联的独立工作目录

/ 通过 npx 安装 校验哈希
npx oh-my-skill add vfarcic/dot-ai-cli/dot-ai-worktree-prd
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- vfarcic/dot-ai-cli/dot-ai-worktree-prd
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify vfarcic/dot-ai-cli/dot-ai-worktree-prd
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
7GitHub stars
~383最小装载
~383含声明引用
~1K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 af67e07 · 表述以原文为准
它做什么

装上后,Claude 能根据对话中的 PRD 编号和标题,自动创建一个独立的 git 工作目录和分支,并复制本地设置文件。

什么时候触发

当你在对话中提到 PRD 编号(如“PRD 353”)或要求创建 PRD 工作树时触发。

装好后可以这样说
Claude 会推断标题并执行创建。
Claude 会询问标题或自动查找。
技能原文 SKILL.md作者撰写 · MIT · af67e07

Create Git Worktree for PRD

Create a git worktree with a descriptive branch name based on the PRD title.

Workflow
Step 1: Identify the PRD

Infer the PRD number from the current conversation. Look for references like "PRD 353", "PRD #353", or "prd-353".

If not found, ask the user: "Which PRD should I create a worktree for? (e.g., 353)"

Step 2: Create the Worktree

If the PRD title is already known from conversation context, pass both number and title:

bash .claude/skills/dot-ai-worktree-prd/create.sh [number] "[title]"

Otherwise let the script look it up from prds/:

bash .claude/skills/dot-ai-worktree-prd/create.sh [number]
Step 3: Copy Local Settings

Copy .claude/settings.local.json from the main repo to the new worktree so local settings (which are not tracked in git) are available:

cp .claude/settings.local.json [worktree_path]/.claude/settings.local.json

If the source file doesn't exist, skip this step silently.

Step 4: Handle Result
  • If SUCCESS=true: report the branch name, worktree path, and suggest cd [worktree_path]
  • If ERROR=true: show the errors to the user and ask how to proceed
Guidelines
  • Descriptive names: Branch names describe the feature, not just the PRD number
  • Base on main: Always branches from main for new feature work
  • Clean names: The script keeps branch names concise and URL-safe
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。