frontmatter-guard
Skill4 starsChanged 4 months agoMITView on GitHub
Audit and repair local brain page frontmatter before malformed pages break search, ingest, or future sync.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-verifySkill
- accessibility-reviewSkill
- archive-crawlerSkill
- article-enrichmentSkill
- ask-userSkill
- autoplanSkill
- benchmark-modelsSkill
- benchmarkSkill
- book-mirrorSkill
- brain-opsSkill
- brain-pdfSkill
- brain-taxonomistSkill
- briefingSkill
- browseSkill
- canarySkill
- captureSkill
- carefulSkill
- checkpointSkill
- citation-fixerSkill
- codexSkill
- cold-startSkill
- concept-synthesisSkill
- connect-chromeSkill
- context-restoreSkill
- context-saveSkill
- cron-schedulerSkill
- cross-modal-reviewSkill
- csoSkill
- daily-task-managerSkill
- daily-task-prepSkill
- data-researchSkill
- design-consultationSkill
- design-htmlSkill
- design-leadership-reviewSkill
- design-qualitySkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- diagramSkill
- document-generateSkill
- document-releaseSkill
- eiirpSkill
- enrichSkill
- freezeSkill
- functional-area-resolverSkill
- gbrain-advisorSkill
- gbrain-upgradeSkill
- gstackSkill
- gstack-upgradeSkill
- guardSkill
- healthSkill
- idea-ingestSkill
- idea-lineageSkill
- ingestSkill
- installSkill
- investigateSkill
- ios-cleanSkill
- ios-design-reviewSkill
- ios-fixSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user asks to validate frontmatter, fix frontmatter, run a brain lint, or check local brain page structure.
- Very specific: line 14
run python3 scripts/brain_doctor.py if available
- Very specific: line 15
if the upstream gbrain CLI exists, prefer read-only gbrain frontmatter audit --json
- Distinctive: line 39
Do not auto-fix user-authored pages without a before/after plan.
- Distinctive: line 40
Do not remove citations while normalizing frontmatter.
- Very specific: line 41
Do not treat citation repair as the same job.
- Distinctive: line 42
Never install a pre-commit hook without explicit user authorization.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontmatter Guard
Use this skill when the user asks to validate frontmatter, fix frontmatter, run a brain lint, or check local brain page structure.
Workflow
- Start read-only:
- inspect representative brain pages
- run
python3 scripts/brain_doctor.pyif available - if the upstream
gbrainCLI exists, prefer read-onlygbrain frontmatter audit --json
- Classify issues:
- missing opening or closing
--- - YAML parse errors
- empty frontmatter
- slug/path mismatch
- null bytes or non-text content in markdown files
- missing citation or source fields when local conventions require them
- missing opening or closing
- For mechanical fixes, show the intended file list before writing.
- For ambiguous fixes, ask for the intended title, type, or source instead of guessing.
- Re-run the audit after fixes.
Validation Classes
- file framing: opening and closing delimiters, UTF-8 text, and no null bytes
- YAML syntax: valid mappings, arrays, quoted scalars, and parseable dates
- schema: required fields, supported page type, and expected value shapes
- identity: slug, title, and path agreement
- provenance: source and citation fields required by the local page convention
Support four explicit modes: whole-corpus audit, single-path validation, scoped mechanical repair, and optional pre-commit validation. Quote scalar values when they contain YAML-significant punctuation, and prefer real YAML arrays over comma-packed strings.
Guardrails
- Do not auto-fix user-authored pages without a before/after plan.
- Do not remove citations while normalizing frontmatter.
- Do not treat citation repair as the same job; use
citation-fixerfor citation semantics. - Never install a pre-commit hook without explicit user authorization.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

