obsidian-markdown
Obsidian Flavored Markdown Skill
This skill enables Claude Code to create and edit valid Obsidian Flavored Markdown, including all Obsidian-specific syntax extensions.
Overview
Obsidian uses a combination of Markdown flavors:
- CommonMark
- GitHub Flavored Markdown
- LaTeX for math
- Obsidian-specific extensions (wikilinks, callouts, embeds, etc.)
Quick Reference
Text Formatting
**Bold** or __Bold__
*Italic* or _Italic_
***Bold + Italic***
~~Strikethrough~~
==Highlight==
`Inline code`
Headings
# Heading 1
## Heading 2
### Heading 3
Links
Wikilinks (Obsidian-specific):
[[Note Name]]
[[Note Name|Display Text]]
[[Note Name#Heading]]
[[Note Name#^block-id]]
Markdown links:
[Display Text](note.md)
[Display Text](https://example.com)
Embeds
![[Note Name]] # Embed note
![[image.png]] # Embed image
![[image.png|300]] # Resize
![[document.pdf#page=3]] # PDF page
Callouts
> [!note]
> Note content
> [!warning] Custom Title
> Warning content
Supported types: note, info, tip, success, question, warning, failure, danger, bug, example, quote, important, hint, caution, missing, summary, help
Lists
- Unordered list item
- Another item
1. Ordered list
2. Another item
- [ ] Task
- [x] Completed task
Code Blocks
```python
def hello():
print("Hello")
```
Tables
| Header 1 | Header 2 |
|----------|----------|
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
Math (LaTeX)
Inline math: $E = mc^2$
Block math:
$$
\sum_{i=0}^n i^2 = \frac{n(n+1)(2n+1)}{6}
$$
Diagrams (Mermaid)
```mermaid
graph LR
A[Start] --> B[End]
```
Properties (Frontmatter)
Basic Structure
---
key: value
another_key: another value
list:
- item1
- item2
---
Content here...
Common Property Types
---
# Text
title: "My Note"
author: John Doe
# Lists
tags: [tag1, tag2, tag3]
categories:
- category1
- category2
# Numbers
priority: 1
count: 100
# Dates
created: 2024-01-12
modified: 2024-01-12
due_date: 2024-12-31
# Booleans
done: false
important: true
---
Property Queries
Dataview plugin can query properties:
```dataview
TABLE file.name, priority, due_date
FROM #task
WHERE !done
SORT priority ASC
## Tags
### Tag Syntax
```markdown
#tag # Top of file for global tag
#nested/tag # Nested tag
#multi/word/tag # Multiple levels
Inline in sentence: #this-is-a-tag
Tag Search
[[#tag]] # Search for tag
tag:#project # In properties
Complete Example
---
title: "Project Overview"
tags: [project, active]
created: 2024-01-12
status: in-progress
priority: 1
---
# Project Overview
This document describes the [[Main Project]] architecture.
## Goals
- [ ] Design database schema
- [x] Create API endpoints
- [ ] Implement frontend
> [!important]
> Remember to update the [[Dependencies]] before deployment.
## Architecture
```mermaid
graph TD
A[Client] --> B[API]
B --> C[Database]
B --> D[Cache]
Related Files
- [[Design Docs/UI Mockups]]
- [[API Reference]]

Notes
See also #project/planning for timeline details.
## Validation Rules
### Required Structure
- Valid Markdown syntax
- Proper YAML frontmatter (if properties used)
- Correct wikilink syntax: `[[Note Name]]`
### Common Mistakes
- ❌ Using wrong link syntax in wikilinks: `[[note.md]]` (use `[[note]]`)
- ❌ Missing closing code fence: ```` ``` ````
- ❌ Invalid YAML indentation (must use spaces, not tabs)
- ❌ Unclosed callout blocks
### Best Practices
1. Use wikilinks for internal notes: `[[Note]]`
2. Use markdown links for external URLs: `[text](url)`
3. Add frontmatter properties for metadata
4. Use tags for organization
5. Use callouts for important notes
## Important Notes
1. **Wikilinks**: Don't include `.md` extension in wikilinks
2. **Images**: Use `![[image.png]]` for embedded, `![]()` for external
3. **Math**: Use `$` for inline, `$$` for block
4. **Code blocks**: Always specify language for syntax highlighting
5. **Properties**: YAML must be at the very top of the file
## Detailed Documentation
For complete syntax reference and examples, see [REFERENCE.md](REFERENCE.md):
- All Markdown formatting options
- Advanced link techniques
- All callout types and styling
- Code block syntax highlighting
- Mermaid diagram types
- Dataview query syntax
- HTML content and embeds
- Footnotes and comments
More from lingengyuan/my-skills
wechat-archiver
Archives WeChat Official Account articles to knowledge base with auto-generated structured notes. Use when users provide WeChat article URLs (mp.weixin.qq.com) or mention archiving/saving WeChat articles. Combines wechat2md scraper and note-creator for complete workflow.
21md2wechat
Converts Markdown to WeChat Official Account HTML using AI-themed layouts and optionally one-click publishes to the draft box. Use when formatting Markdown for WeChat or uploading drafts with WECHAT_APPID/WECHAT_SECRET set in an env file.
9note-creator
Orchestrates creation of structured Obsidian notes with markdown, canvas diagrams, and table bases. Use when users ask to create notes, save knowledge, or document concepts in their Obsidian vault. Delegates to specialized format skills.
9sync_to_github
Automate git commit and push. Use when user says "sync to github", "commit and push", "push my changes", "save to git", "submit my work", or invokes /sync_to_github. Stages all changes, generates a commit message, commits, and pushes to remote.
7json-canvas
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
6obsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
6