Skip to main content

obsidian-markdown-structure

Validate and enforce markdown document structure including frontmatter positioning, heading hierarchy, and content organization. Use when creating or validating markdown files.

Jump to install

Source facts

Repository
jykim/AI4BM
Last source activity
November 19, 2025 at 21:13
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
3 files

Showing SKILL.md

SKILL.md
Source instructions ยท Read-only preview
name
obsidian-markdown-structure
description
Validate and enforce markdown document structure including frontmatter positioning, heading hierarchy, and content organization. Use when creating or validating markdown files.
allowed-tools
["Read","Edit"]
license
MIT
# 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**: ```markdown โœ… 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-frontmatter` skill. ### 2. Heading Hierarchy **Start with H2, no H1 duplication**: ```markdown โœ… CORRECT: --- title: Document Title --- ## Introduction Content... ### Subsection Content... โŒ INCORRECT: # Document Title (duplicates frontmatter title) ## Section ``` **Hierarchy 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**: ```markdown โœ… 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 Section ``` ### 4. Quote Block Formatting **Blockquotes with attribution**: ```markdown โœ… CORRECT: > "Quote text here" - Speaker/Context > "์–ด๋–ค ์†Œ๋ฆ„๋„ ๋‹น์‹ ์—๊ฒŒ ๋‹ฟ์ง€ ์•Š๊ณ  ์–ด๋–ค ๋ง๋„ ๋‹น์‹ ์„ ํ”๋“ค์ง€ ๋ชปํ•  ๋•Œ..." > - ์„ธ๋„ค์นด, via [[Limitless/2025-10-31#Section]] โŒ INCORRECT: "Quote text" (not in blockquote) > Quote without attribution ``` ## Structure Validation Workflow ### Step 1: Check Frontmatter ```markdown Verify: - [ ] Single YAML block at top - [ ] Blank line after closing --- - [ ] All required properties present - [ ] Consistent property names ``` ### Step 2: Check Heading Hierarchy ```markdown Verify: - [ ] No H1 after frontmatter (except Lifelog) - [ ] Main sections use H2 - [ ] Subsections use H3 - [ ] No skipped levels - [ ] Logical organization ``` ### Step 3: Check Content Organization ```markdown Verify: - [ ] No content before first heading - [ ] Summary/overview section first - [ ] Sections follow logical order - [ ] Proper quote formatting ``` ### Step 4: Content-Type Specific ```markdown Check content follows appropriate template structure: - [ ] Refer to `_Settings_/Templates/` for content-type specific formats - [ ] Lifelog: H1 title, standard sections (Monologues, Conversations, etc.) - [ ] Roundup: Opening quote(s), Korean section headers - [ ] Events: Executive Summary, Key Takeaways, Next Actions - [ ] Clippings: Summary first, ICT section with H3 ``` ## Reference Documentation For content-type specific formats: - `_Settings_/Templates/` - Standard templates for each content type (Lifelog, Roundup, Events, etc.) For detailed validation rules: - `reference/examples.md` - Structure validation examples ## Quality 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 (check `_Settings_/Templates/`)
View on GitHub