From project-governor
Use when starting a new project or onboarding an existing project into the governance system. 通常由 governor-run 自动调用,除非用户明确只想做项目初始化。
How this skill is triggered — by the user, by Claude, or both
Slash command
/project-governor:project-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize a project into the ProjectGovernor workflow system.
Initialize a project into the ProjectGovernor workflow system.
Collects project metadata (name, type A/B, description), creates the docs/governor/ directory structure, and writes project.yaml. This is the mandatory entry point — all other governor skills require a completed init.
This skill has no prerequisites. It IS the prerequisite for everything else.
ProjectGovernor delegates actual work to existing skills. All three plugins must be installed before using governor skills:
| Plugin | Install | Required Skills |
|---|---|---|
| Superpowers | claude install-plugin superpowers | brainstorming, writing-plans, verification-before-completion, requesting-code-review, dispatching-parallel-agents, subagent-driven-development |
| Frontend Design | claude install-plugin frontend-design | frontend-design (Type B only) |
| Everything Claude Code | claude install-plugin everything-claude-code | continuous-learning-v2, architecture-decision-records |
Type A projects do NOT require Frontend Design plugin. All projects require Superpowers + ECC.
digraph init_pdca {
rankdir=LR;
node [shape=box, style=filled];
"P: Define goals" [fillcolor="#E3F2FD"];
"D: Create structure" [fillcolor="#E8F5E9"];
"C: Verify init" [fillcolor="#FFF3E0"];
"A: Handoff" [fillcolor="#F3E5F5"];
"P: Define goals" -> "D: Create structure" -> "C: Verify init" -> "A: Handoff";
"C: Verify init" -> "D: Create structure" [label="fail", style=dashed];
}
docs/governor/project.yaml + 目录结构Verify dependencies — 依次检查所有依赖插件是否已安装。Try invoking each dependency skill with the Skill tool. 收集所有缺失的依赖后一次性报告:
&& 连接所有 claude install-plugin 命令)project-governor:project-init报告格式示例(有缺失时):
⚠️ 以下插件未安装:
1. superpowers — 所有治理阶段将无法运行
2. everything-claude-code — 回顾阶段将无法运行
请执行以下命令一键安装:
claude install-plugin superpowers && claude install-plugin everything-claude-code
安装完成后,重新运行 /project-governor:project-init 即可。
B 型项目额外检查 frontend-design。 所有依赖已安装时,静默通过,无需输出。
Detect existing project — Scan the current working directory for indicators of an existing project:
package.json, Cargo.toml, pyproject.toml, go.mod, build.gradle, pom.xml, etc.src/, lib/, app/, cmd/, internal/, etc.README.md, docs/, CLAUDE.md, etc.If existing project detected:
docs/governor/INDEX.md already exists (governance previously completed)docs/governor/specs/YYYY-MM-DD-<project-name>-现状分析.md(中文), covering:
existing_project: true in project.yamlIf greenfield project:
existing_project: false in project.yamlAsk the user: "Is this a Type A project (CLI/Agent, no UI) or Type B (UI product)?" (Skip if auto-detected in step 2)
Ask the user: "Auto mode? (true = automatically chain to next phase after each gate passes, false = stop and prompt after each phase)"
Collect metadata: project name, brief description, team size (optional)
Create directory structure under docs/governor/
Write project.yaml with metadata + cycle: 1 + auto: true|false
Create docs/governor/INDEX.md — 治理产物索引,初始内容:
# 治理产物索引
> 自动生成。每个阶段 PASS 后更新。Claude 按需读取此文件了解项目治理全貌。
**项目**: <name> | **类型**: A/B | **当前周期**: 1 | **当前阶段**: init
| 日期 | 阶段 | 产物路径 | 说明 |
|------|------|---------|------|
Print phase roadmap for the project type
Verify init completion:
docs/governor/project.yaml exists and is valid YAMLtype field is A or B (not empty)specs/, flows/, states/, ui/, plans/, gates/, retros/)current_phase is set to initIf any check fails → fix and re-verify.
current_phase: init, append init to phases_completed.
auto: true: Automatically invoke project-governor:requirements-freeze.auto: false: Tell user: "Init complete. Next: invoke project-governor:requirements-freeze"name: <project-name>
type: A | B
description: <one-line description>
team_size: <number or omit>
existing_project: true | false # true = 基于已有项目改进
auto: true | false # true = auto-chain to next phase after PASS
cycle: 1
current_phase: init
created: YYYY-MM-DD
updated: YYYY-MM-DD
phases_completed: []
docs/governor/
├── project.yaml
├── specs/
├── flows/
├── states/
├── ui/ # created even for type A (empty, skipped)
├── plans/
├── gates/
└── retros/
After init, print a roadmap showing the phase sequence. Each phase runs its own internal PDCA:
Type A:
[1] Requirements Freeze [PDCA] → [2] Flow Design [PDCA] → [3] State Design [PDCA] → [5] Implementation Plan [PDCA] → [6] Stage Gate (cross-phase) → [7] Retrospective
Type B:
[1] Requirements Freeze [PDCA] → [2] Flow Design [PDCA] → [3] State Design [PDCA] → [4] UI Design [PDCA] → [5] Implementation Plan [PDCA] → [6] Stage Gate (cross-phase) → [7] Retrospective
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub zmyfrank/project-governor --plugin project-governor