Obsidian Markdown Structure skill for Claude

Validate and enforce markdown document structure including frontmatter positioning, heading hierarchy, and content organization.

When Claude uses it

Use when creating or validating markdown files.

Obsidian Markdown Structure SKILL.md

The full skill file from jykim/claude-obsidian-skills (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:

✅ 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:

✅ 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:

✅ 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:

✅ CORRECT:
> "Quote text here" - Speaker/Context

> "Knowledge is power, but enthusiasm pulls the switch."
> - Ivern Ball

❌ INCORRECT:
"Quote text" (not in blockquote)
> Quote without attribution

Structure Validation Workflow

Step 1: Check Frontmatter

Verify:
- [ ] Single YAML block at top
- [ ] Blank line after closing ---
- [ ] All required properties present
- [ ] Consistent property names

Step 2: Check Heading Hierarchy

Verify:
- [ ] No H1 after frontmatter (except special cases)
- [ ] Main sections use H2
- [ ] Subsections use H3
- [ ] No skipped levels
- [ ] Logical organization

Step 3: Check Content Organization

Verify:
- [ ] No content before first heading
- [ ] Summary/overview section first
- [ ] Sections follow logical order
- [ ] Proper quote formatting

Step 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 sections

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 for content type

How to install Obsidian Markdown Structure

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit jykim/claude-obsidian-skills/obsidian-markdown-structure#main ~/.claude/skills/obsidian-markdown-structure

Codex

npx degit jykim/claude-obsidian-skills/obsidian-markdown-structure#main ~/.codex/skills/obsidian-markdown-structure

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Obsidian Markdown Structure skill do?

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

+How do I install Obsidian Markdown Structure in Claude Code?

Copy the skill folder into ~/.claude/skills/obsidian-markdown-structure, for example with "npx degit jykim/claude-obsidian-skills/obsidian-markdown-structure#main ~/.claude/skills/obsidian-markdown-structure". Claude Code loads it automatically and uses it when a task matches.

+Does Obsidian Markdown Structure work with ChatGPT or Codex?

Yes. Obsidian Markdown Structure uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/obsidian-markdown-structure. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Obsidian Markdown Structure free?

Obsidian Markdown Structure is published on GitHub by jykim under the MIT license, which allows free use.

Related productivity skills

  1. Handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    mattpocock/skills★ 327k
  2. Notebooklm

    Use for anything in Google NotebookLM: querying notebooks, adding sources, generating Audio or Video Overviews, reports, flashcards or…

    alirezarezvani/claude-skills★ 30k
  3. Teach

    Teach the user a new skill or concept, within this workspace.

    mattpocock/skills★ 327k
  4. Obsidian Mermaid

    Create Obsidian-compatible Mermaid diagrams. Prefer square layouts (TB + subgraph LR), avoid markdown in labels.

    jykim/claude-obsidian-skills★ 52
  5. Obsidian Yaml Frontmatter

    Manage YAML frontmatter properties with consistent formatting, property names, and value types.

    jykim/claude-obsidian-skills★ 52
  6. Self Improving Agent

    Captures and maintains learnings, errors, and corrections. Use when a command fails, the user corrects an assumption, a capability is…

    pskoett/self-improving-agent★ 792
  7. Obsidian Cli

    Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more.

    obsidianmd/obsidian-skills★ 53k
  8. Obsidian Markdown

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    obsidianmd/obsidian-skills★ 53k
  9. Notion Cli

    Use the Notion CLI (`ntn`) to interact with the Notion API, manage workers, and upload files.

    makenotion/skills★ 184

See all productivity skills →

More skills from jykim

  1. Remotion Narrated Video Essay

    Edit narration-led Remotion video essays using talking-head footage, overlays, selective B-roll, comic callouts, and still-frame visual QA.

    jykim/claude-obsidian-skills★ 52

All skills by jykim →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.