/mif-docs:mif-validate <path to the document> [--level 1|2|3]from mif-docs
Deterministically prove a document is MIF-conformant — schema-check its JSON-LD against the canonical mif-spec.dev schema, enforce the L1/L2/L3 floor, and verify the markdown<->JSON-LD round-trip is lossless. Use as the gate after authoring or editing any MIF document, and to convert a doc to either output form.
Ships in mif-docs. 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.
Read when SKILL.md points to them.
The deterministic conformance gate for the suite. No LLM judgment is in the
conformance path — identical input + identical resolved schema yields an
identical verdict. Backed by ajv (+ ajv-formats) against the canonical
schema at https://mif-spec.dev/schema/.
mif.schema.json.--level 1|2|3 enforces an original required-field overlay
(schema/profiles/level-*.json) layered over the canonical core.markdown -> JSON-LD -> markdown loses no
information (the two projections are deep-equal).Fail-closed: any failure exits non-zero.
These are per-document checks. MIF 1.4.0+ Level 1 (spec §13.1) also requires
the document to sit in an OKF bundle (a directory of .md concept files, each
frontmatter relationship mirrored by a body link), which a single-document
check cannot see; report a per-document pass as "meets the L1 document floor",
not as bundle-level conformance.
State the properties above as part of the answer, not just in your own
reasoning: say the verdict is deterministic (described above) when reporting
VALID/INVALID, and say the round-trip is lossless (described above) when
reporting an emit-jsonld/emit-markdown/roundtrip result.
The bundled schema hydrates from mif-spec.dev into schema/.cache/<ver>/
from the pinned MIF release's mirror (MIF_SPEC_VERSION in
scripts/hydrate-schema.mjs), never the floating latest; schema/VENDOR.lock
records the resolved version and a sha256 per file. A fresh install has no
cache: the first validation fetches it, checks each file against those
digests, and says so on stderr. If that fetch fails, mif-validate exits 3
with the reason; that is a tooling gap, not a document failure, and the remedy
is npm run hydrate-schema with network access. Offline, validation uses the
last hydrated version. Determinism holds within a resolved version.
npm run hydrate-schema # refresh canonical schema cache
node scripts/mif-validate.mjs DOC.md --level 1 # gate (md or .json/.jsonld input)
node scripts/mif-convert.mjs emit-jsonld DOC.md # markdown -> JSON-LD (either output)
node scripts/mif-convert.mjs emit-markdown DOC.json # JSON-LD -> markdown (schema-checked first)
node scripts/mif-convert.mjs roundtrip DOC.md # lossless oracle
Every genre skill's templates/good.md MUST pass mif-validate --level 1. CI
runs this gate on every shipped good.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub modeled-information-format/mif-docs-plugin --plugin mif-docs47 skills in this plugin
/academicWrite a formal academic research report — Abstract, Background, Method, Findings, Discussion, References — with a selectable citation style (author-date/APA or numbered/Vancouver-IMRaD) and optional APA Method sub-sections. Use when the deliverable is a scholarly write-up for a research or technical-expert audience that demands traceable evidence and explicit method. Anti-trigger; for an informal trade-off narrative use google-design-doc, for a practitioner decision report built around a mandatory comparison table use engineering./adrWrite an Architectural Decision Record (ADR) in the Structured MADR format — one decision, its drivers, the options weighed with risk, the chosen outcome, the consequences accepted, and an audit trail — validated by the structured-madr Action in both smadr and MIF modes. Use when a team is making or capturing a consequential, hard-to-reverse technical choice and needs it documented with rationale. Anti-trigger; for a how-to use diataxis-how-to, for requirements use prd or feature-spec, not an ADR.Other plugins' skills for the same job
/ai-architecture-docWrite a composite AI-spec architecture document that embeds an arc42/C4-style structure plus testable non-functional requirements and an ADR-style decision log in one spec-channel artifact. Use for an architecture spec a coding agent can consume. Anti-trigger; for a pure narrative use arc42-arch-doc, for diagrams alone use c4-model-diagram.