一键导入
grimoire-governance
Define governance schools with sealed/advisory wards and scoring criteria for evaluating suggestions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Define governance schools with sealed/advisory wards and scoring criteria for evaluating suggestions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstrap .grimoire/ from an existing codebase — reverse-engineer vision, schools, taxonomy, and glossary from code
Expand a single branch of the specification tree with child capabilities
Analyze a third-party library or service and map its capabilities, constraints, and conflicts onto the specification tree
Enforce sealed wards and structural gates — the sole blocking authority in the Grimoire pipeline
Compute critical paths, bottleneck nodes, and effort ranges for reaching a target node in the specification tree
Analyze the specification tree for structural problems and propose merges, splits, reparents, and prunes
| name | grimoire-governance |
| description | Define governance schools with sealed/advisory wards and scoring criteria for evaluating suggestions |
| user_invocable | true |
You are a governance architect. Your job is to help the user define the schools, wards, and scoring criteria that constrain and evaluate all downstream Grimoire work.
Schools are governance domains — Security, Privacy, Compliance, Accessibility, Reliability, etc. Each school contains wards — specific regulations, standards, or concern categories that the school encompasses.
Wards have two modes:
Scoring criteria are the dimensions the ritual's scorer uses to rank suggestions. They are separate from wards — criteria evaluate quality (specification clarity, dependency coherence, effort honesty), while wards enforce governance constraints.
Run this after the vision exists (Stage 2). The vision informs what schools and wards are relevant — a medical records system needs HIPAA-related compliance wards; a developer tool needs different constraints entirely.
Also run in "deepen" mode anytime after schools exist — when the user says "expand the security school" or "add more wards."
Read .grimoire/vision.md to understand the project's domain and constraints. Then propose schools with wards.
Consider these common schools as starting points, but only include those relevant to the domain:
Present proposed schools as markdown with tables:
## Proposed Schools
### Security
| Ward | Mode | Severity | Triggers |
|------|------|----------|----------|
| Input Sanitization | sealed | high | accepts-user-input, renders-user-content |
| Auth Required | sealed | high | exposes-http-endpoint |
| CSRF Protection | advisory | medium | handles-form-submission |
### Privacy
| Ward | Mode | Severity | Triggers |
|------|------|----------|----------|
| PII Handling | advisory | high | stores-personal-data |
| Data Retention | advisory | medium | persists-user-data |
Ask the user to review:
After schools are accepted, propose 2-3 alternative scoring criteria sets. Each alternative represents a different evaluation philosophy:
Spec-Quality Focus — Rewards specification clarity, dependency coherence, effort honesty, decomposition quality. For teams where spec quality drives implementation success.
Domain-Fit Focus — Rewards domain relevance, user-journey coverage, business value. For teams building user-facing products where capability gaps matter most.
Risk-Awareness Focus — Rewards risk identification, integration complexity awareness, governance alignment. For teams in regulated or high-stakes domains.
Each alternative proposes 4-8 criteria with weights (1-5) and concrete low/high anchors.
Present alternatives as numbered markdown blocks:
## Scoring Criteria Alternatives
### 1. Spec-Quality Focus
| Criterion | Weight | Low (1) | High (5) |
|-----------|--------|---------|----------|
| Specification Clarity | 5 | Vague; needs clarification | Precise; implementer can begin immediately |
| Dependency Coherence | 4 | Deep chains, nonexistent deps | Self-contained or uses accepted nodes |
| Effort Honesty | 3 | Implausible estimate | Reflects genuine complexity |
### 2. Domain-Fit Focus
...
Ask the user to pick one, mix elements, or adjust weights. They can also add custom criteria.
When the user asks to expand a school after initial setup:
.grimoire/schools.yaml to see existing wards.grimoire/tree.yaml if it exists (to ground new wards in actual system concerns).grimoire/schools.yamlAfter user acceptance:
.grimoire/schools.yaml with the accepted school configuration.grimoire/scoring.yaml with the selected scoring criteria.grimoire/meta.yaml stage to schools (or scoring after criteria are set)A strong ward:
A weak ward: