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("openehr://guides/archetypes/principles")
guide_get("openehr://guides/archetypes/rules")
guide_get("openehr://guides/archetypes/adl-syntax")
```
Load additional guides as needed:
- `guide_get("openehr://guides/archetypes/structural-constraints")` — for cardinality, occurrences, existence rules
- `guide_get("openehr://guides/archetypes/terminology")` — for terminology binding patterns
- `guide_get("openehr://guides/archetypes/anti-patterns")` — to avoid common mistakes
- `guide_get("openehr://guides/archetypes/reference-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.
**If CKM has nothing**, check the secondary channel before concluding "new": GitHub repositories tagged with the **`openehr-content`** topic (`topic:openehr-content`) publish project-level archetypes and templates outside CKM. These are **un-governed