archetype-authoringlisted
Install: claude install-skill Cadasto/openehr-assistant-plugin
# Archetype Authoring
## Conflict Resolution
When guides conflict, apply this priority (highest first):
1. Rules and structural constraints
2. Syntax specifications
3. Anti-patterns
4. Principles and examples
5. Convenience
## Step 1: Load Guides (MANDATORY)
Before any archetype work, load the authoritative guides:
```
guide_get("archetypes/principles")
guide_get("archetypes/rules")
guide_get("archetypes/adl-syntax")
```
Load additional guides as needed:
- `guide_get("archetypes/structural-constraints")` — for cardinality, occurrences, existence rules
- `guide_get("archetypes/terminology")` — for terminology binding patterns
- `guide_get("archetypes/anti-patterns")` — to avoid common mistakes
- `guide_get("archetypes/formatting")` — for ADL formatting conventions
## Step 2: Research Before Creating
Before creating a new archetype, ALWAYS search CKM first:
```
ckm_archetype_search("<concept>")
```
**Reuse-first principle**: If a suitable archetype exists, use it. Only create new archetypes when no existing archetype covers the concept. If a close match exists, consider specialization instead.
**For deep reuse surveys** (unfamiliar domain, or the first few hits look marginal), dispatch the `ckm-scout` agent instead of running searches inline. It runs 3 parallel phrasings, ranks candidates, and returns a reuse/specialize/new recommendation — keeping CKM search noise out of this skill's context.
### Consult gold-standard reference archetypes (when applicable)
For a s