·worktree-setup-hook
</>

worktree-setup-hook

lambda-curry/devagent

用于自动工作树设置的结账后 git hook。在以下情况下使用:(1) 为新的 git 工作树设置自动配置,(2) 创建检测新工作树并运行设置任务的结帐后挂钩,(3) 配置工作树以自动复制 env 文件并安装依赖项

3安装·0热度·@lambda-curry

安装

$npx skills add https://github.com/lambda-curry/devagent --skill worktree-setup-hook

SKILL.md

Provides a post-checkout git hook template that automatically configures new git worktrees by detecting new worktree creation and running setup tasks.

The hook detects when a new worktree is created (not a regular checkout) and automatically:

The hook will automatically run after git worktree add completes.

用于自动工作树设置的结账后 git hook。在以下情况下使用:(1) 为新的 git 工作树设置自动配置,(2) 创建检测新工作树并运行设置任务的结帐后挂钩,(3) 配置工作树以自动复制 env 文件并安装依赖项 来源:lambda-curry/devagent。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/lambda-curry/devagent --skill worktree-setup-hook
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 worktree-setup-hook?

用于自动工作树设置的结账后 git hook。在以下情况下使用:(1) 为新的 git 工作树设置自动配置,(2) 创建检测新工作树并运行设置任务的结帐后挂钩,(3) 配置工作树以自动复制 env 文件并安装依赖项 来源:lambda-curry/devagent。

如何安装 worktree-setup-hook?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/lambda-curry/devagent --skill worktree-setup-hook 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/lambda-curry/devagent