/hypha:sysml-validationfrom Hypha — SysML v2 Agent
Validates SysML v2 / KerML textual notation (.sysml/.kerml) for syntactic and structural correctness against the grammar and metamodel, explaining violations with fixes.
Ships in Hypha — SysML v2 Agent. 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.
Check SysML v2 / KerML textual notation against the release's grammar and metamodel, read through the
hypha MCP server's tools, then report findings with locations and corrections. The tools are named
here without a client's prefix: a client may show hypha_syntax as, for example,
mcp__hypha__hypha_syntax.
The metamodel and grammar are generated per upstream release tag (YYYY-MM).
tag. Call
hypha_release_status when unsure what is installed.The grammar, hypha_syntax with the question:
| Question | question | Arguments |
|---|---|---|
| Is a word a keyword or operator, of which kind, and which productions and metaclasses write it | keyword | word; grammar: "kerml" or grammar: "sysml" for one grammar |
| The elements a grammar production builds | built-by | production; grammar |
| Which elements' syntax fills in a metamodel feature, and through which operator | feature-assignments | feature; operator |
| An element's clauses, productions, the features its syntax fills in, and its worked examples | cross-reference | element |
The metamodel, hypha_metaclass with the question:
| Question | question | Arguments |
|---|---|---|
| What a metaclass is: abstract or not, its supertypes | element | name |
| A feature on a metaclass, owned or inherited, with its type, multiplicity and owner | features | name, feature |
| Does one metaclass specialize another | specializes | name, general |
| The constraints a model of it must satisfy | constraints | name |
And hypha_search with text and kind: "metamodel" to find the metaclass a construct builds when
the name is not exact. For quoting the specification behind a ruling, use the spec-citation skill.
Syntax, against the grammar:
; or has a { } body; braces, brackets and parentheses
balance.'name'): hypha_syntax keyword gives a
word's kind (reserved, contextual or operator) per grammar, and a null value means it is
no keyword or operator of the release. A keyword is written where a production that writes it allows.: (typing or defined by), :> (specializes or subsets), :>>
(redefines), ::> (references), => (crosses). = binds a value, not a type.[lower..upper], [n], [*].Structure, against the metamodel:
part by a part def).redefines / subsets / specialization target resolves to a feature or type reachable through a
specialized type.lower <= upper; member names are unique within their namespace;
required features and parameters are present.Two of these are graph questions, not pattern matches; decide them from the tools rather than from prose:
redefines / subsets target inherited? hypha_metaclass features with
name and feature answers with the feature when the metaclass has it, owned or inherited, and an
empty list when it does not, so the redefinition cannot resolve. Cite the owner it names
(inheritedFrom, or the metaclass itself); when redefinedBy is set, the redefining feature is the
one that applies. In user notation the declared type may specialize nothing, and then there is no
inherited feature to redefine whatever the metamodel says.lower and upper are integers, -1 meaning unbounded (write it *), so
lower > upper is a comparison, not a judgement. Apply the same rule to bounds in the notation under
review: [2..1] is ill-formed, [0..*] is not.What a construct fills in. hypha_syntax cross-reference lists, per element, the metamodel
features its syntax fills in and how (= sets, += adds, ?= sets a boolean from a keyword's
presence), with the productions responsible. Use it to explain a finding in the model's terms rather
than the notation's: "this sets declaredName, which is [0..1]" explains more than "this looks
wrong". An element whose syntax fills in nothing adds no syntax of its own and inherits its
declaration: say so rather than treating it as unknown.
The same answer names the clauses that treat the element, each with its provenance: a clause the
grammar states (MODEL) or one matched on its title (DERIVED). Cite it as a reference, and quote
it only through spec-citation.
Worked examples. The same answer also names the release's own example models that declare the
element (their file). A construct that appears in one is valid for that release. To read one, call
hypha_lookup with kind: "examples" and the file's name without its folder or .md (for
textual-notation/examples/sysml-src-examples-camera-example-camera.md, the name
sysml-src-examples-camera-example-camera), and follow nextLine for a long model. hypha_search
with kind: "examples" finds one by its model's name, such as Camera. Quote an example only from
what the lookup returned, and name it with its upstream source path as evidence; never quote one
from memory.
For a whole model, check each declaration in turn, but ask each question once: look up a keyword, a production or a metaclass's features the first time it occurs, and reuse the answer for every other declaration of the same kind. Report every finding, grouped by declaration.
Lead with a one-line verdict (valid, or N issue(s) found) and the release, then one item per
finding:
hypha_syntax, then the structural checks with hypha_metaclass.This reasons from the grammar and the metamodel; it is not the pilot-implementation compiler. When a definitive ruling needs the real parser, say so rather than guessing. Never invent metamodel structure or a specification clause; if the tools do not cover it, say so.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mycelium-cmbse/mycelium-hypha --plugin hypha6 skills in this plugin
/api-lookupLook up the OMG Systems Modeling API & Services (the SysML v2 API, not the language metamodel): a PIM type's attributes, multiplicities, derivation, subsetting and redefinition (Project, Commit, Branch, Tag, DataVersion, DataIdentity, Query, PrimitiveConstraint, ...), a PIM service operation, which PSM (OpenAPI) schema a PIM type maps to and which of its members the request and response models carry, a PSM schema's properties (type, required, nullable, what an identifier refers to), an endpoint, or a clause of the API specification. Use when the user asks how the SysML v2 API models something, whether a PIM member is in a request or response model, what fields a REST schema has, or which endpoint a service operation maps to./metamodel-lookupLook up the structure of the OMG SysML v2 / KerML metamodel (not OMG UML 2.x): a metaclass's features, supertypes, subtypes, redefinitions, multiplicities and constraints, plus enumerations and primitive types, and cross-cutting questions over many metaclasses (which metaclasses have a feature typed by Expression, every concrete subclass of Usage, who redefines a feature). Use when the user asks how a SysML v2 or KerML element (e.g. PartUsage, ConnectionDefinition, Feature) is defined in the metamodel, or how elements relate./model-library-lookupLook up what a SysML v2 / KerML standard model library element means or where it is declared (e.g. ISQBase::mass, ScalarValues::Real, SysML.sysml's Parts::Part): the normative library packages a user's own model specializes with `:>`, not the metamodel itself. Use when the user references a qualified name from ISQ, ScalarValues, SysML.sysml, or asks what a standard-library type/attribute/part is./spec-citationQuote the normative OMG SysML v2 / KerML specification text, or the Systems Modeling API & Services specification text, with an exact clause reference: one clause, or what several clauses say about a topic. Covers the SysML v2, KerML and Systems Modeling API specifications, not the OMG UML specification. Use when the user wants the authoritative wording of one of those specifications, or asks 'what does the SysML v2 / KerML / API spec say about ...'./version-managementManage which OMG SysML v2 / KerML release(s) hypha has installed on this machine: list what's installed vs. available upstream, install a release, switch the default, or remove one that's no longer wanted. Use when the user asks what versions are available, wants to install/update/switch/remove a release, or when a check reports nothing installed yet or a newer release available.Other plugins' skills for the same job