agentsclimarketplace

Archetype lint

Skill Cadasto/openehr-assistant-plugin/skills/archetype-lint

openEHR assistant AI plugin suite with Skills, commands, and MCP server configuration for clinical workflow integration

Install
npx -y skills add Cadasto/openehr-assistant-plugin --skill archetype-lint

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

This skill should be used when the user asks to "lint an archetype", "validate an archetype", "check archetype compliance", "review archetype quality", or "run archetype rules". Applies 22 normative lint rules with ERROR/WARNING/INFO severity. Supports STRICT and PERMISSIVE modes. Reports violations only — it does not modify files; to lint *and* remediate, use the `archetype-authoring` skill. Auto-invoked on lint/validate intent, and also directly invocable as `/archetype-lint <file or id> [strict]`.

SKILL.md

4.8 KB, as published. Nobody here has run it

Archetype Lint

An openEHR archetype linting engine. Evaluate archetypes against 22 normative rules. Classify each violation as ERROR, WARNING, or INFO. ERROR means the archetype is invalid or unsafe.

Step 1: Load Guides (MANDATORY)

guide_get("archetypes/rules")
guide_get("archetypes/structural-constraints")
guide_get("archetypes/anti-patterns")
guide_get("archetypes/terminology")

Step 2: Determine Mode

  • STRICT: Zero WARNING tolerance. For publication candidates and CKM submissions.
  • PERMISSIVE (default): WARNINGs allowed with justification. For early modeling iterations.

If the user does not specify a mode, use PERMISSIVE.

Step 3: Apply Lint Rules

The normative rule definitions live in the archetypes/rules guide loaded in Step 1 — that guide is the single source of truth. If this index ever disagrees with the loaded guide, the guide wins. Use the index below for rule numbering and severity; consult the guide for each rule's full definition, rationale, and worked examples before classifying a violation.

#RuleSeverityGroup
1Single ConceptERRORCore semantic
2ENTRY Type SemanticsERRORCore semantic
3Root RM Type MatchERRORCore semantic
4Valid RM Attributes OnlyERRORCore semantic
5occurrences vs cardinalityERRORCore semantic
6Specialisation IntegrityERRORCore semantic
7Path StabilityERRORCore semantic
8Term Definition CompletenessERRORCore semantic
9Mandatory Data JustificationWARNINGStructural
10Arbitrary Upper BoundsWARNINGStructural
11CLUSTER SemanticsWARNINGStructural
12Slot DisciplineWARNINGStructural
13Template LeakageWARNINGStructural
14Unconstrained Leaf NodesWARNINGADL & AOM syntax
15Attribute Multiplicity ComplianceERRORADL & AOM syntax
16Ontology IntegrityERRORADL & AOM syntax
17Terminology NeutralityWARNINGTerminology
18Semantic Binding AccuracyWARNINGTerminology
19Archetypable DemographicsINFODemographic
20Identity vs Role SeparationERRORDemographic
21Patch Version DisciplineERRORVersioning
22Deprecation HandlingWARNINGVersioning

For rule 4, verify attribute names against the RM with type_specification_get when uncertain.

Offline fallback only: skills/openehr-assistant/reference/lint-rules-complete.md mirrors these definitions for the clinical-modeler agent (no MCP access). In the main session, always prefer the loaded archetypes/rules guide.

Avoid known false positives

  • ITEM_TREE.items {0..*} is idiomatic — the established CKM convention for container attributes (e.g. the published ecg_result.v1). Do not flag it under rule 9 / structural-constraints when at least one contained ELEMENT is mandatory; reserve a finding for genuinely empty or all-optional containers. Flagging idiomatic items {0..*} is noise.

Step 4: Generate Report

Required Output Format

## Lint Report

**Archetype:** <archetype-id>
**Mode:** STRICT | PERMISSIVE
**Overall Status:** PASS | FAIL

### Violations

| # | Severity | Rule | Explanation | Suggested Fix |
|---|----------|------|-------------|---------------|
| 1 | ERROR    | R4   | Attribute `blood_pressure` is not a valid RM attribute on ITEM_TREE | Use `items` (valid RM path) |

### Summary
- ERRORs: N
- WARNINGs: N
- INFOs: N

Gating logic:

  • Any ERROR -> overall status = FAIL
  • STRICT mode: any WARNING -> overall status = FAIL
  • PERMISSIVE mode: WARNINGs allowed if justified

Step 5: Fix Guidance (Optional)

If the user asks for fixes after linting, provide a minimal-diff fix plan:

  • For each violation: which rule it resolves, whether it changes paths, whether it affects semantics
  • Version bump recommendation (patch/minor/major) with justification
  • Prefer template-level constraints over archetype constraints where applicable

Do NOT apply fixes automatically. Present the plan and wait for user approval.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.