跳到正文
cccskills
免费在 GitHub 公开

gz-constitute

Use to create or refresh governance constitution artifacts.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.0 KB
  • agents/openai.yaml258 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

gz constitute

Overview

Self-Escalation (opus-tier). The dialogue with the operator stays in the main session: a subagent cannot ask the operator a question or hear the answer, and what the operator adds is this skill's primary input. When the session model is below opus-tier, you may spawn an Agent with model="opus" for a bounded drafting or QC track that needs no operator input — pass the operator's words verbatim and the relevant context (ADR IDs, OBPI IDs, prior decisions), and treat what it returns as a draft you verify, not as the operator-facing result.

Scaffold a constitution, then fill it with the operator. gz constitute <name> (constitute in src/gzkit/commands/init_cmd.py):

  • requires an initialized project (.gzkit.json); otherwise it exits 1;
  • canonicalizes name to CONSTITUTION-<SLUG>-<semver>: a leading CONSTITUTION- is dropped, a trailing -X.Y.Z becomes the semver (default 1.0.0), and the rest is stripped to alphanumerics and upper-cased, so charter becomes CONSTITUTION-CHARTER-1.0.0 (GHI #216). A name with no alphanumeric character exits 1;
  • renders the constitution template (src/gzkit/templates/constitution.md) with status: Draft, today's date and --title (default: the id) into <paths.constitutions>/<id>.md;
  • appends one constitution_created ledger event, which makes the id a node in the gz state graph.

The scaffold holds placeholder principles and rules; the content comes from the operator. It does not check for an existing file: a name that canonicalizes to an existing id overwrites that file and appends a second event. --dry-run prints the path and event it would write, whether or not the file exists, and writes nothing.

Workflow

  1. Preview: uv run gz constitute <name> --dry-run. If the printed path already exists, stop — that constitution is revised in place, not re-scaffolded.
  2. Create it: uv run gz constitute <name> [--title "<title>"].
  3. Draft each section the template requires with the operator — Purpose, Scope, Principles, Rules (requirement, rationale, verification), Exceptions, Amendments — using the operator's words. required_headers in src/gzkit/schemas/constitution.json is the authority for the sections and the permitted status values.
  4. Validate: uv run gz validate --documents checks the frontmatter and headers against that schema. Capture the output to a file and read $? straight after it.
  5. Report the id, path and validation result. Changing status from Draft is the operator's ratification, not the agent's.

Example

uv run gz constitute charter --dry-run
uv run gz constitute charter --title "Project Charter"
uv run gz validate --documents

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

Use to file a GitHub issue when a finding needs its own work order or the operator asks; OBPI corrections stay in its change log.

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

ghi-close

免费

Use to do the work a GHI describes, verify it and close the issue with evidence in one sweep.

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

Use to triage the open GHI queue before planning or choosing what to pull; produces a ranked deliverable.

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

git-sync

免费

Run the guarded repository sync ritual; the hooks your pre-commit config declares enforce the quality gates.

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

git-sync

免费

Run the guarded repository sync ritual; commit-time hooks enforce the cheap gates and the pre-push hook runs gz check.

中文简介正在准备中。当前显示原文说明。

tvproductions/gzkit92026年10月22日 更新

查看 tvproductions 的全部技能

报告此技能的问题