使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/salimhamed/claude-code-flow --skill wt-init开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Generate .worktreerc.yml
Scan the current project and generate a .worktreerc.yml with sensible defaults for the wt-create skill.
Steps
1. Check for Existing Config
Look for .worktreerc.yml or .worktreerc.yaml in the repository root.
If one exists, read it, show it to the user, and ask if they want to overwrite or update it. Stop if they decline.
2. Scan Project for Patterns
Copy Candidates
Use Glob to detect files that are typically gitignored but needed for development:
.env,.env.*.direnv.vscode/settings.json.idea/
For each candidate found, verify it is actually gitignored:
git check-ignore <file>Only include files that are gitignored (exit code 0). Files tracked by git don't need to be copied.
Post-Create Hook Candidates
Use Glob to detect lock files and dev tooling:
| File Found | Suggested Hook |
|---|---|
uv.lock or pyproject.toml (with [tool.uv]) | uv sync |
package-lock.json | npm ci |
yarn.lock | yarn install |
pnpm-lock.yaml | pnpm install |
Gemfile.lock | bundle install |
.mise.toml or .tool-versions | mise install |
.pre-commit-config.yaml | pre-commit install |
3. Present Findings to User
Show what was detected and proposed. Use AskUserQuestion to let the user confirm or adjust:
- Which copy patterns to include
- Which post-create hooks to include
4. Write .worktreerc.yml
Generate the file with the confirmed settings.
Example output:
worktree:
copy:
- .env
- .env.local
post_create:
- uv sync
- pre-commit installOmit copy or post_create sections entirely if they would be empty.



