obsidian-markdown-structure
Skill49 starsChanged 10 months agoMITView on GitHub
Validate and enforce markdown document structure including frontmatter positioning, heading hierarchy, and content organization. Use when creating or validating markdown files.
In this repository21 other files it gives its agents.
- ai4pkm-helperSkill
- create-vlog-scriptSkill
- docx-to-markdownSkill
- epub-to-markdownSkill
- gemini-image-skillSkill
- gobi-onboardingSkill
- interactive-writing-assistantSkill
- markdown-slidesSkill
- markdown-videoSkill
- obsidian-canvasSkill
- obsidian-cliSkill
- obsidian-linksSkill
- obsidian-mermaidSkill
- obsidian-yaml-frontmatterSkill
- remotion-narrated-video-essaySkill
- remotion-vlogSkill
- video-add-chaptersSkill
- video-cleaningSkill
- video-full-processSkill
- voice-clone-skillSkill
- youtube-transcript-summarizerSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 17
Create new markdown documents
- Distinctive: line 56
Must be first thing in file
- Distinctive: line 58
No content before first heading
- Very specific: line 85
Use H2 (##) for main sections
- Very specific: line 86
Use H3 (###) for subsections
- Very specific: line 87
Use H4 (####) sparingly
- Distinctive: line 88
Don't skip levels (H2 → H4)
- Distinctive: line 174
Before completing structure validation:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Markdown Structure Validation
Enforce consistent markdown structure across all vault content.
When to Use This Skill
Activate when you need to:
- Create new markdown documents
- Validate document structure
- Fix structural issues
- Ensure consistent formatting
Core Structure Rules
1. Frontmatter Positioning
Single YAML block at top, blank line after:
✅ CORRECT:
---
title: Document Title
created: 2025-10-31
tags:
- tag1
---
## First Section Header
Content starts here...
❌ INCORRECT:
---
title: Document Title
---
## First Section (no blank line)
❌ INCORRECT:
## Title
---
frontmatter: here
---
(frontmatter not at top)Critical Rules:
- One YAML block only
- Must be first thing in file
- Blank line after closing
--- - No content before first heading
Note: This skill validates frontmatter POSITION (where it goes in the document). For frontmatter CONTENT (properties, values, formatting), use
obsidian-yaml-frontmatterskill.
2. Heading Hierarchy
Start with H2, no H1 duplication:
✅ CORRECT:
---
title: Document Title
---
## Introduction
Content...
### Subsection
Content...
❌ INCORRECT:
# Document Title (duplicates frontmatter title)
## SectionHierarchy Rules:
- Use H2 (
##) for main sections - Use H3 (
###) for subsections - Use H4 (
####) sparingly - Don't skip levels (H2 → H4)
3. Content Organization
Summary-first structure:
✅ CORRECT:
---
frontmatter
---
## Summary
Overview of key points...
## Main Content
Detailed content...
## Related Topics
Links and connections...
❌ INCORRECT:
---
frontmatter
---
This is content without a heading.
## First Section4. Quote Block Formatting
Blockquotes with attribution:
✅ CORRECT:
> "Quote text here" - Speaker/Context
> "Knowledge is power, but enthusiasm pulls the switch."
> - Ivern Ball
❌ INCORRECT:
"Quote text" (not in blockquote)
> Quote without attributionStructure Validation Workflow
Step 1: Check Frontmatter
Verify:
- [ ] Single YAML block at top
- [ ] Blank line after closing ---
- [ ] All required properties present
- [ ] Consistent property namesStep 2: Check Heading Hierarchy
Verify:
- [ ] No H1 after frontmatter (except special cases)
- [ ] Main sections use H2
- [ ] Subsections use H3
- [ ] No skipped levels
- [ ] Logical organizationStep 3: Check Content Organization
Verify:
- [ ] No content before first heading
- [ ] Summary/overview section first
- [ ] Sections follow logical order
- [ ] Proper quote formattingStep 4: Content-Type Specific
Check content follows appropriate template structure:
- [ ] Journal: H1 title, standard sections
- [ ] Roundup: Opening quote(s), structured headers
- [ ] Events: Executive Summary, Key Takeaways, Next Actions
- [ ] Clippings: Summary first, then detailed sectionsQuality Checklist
Before completing structure validation:
- Single YAML frontmatter at top
- Blank line after frontmatter
- No content before first heading
- Heading hierarchy correct (H2 → H3 → H4)
- Quote blocks properly formatted
- Summary/overview section present
- Sections in logical order
- Template structure followed for content type
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.

