/contract
契约式前后端协作。先判断单会话多 agent 还是多终端异步两种模式,再以 CONTRACT.md 指向的机器契约为唯一来源协调各端开发、做集成对账,防字段漂移。
> /plugin marketplace add qshanx/docs-governance > /plugin install docs-governance@docs-governance
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/contract
Context preview
What this command does when you run it.
契约式前后端协作。先判断单会话多 agent 还是多终端异步两种模式,再以 CONTRACT.md 指向的机器契约为唯一来源协调各端开发、做集成对账,防字段漂移。
Command definition
contract.mddescription: 契约式前后端协作。先判断单会话多 agent 还是多终端异步两种模式,再以 CONTRACT.md 指向的机器契约为唯一来源协调各端开发、做集成对账,防字段漂移。
读取 `skills/engineering/contract-first/SKILL.md`,将用户参数 `$ARGUMENTS` 作为任务说明,按 Skill 判断协作模式并执行。
Claude Code 由 **contract-director** 持有契约;仅在已选择模式 A 时可使用 **frontend-dev** / **backend-dev**。角色、流程和验证边界只在 Skill 维护。
A knowledge, decision, and verification governance system for long-running AI-assisted projects. It turns a strong agent's one-off work into shared project capability that future agents can inherit, verify, and evolve.
Other commands on docs-governance.
governance-retro
复盘 PROJECT_LOG.md——统计哪个模块出错最多、哪类错误重复、标准变更几次;重复 TOP 的错误输出为"该下沉成 lint/测试"的候选清单。LOG 从流水账变资产。
governance-setup
统一配置新项目、讨论后项目或已有项目的产品文档包与 Agent 入口;先识别资料与授权,再编排专项 Skill,保留现有主源。
governance-sync
阶段收尾时同步项目治理文档:根据实际 diff 查漏补缺脊柱、CONTEXT、ADR、CONTRACT、TESTS 与 REGRESSION,并核对 Issue Tracker 引用。
governance
对已配置治理的当前项目做日常活文档维护——扫描真实结构,按需增量更新治理文档与 Codex 的 AGENTS.md 薄桥接。首次配置请用 /governance-setup,全中文。

