一键导入
init
Initialize Hats in a new or existing project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize Hats in a new or existing project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run the QA ↔ Developer loop autonomously until tests pass.
Switch to the CTO role.
Switch to the Designer role.
Switch to the Developer role.
Diagnose and fix a Hats project structure (missing dirs, symlinks, files).
Switch to the Manager role.
基于 SOC 职业分类
| name | init |
| description | Initialize Hats in a new or existing project. |
Look at the current directory. If there are source code files (anything besides .git/, .gitignore, README*, LICENSE*):
.hats/ folder for specs, designs, and tests."If the directory is empty or only has .git/, skip to Step 2.
Create the missing directories and files (do NOT overwrite existing files):
.hats/manager/ (private workspace).hats/designer/ (private workspace).hats/cto/ (private workspace).hats/qa/.hats/developer/ (private workspace).hats/shared/.hats/shared/specs/ (Manager writes .feature files here).hats/shared/designs/ (Designer writes design files here).hats/shared/threads/ (any role can append topic memos here).hats/shared/manager2team.md (empty).hats/shared/cto2team.md (empty).hats/shared/qa2dev.md (empty).hats/shared/dev2qa.md (empty).hats/shared/dev2designer.md (empty).hats/shared/qa2designer.md (empty).hats/shared/designer2team.md (empty).hats/manager/notes.md (empty — role scratchpad).hats/designer/notes.md (empty — role scratchpad).hats/cto/notes.md (empty — role scratchpad).hats/qa/notes.md (empty — role scratchpad).hats/developer/notes.md (empty — role scratchpad).hats/status.json (with default messaging structure — see MIGRATIONS.md for the full messages schema).gitignore (append if exists, create if not):
node_modules/
__pycache__/
venv/
.env
.hats/role
.hats/logs/
.hats/debug
*.log
No symlinks are created. All shared data lives in .hats/shared/ — specs in shared/specs/, designs in shared/designs/. Role directories (manager/, designer/, cto/) are private workspaces.
If code exists in the project, ask: "Want me to generate Gherkin specs from your code? I'll create .feature files in .hats/shared/specs/ describing what your app already does."
.feature files in .hats/shared/specs/Tell the user: "Project ready. Run /hats:manager to start planning."