A self-contained Claude Code plugin + CI tooling that makes structured-MADR ADRs MIF (Modeled Information Format) compliant at a user-selected level.
structured-MADR markdown stays canonical; a MIF JSON-LD object is derived from
each ADR's frontmatter + body (MIF ADR-011) and validated against the level chosen in
config.yml (mifConformanceLevel: 1|2|3, default 2).
.github/
config.yml # the one file you edit — selects the conformance level
schema/ # VENDORED MIF schemas (pinned in VENDOR.lock) + config + level profiles
ontologies/ # ADR-typing ontology (opt-in)
bin/ # mif-project.js (assemble), mif-validate.js (gate)
test/ # Ajv2020 golden wiring test
.claude-plugin/, commands/, agents/, skills/, hooks/ # the Claude Code plugin
- Locally / CI:
npm run validate:mif(usesconfig.yml). Override with--level N,--path DIR,--pattern GLOB,--config FILE,--strict. - As the published Action:
uses: <owner>/structured-madr@v2withmode: mif. - In Claude Code: the
mif-complianceskill +/mif-validateand/mif-projectcommands + theadr-mif-authoragent + an authoring-time enforcement hook.
schema/ is vendored verbatim from the immutable MIF 1.4.2 release mirror
(https://mif-spec.dev/schema/1.4.2/); VENDOR.lock pins
mifSpecVersion and a per-file sha256, and config.yml's mifVersion must
match it. Do not hand-edit — bump the vendor and re-run node .github/bin/vendor-check.js
(CI adds --remote, which also compares each file with the pinned mif-spec.dev
mirror and so fails until that MIF release is published).
To re-vendor: copy the files from https://mif-spec.dev/schema/<version>/, then
regenerate VENDOR.lock (version, source, checksums) and set mifVersion.