template-authoringlisted
Install: claude install-skill Cadasto/openehr-assistant-plugin
# Template Authoring
## Conflict Resolution
When guides conflict, apply this priority (highest first):
1. Rules and syntax specifications
2. Idioms and structural constraints
3. Principles
4. Convenience
## Step 1: Load Guides (MANDATORY)
Before any template work, load the authoritative guides:
```
guide_get("openehr://guides/templates/principles")
guide_get("openehr://guides/templates/rules")
```
Load additional guides as needed:
- `guide_get("openehr://guides/templates/oet-syntax")` — OET authoring syntax
- `guide_get("openehr://guides/templates/oet-idioms-cheatsheet")` — common OET patterns
- `guide_get("openehr://guides/templates/cgem-framework")` — full CGEM dataset-splitting framework (Step 6)
- `guide_get("openehr://guides/templates/opt-structure")` / `guide_get("openehr://guides/templates/web-template")` — runtime forms (OPT, web template) when discussing deployment or FLAT/STRUCTURED paths
## Step 2: Research Before Creating
Search for existing templates first:
```
ckm_template_search("<use-case>")
```
If creating a new template, search for archetypes to include:
```
ckm_archetype_search("<concept>")
```
**When CKM comes up empty**, published-on-GitHub project content is a secondary channel — repositories tagged with the **`openehr-content`** topic (search `topic:openehr-content`, ~14 repos: freshEHR, Apperta-CKM projects, regional programmes, individual modellers). CKM holds relatively few templates, so this is more often useful for templates than for ar