obsidian-markdown

bởi kepano

Tạo và chỉnh sửa Obsidian Flavored Markdown với wikilinks, embeds, callouts, properties và cú pháp đặc thù khác của Obsidian. Sử dụng khi làm việc với các tệp .md trong Obsidian, hoặc khi người dùng đề cập đến wikilinks, callouts, frontmatter, tags, embeds hoặc ghi chú Obsidian.

npx skills add https://github.com/kepano/obsidian-skills --skill obsidian-markdown

Obsidian Flavored Markdown Skill

Create and edit valid Obsidian Flavored Markdown. Obsidian extends CommonMark and GFM with wikilinks, embeds, callouts, properties, comments, and other syntax. This skill covers only Obsidian-specific extensions -- standard Markdown (headings, bold, italic, lists, quotes, code blocks, tables) is assumed knowledge.

Workflow: Creating an Obsidian Note

  1. Add frontmatter with properties (title, tags, aliases) at the top of the file. See PROPERTIES.md for all property types.
  2. Write content using standard Markdown for structure, plus Obsidian-specific syntax below.
  3. Link related notes using wikilinks ([[Note]]) for internal vault connections, or standard Markdown links for external URLs.
  4. Embed content from other notes, images, or PDFs using the ![[embed]] syntax. See EMBEDS.md for all embed types.
  5. Add callouts for highlighted information using > [!type] syntax. See CALLOUTS.md for all callout types.
  6. Verify the note renders correctly in Obsidian's reading view.

When choosing between wikilinks and Markdown links: use [[wikilinks]] for notes within the vault (Obsidian tracks renames automatically) and [text](url) for external URLs only.

Internal Links (Wikilinks)

[[Note Name]]                          Link to note
[[Note Name|Display Text]]             Custom display text
[[Note Name#Heading]]                  Link to heading
[[Note Name#^block-id]]                Link to block
[[#Heading in same note]]              Same-note heading link

Define a block ID by appending ^block-id to any paragraph:

This paragraph can be linked to. ^my-block-id

For lists and quotes, place the block ID on a separate line after the block:

> A quote block

^quote-id

Embeds

Prefix any wikilink with ! to embed its content inline:

![[Note Name]]                         Embed full note
![[Note Name#Heading]]                 Embed section
![[image.png]]                         Embed image
![[image.png|300]]                     Embed image with width
![[document.pdf#page=3]]               Embed PDF page

See EMBEDS.md for audio, video, search embeds, and external images.

Callouts

> [!note]
> Basic callout.

> [!warning] Custom Title
> Callout with a custom title.

> [!faq]- Collapsed by default
> Foldable callout (- collapsed, + expanded).

Common types: note, tip, warning, info, example, quote, bug, danger, success, failure, question, abstract, todo.

See CALLOUTS.md for the full list with aliases, nesting, and custom CSS callouts.

Properties (Frontmatter)

---
title: My Note
date: 2024-01-15
tags:
  - project
  - active
aliases:
  - Alternative Name
cssclasses:
  - custom-class
---

Default properties: tags (searchable labels), aliases (alternative note names for link suggestions), cssclasses (CSS classes for styling).

See PROPERTIES.md for all property types, tag syntax rules, and advanced usage.

Tags

#tag                    Inline tag
#nested/tag             Nested tag with hierarchy

Tags can contain letters, numbers (not first character), underscores, hyphens, and forward slashes. Tags can also be defined in frontmatter under the tags property.

Comments

This is visible %%but this is hidden%% text.

%%
This entire block is hidden in reading view.
%%

Obsidian-Specific Formatting

==Highlighted text==                   Highlight syntax

Math (LaTeX)

Inline: $e^{i\pi} + 1 = 0$

Block:
$$
\frac{a}{b} = c
$$

Diagrams (Mermaid)

```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Do this]
    B -->|No| D[Do that]
```

To link Mermaid nodes to Obsidian notes, add class NodeName internal-link;.

Footnotes

Text with a footnote[^1].

[^1]: Footnote content.

Inline footnote.^[This is inline.]

Complete Example

---
title: Project Alpha
date: 2024-01-15
tags:
  - project
  - active
status: in-progress
---

# Project Alpha

This project aims to [[improve workflow]] using modern techniques.

> [!important] Key Deadline
> The first milestone is due on ==January 30th==.

## Tasks

- [x] Initial planning
- [ ] Development phase
  - [ ] Backend implementation
  - [ ] Frontend design

## Notes

The algorithm uses $O(n \log n)$ sorting. See [[Algorithm Notes#Sorting]] for details.

![[Architecture Diagram.png|600]]

Reviewed in [[Meeting Notes 2024-01-10#Decisions]].

References

Thêm skills từ kepano

defuddle
kepano
Trích xuất nội dung markdown sạch từ các trang web bằng Defuddle CLI, loại bỏ tạp nham và điều hướng để tiết kiệm token. Sử dụng thay cho WebFetch khi người dùng cung cấp URL để đọc hoặc phân tích, cho tài liệu trực tuyến, bài báo, bài viết blog, hoặc bất kỳ trang web tiêu chuẩn nào. KHÔNG sử dụng cho URL kết thúc bằng .md — những URL đó đã là markdown, hãy dùng WebFetch trực tiếp.
web-scrapingresearchdocument
json-canvas
kepano
Tạo và chỉnh sửa tệp JSON Canvas (.canvas) với các nút, cạnh, nhóm và kết nối. Sử dụng khi làm việc với tệp .canvas, tạo canvas trực quan, bản đồ tư duy, lưu đồ, hoặc khi người dùng đề cập đến tệp Canvas trong Obsidian.
developmentdesigndocument
obsidian-cli
kepano
Tương tác với các kho Obsidian bằng CLI Obsidian để đọc, tạo, tìm kiếm và quản lý ghi chú, tác vụ, thuộc tính, v.v. Cũng hỗ trợ phát triển plugin và chủ đề với các lệnh để tải lại plugin, chạy JavaScript, ghi lại lỗi, chụp ảnh màn hình và kiểm tra DOM. Sử dụng khi người dùng yêu cầu tương tác với kho Obsidian của họ, quản lý ghi chú, tìm kiếm nội dung kho, thực hiện các thao tác kho từ dòng lệnh, hoặc phát triển và gỡ lỗi plugin và chủ đề Obsidian.
productivitydevelopmentdocument
obsidian-bases
kepano
Tạo và chỉnh sửa Obsidian Bases (tệp .base) với các chế độ xem, bộ lọc, công thức và bản tóm tắt. Sử dụng khi làm việc với tệp .base, tạo chế độ xem dạng cơ sở dữ liệu cho ghi chú, hoặc khi người dùng đề cập đến Bases, chế độ xem bảng, chế độ xem thẻ, bộ lọc hoặc công thức trong Obsidian.
databaseproductivitydata-analysis