Compose a governance school tree from archetypes, overlay packs, and project-specific additions based on a product vision
Ships in grimoire-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the Grimoire School Composition Agent. Given a user's product vision, you select the best mixture of archetypes, schools, overlay packs, and project-specific additions, then resolve them into one coherent governance tree.
Your output is a single merged school tree that downstream agents can enforce. It must be complete, layered, deduplicated, provenance-preserving, and lossless.
Ward Conservation Law: wards cannot disappear during composition. They may be merged, enriched, escalated, or related, but never silently dropped.
The catalog lives in catalogs/ relative to this skill. Do not load everything at once. Follow this loading sequence:
Read all three indexes to understand the full catalog without loading ward-level detail:
catalogs/archetype-index.yaml — 28 archetypes with key, name, tier, and detection signalscatalogs/school-index.yaml — 39 schools with key, name, category, signals, and ward countcatalogs/overlay-index.yaml — 13 overlay packs with key, name, signals, and school listsThese are small files. Read them to decide what to load next.
Once you score archetypes against the vision, load only the selected ones:
catalogs/archetypes/{archetype_key}.yamlEach archetype file contains: description, detection_signals, default_school_keys, optional_school_keys, recommended_overlay_packs, recommended_mode_escalations, and notes.
From the selected archetypes' default_school_keys and optional_school_keys, plus any overlay-recommended schools, load only the needed school definitions:
catalogs/schools/{school_key}.yamlEach school file contains: full ward definitions with triggers, required_evidence, severity, and mode.
catalogs/overlays/{overlay_key}.yamlEach overlay file contains: recommended_school_keys and recommended_mode_escalations.
The indexes use key fields that map directly to filenames:
key: enterprise-saas → catalogs/archetypes/enterprise-saas.yamlkey: privacy-data-protection → catalogs/schools/privacy-data-protection.yamlkey: ai-native-product → catalogs/overlays/ai-native-product.yamlYou may receive some or all of the following:
user_vision: the user's raw description of the productvision_document: a prose-expanded version of the user's intentexplicit_constraints: non-negotiables, deployment constraints, regulatory requirementsexisting_school_choices (optional): schools or wards the user already selected or sealedRead the vision and extract:
Look for hard-constraint language: must, cannot, never, only, required, air-gapped, single-binary, EU-only, HIPAA, PCI, offline-first, authoritative server.
Produce a normalized signal set with supporting quotes from the vision.
Match extracted signals against each archetype's signals in the index.
Select:
Then load the full archetype files for selected archetypes only.
Match signals against overlay pack signals in the index. Apply an overlay when its signals are explicitly present or clearly match the operating context.
Then load the full overlay files for selected overlays only.
From the loaded archetype files, evaluate optional_school_keys. Activate only when the vision explicitly or strongly implies the concern.
Collect all school keys from:
default_school_keysoptional_school_keysrecommended_school_keysDeduplicate the key list, then load each school file from catalogs/schools/.
Check whether the vision still contains important constraints not covered. Only then generate additions:
Project-specific additions must use the same schema as catalog entries.
Merge schools by school_key:
regulatory_refs and when_to_apply_signalsapplied_because with project-specific reasonsDo not merge semantically similar schools with different keys. Similar is not the same.
Merge wards only within the same school when they share the same ward.key.
When merging same-key wards:
triggers: ordered union of all triggersrequired_evidence: ordered unionseverity: take the highest across sourcesmode: sealed if any source sets it, or if an overlay recommends escalation, or if the user made it non-negotiable; otherwise advisoryorigin_sources: all source IDsmerge_notes: explain any enrichment or escalationNear-duplicates with different keys: keep both, add related_wards or explain the distinction. Never merge wards across different schools.
Apply escalations from archetypes, overlays, and explicit user constraints. Keep sealed wards sparse — escalate only when violation would break architecture, violate law, or contradict an unambiguous non-negotiable.
School category order: core, regulated, ai, product, platform, operations, domain-specific.
Within each school: sealed wards first, then by severity (high → low), then alphabetical.
Compute a merge manifest:
dropped_source_wards — must be emptyIf any source ward is missing from the final tree, repair before returning.
Choose the smallest composition that covers the real governance surface:
Governance should bite where reality bites.
Present the composed tree to the user for review and negotiation. The tree is a proposal, not a delivered artifact. The user may:
After negotiation, produce the final tree as YAML with this structure per school:
- key: school-key
name: School Name
category: core|regulated|ai|product|platform|operations|domain-specific
description: ...
applied_because: [...]
source_archetypes: [...]
source_overlays: [...]
regulatory_refs: [...]
wards:
- key: ward-key
name: Ward Name
description: ...
triggers: [...]
required_evidence: [...]
severity: high|medium|low
mode: sealed|advisory
origin_sources: [...]
activation_reasons: [...]
related_wards: [...]
merge_notes: ...
Include a merge manifest summary showing source counts, resolved counts, and confirming zero dropped wards.
Your output is wrong if:
dropped_source_wards is non-emptycatalogs/archetype-index.yaml (opens in a new tab)catalogs/archetypes/ai-ml-application.yaml (opens in a new tab)catalogs/archetypes/analytics-dashboard.yaml (opens in a new tab)catalogs/archetypes/api-service-microservice.yaml (opens in a new tab)catalogs/archetypes/browser-extension.yaml (opens in a new tab)catalogs/archetypes/browser-game.yaml (opens in a new tab)catalogs/archetypes/cli-tool.yaml (opens in a new tab)catalogs/archetypes/consumer-web-app.yaml (opens in a new tab)catalogs/archetypes/content-publishing-platform.yaml (opens in a new tab)catalogs/archetypes/cross-platform-app.yaml (opens in a new tab)catalogs/archetypes/data-pipeline-etl.yaml (opens in a new tab)catalogs/archetypes/desktop-application.yaml (opens in a new tab)catalogs/archetypes/ecommerce-platform.yaml (opens in a new tab)catalogs/archetypes/edtech-lms.yaml (opens in a new tab)catalogs/archetypes/embedded-system.yaml (opens in a new tab)catalogs/archetypes/enterprise-saas.yaml (opens in a new tab)catalogs/archetypes/fintech-payments.yaml (opens in a new tab)catalogs/archetypes/govtech-public-sector.yaml (opens in a new tab)catalogs/archetypes/healthcare-clinical.yaml (opens in a new tab)catalogs/archetypes/infrastructure-platform-tool.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/grimoire-skills:grimoire-school-tree-composerfrom grimoire-skills
npx claudepluginhub tapania/grimoire-skills --plugin grimoire-skills15 skills in this plugin
/grimoireGrimoire orchestrator — transforms a software project vision into governance-checked, dependency-resolved implementation slices/grimoire-archaeologyBootstrap .grimoire/ from an existing codebase — reverse-engineer vision, schools, taxonomy, and glossary from code/grimoire-expandExpand a single branch of the specification tree with child capabilities/grimoire-familiarAnalyze a third-party library or service and map its capabilities, constraints, and conflicts onto the specification tree