Context
Add a checker that warns when a context/*.md or patterns/*.md file is missing recommended frontmatter fields: name, description, last_updated.
Scope
- For each
context/*.md and patterns/*.md file, parse frontmatter and warn on any missing recommended field.
- Warning-level severity.
Where
- New checker:
src/drift/checkers/frontmatter-completeness.ts.
- Reuse the existing
parseFrontmatter helper in src/drift/frontmatter.ts (the edges checker already uses it — see how checkEdges is wired in the per-file loop in src/drift/index.ts).
- Register in
src/drift/index.ts; tests in test/checkers.test.ts.
Acceptance criteria
New to mex? Good first issue — reuses parseFrontmatter and follows the existing checker pattern. See CONTRIBUTING.md.
Context
Add a checker that warns when a
context/*.mdorpatterns/*.mdfile is missing recommended frontmatter fields:name,description,last_updated.Scope
context/*.mdandpatterns/*.mdfile, parse frontmatter and warn on any missing recommended field.Where
src/drift/checkers/frontmatter-completeness.ts.parseFrontmatterhelper insrc/drift/frontmatter.ts(theedgeschecker already uses it — see howcheckEdgesis wired in the per-file loop insrc/drift/index.ts).src/drift/index.ts; tests intest/checkers.test.ts.Acceptance criteria
name/description/last_updatedis missing.src/drift/index.ts.npm run typecheck && npm test && npm run buildpass.New to mex? Good first issue — reuses
parseFrontmatterand follows the existing checker pattern. See CONTRIBUTING.md.