Ships in ohi. 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.
None: SKILL.md is the whole skill.
LinkML is a YAML data-modelling language: write the model once, generate JSON Schema, SHACL, RDFS, Frictionless data packages and code from it. This skill drives ohi LinkML.
rules:, boolean expressions, arrays, dynamic enums, type designators.
This is the single most common way to produce a schema that looks right and does nothing.ohi linkml from owl / from ossie), then review and tweak.to linkml
and to json-schema are cheaper and more reliable than reasoning.ohi version # 0.18.7 or newer is required
If the CLI is missing or too old, offer the options in 990-install.md. If the user cannot install it, the playground runs the same engine in a browser.
ohi linkml validate --format json schema.yaml # machine-readable, act on it precisely
# fix, repeat until clean, then:
ohi linkml validate --strict schema.yaml # warnings too
--format json emits one
SchemaValidationReport
per input file. Each issue names the offending element and its JSON path, so act on the message
rather than guessing. FATAL means the schema will not load and every generator refuses;
ERROR fails the command; WARNING fails only under --strict but usually still wants fixing.
validate takes several files at once, and lint is an alias.
It checks the schema, not your data. There is no command to validate instance data — see 500-validate-data.md.
id: https://example.org/my-schema
name: my-schema
description: What this models.
prefixes:
ex: https://example.org/
linkml: https://w3id.org/linkml/
default_prefix: ex
imports:
- linkml:types # nearly always needed: string, integer, date, ...
classes:
Person:
tree_root: true # the root of a generated document
attributes:
id:
identifier: true
range: string
name:
required: true
age:
range: integer
email:
multivalued: true
status:
range: PersonStatus
enums:
PersonStatus:
permissible_values:
ACTIVE:
RETIRED:
Four things that trip people up:
attributes vs slots. attributes are inline on one class — the default choice.
Top-level slots: are reusable, referenced by name from a class's slots: list. Do not reach
for them until something is genuinely shared.default_range is always string if omitted — a slot with no range is a string, not
"anything". For anything-goes, use a class whose class_uri is linkml:Any.identifier: true needs a scalar range (not a class, not an enum), at most one per class,
and it silently changes inlining everywhere the class is used.tree_root marks the document root. Exactly one class in the root schema should have it.Whether a nested class is embedded or referenced by identifier is inferred, not declared, and it changes the shape of every generated artifact. The decision table is in 200-limitations.md; when in doubt generate JSON Schema and look.
ohi linkml to json-schema --to out/schema.json schema.yaml
Generators: json-schema, shacl, rdfs, owl, frictionless, scala, linkml, graphql,
typescript, pydantic, java, rust, er-diagram, docs, translation, ossie, stats. Omit --to for stdout; --format ttl gives prefixed Turtle from the RDF ones
instead of N-Triples; --open on json-schema/shacl allows undeclared properties. scala, java and
frictionless write several files, so point their --to at a directory. rust writes a Cargo crate
when --to is a directory, or one file when it is a .rs file or stdout. docs writes Markdown
documentation: a page per class, slot, enum and type when --to is a directory, or one document
when it is a .md file or stdout. For flags run
ohi linkml to <generator> --help — do not guess.
to er-diagram draws the model as a
Mermaid ER diagram — classes become
entities, type- and enum-ranged slots their attributes, and class-ranged slots the lines between
them. Reach for it to show someone a schema, and to eyeball whether the inlining came out the way
you meant: a solid line is an inlined child, a dashed one a reference.
Optional attributes get a trailing ?, which Mermaid only understands from 11.16 (June 2026) —
and an older renderer rejects the whole diagram, not just the marker. If the diagram is headed for
somewhere that pins its own Mermaid (GitHub, GitLab, Notion, mkdocs), pass
--optional-marker=false.
to linkml is the debugging tool. It resolves imports, materialises inherited slots
into attributes and prunes unused elements, showing what the schema actually says:
ohi linkml to linkml schema.yaml
Reach for it whenever inheritance, slot_usage or imports make the effective model unclear — and
it is the best artifact to hand downstream consumers, who then need no import resolution.
The reverse of to: read a document in another format and write a LinkML schema.
ohi linkml from owl --list-not-imported --to schema.yaml ontology.ttl
Importers: owl, ossie.
from owl reads OWL ontologies and plain RDFS vocabularies (DC terms, Schema.org and the like) in
Turtle or N-Triples. from ossie reads an Apache Ossie
ontology. Both keep the source IRIs, and the result usually needs only small manual fixes. How to
import, check and finish the result is in 300-bootstrap.md.
Many published ontologies are already on ohi.dev as linkml-yaml, ready to
import or reuse. Use the ohi skill to find and download them before converting one yourself.
Read these when the task calls for them; do not load them up front.
slot_usage, inheritance and mixins, constraints,
enums, identifiers and unique_keys, imports, prefixes and URI mappings, built-in ranges,
documentation metadata, upstream doc links.tree_root_as, where behaviour differs from linkml-python. Check before
using anything unfamiliar.slot_usage — why a slot_usage can make a
slot required or multivalued, but not optional or single-valued, and how any_of, all_of,
exactly_one_of and none_of from parent classes, mixins and the slot definition are combined.langstring
value, a plain string or a mapping from language tag to text.tree_root choices, inlining, reuse, external vocabulary mappings, naming, documentation.check-jsonschema, ajv, pyshacl or frictionless. Includes how to read the failures.assets/.grep -P '^inlined\t' 900-metaslots.tsv
awk -F'\t' '$5 ~ /min|basic/ {print $1}' 900-metaslots.tsv # the everyday vocabulary
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub neverblink-oss/ohi --plugin ohiOther plugins' skills for the same job