一键导入
init
Set up govctl in the current project. Installs the binary if missing, initializes governance structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up govctl in the current project. Installs the binary if missing, initializes governance structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write effective Architecture Decision Records. Use when: (1) Creating a new ADR, (2) Recording a design decision, (3) User mentions ADR, decision, trade-off, or alternatives
Commit changes with govctl integration — check work item status, preserve durable notes only when needed, and run govctl check
Remove govctl governance from a project. Archives artifacts, removes skills/agents, strips code references. Use when: (1) User wants to stop using govctl, (2) User mentions detach, opt-out, remove governance, or uninstall
Write well-structured Verification Guards. Use when: (1) Creating a new guard, (2) Editing guard check commands or patterns, (3) User mentions guard, verification, or check
Adopt govctl in an existing project. Discovers undocumented decisions, backfills ADRs/RFCs, annotates source code. Use when: (1) Project has no governance yet, (2) User mentions migrate, adopt, onboard, or brownfield
Write well-structured RFCs with normative clauses. Use when: (1) Creating a new RFC, (2) Adding or editing RFC clauses, (3) User mentions RFC, specification, or normative requirements
| name | init |
| description | Set up govctl in the current project. Installs the binary if missing, initializes governance structure. |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, TodoWrite |
| argument-hint | [optional setup scope] |
Set up govctl in the current project.
Outputs: Initialized governance structure, verified local setup, and a recommended next workflow.
govctl with cargo install govctl.govctl if it is already available. When working in the govctl repo itself, prefer cargo run --quiet -- before installing a global binary.govctl init./commit rather than embedding raw VCS commands here.govctl --version
If you are working in the govctl repository itself, prefer:
cargo run --quiet -- --version
If that works, use cargo run --quiet -- <subcommand> for the rest of this workflow instead of installing a global binary.
If no usable local invocation exists, ask permission, then install it:
cargo install govctl
If cargo is also missing, tell the user to install Rust first: https://rustup.rs
If gov/config.toml does not exist:
govctl init
If it already exists, skip — the project is already initialized.
If the user wants the bundled skills and reviewer agents copied into the project or agent config directory, run:
govctl init-skills
Use govctl init-skills --format codex for Codex agent role output, and --dir <path> when the assets should be written outside the project directory.
govctl status
Show the user what was created and confirm everything is working.
/discuss for design work/spec for governance-only artifact maintenance/gov for implementation-bearing work/quick for trivial non-behavioral cleanup