obsidian-markdown
kepano/obsidian-skills · Agent Skill
建立和編輯 Obsidian 風格的 Markdown 檔案,支援 wiki 連結、嵌入、呼叫和屬性。
前往安裝 ↓總覽
| 發布者 | |
|---|---|
| 儲存庫 | kepano/obsidian-skills ↗ |
| 技能資料夾 | obsidian-markdown |
| 星 | 48,011 |
| 附帶檔案 | 4 |
| 授權 | MIT |
| 最近更新 | 2026年3月21日 |
| 連結 | 技能原始碼 ↗ · 儲存庫 ↗ |
Mozgi 檢查
我們在技能檔案中發現的內容。詳細資訊需訂閱。
安裝
技能就是一個含 SKILL.md 的資料夾。選擇你的代理,在專案根目錄的終端機(macOS、Linux 或 Windows 的 Git Bash)執行指令。
把提示貼到 Claude、Codex 或其他助理:它會自行檢查並安裝技能。
Install the “obsidian-markdown” skill from mozgi.io (https://mozgi.io/skills/obsidian-markdown/) for me. 1. Download the archive: https://mozgi.io/skills/obsidian-markdown/download If it fails, take the skill folder from the source: https://github.com/kepano/obsidian-skills/tree/main/skills/obsidian-markdown 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “obsidian-markdown” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/obsidian-markdown/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/kepano/obsidian-skills.git /tmp/obsidian-skills mkdir -p .claude/skills cp -r /tmp/obsidian-skills/skills/obsidian-markdown .claude/skills/obsidian-markdown
重新啟動 Claude Code — 技能就會出現在清單中,手動呼叫:/obsidian-markdown。要套用到所有專案,請放在 ~/.claude/skills。
git clone --depth 1 --branch main https://github.com/kepano/obsidian-skills.git /tmp/obsidian-skills mkdir -p .agents/skills cp -r /tmp/obsidian-skills/skills/obsidian-markdown .agents/skills/obsidian-markdown
Codex 會從目前資料夾往上到儲存庫根目錄,在 .agents/skills 中尋找技能;用 /skills 或 $obsidian-markdown 呼叫。所有專案:~/.agents/skills。
git clone --depth 1 --branch main https://github.com/kepano/obsidian-skills.git /tmp/obsidian-skills mkdir -p .cursor/skills cp -r /tmp/obsidian-skills/skills/obsidian-markdown .cursor/skills/obsidian-markdown
Cursor 啟動時會載入技能;在 Agent 聊天輸入「/」呼叫。Cursor 也會讀取 .claude/skills 與 .agents/skills。所有專案:~/.cursor/skills。
git clone --depth 1 --branch main https://github.com/kepano/obsidian-skills.git /tmp/obsidian-skills mkdir -p .gemini/skills cp -r /tmp/obsidian-skills/skills/obsidian-markdown .gemini/skills/obsidian-markdown
任務符合時,Gemini CLI 會提議啟用技能,由你確認。所有專案:~/.gemini/skills。
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀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 ↗ 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)
````markdown
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
````markdown
---
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
常見問題
obsidian-markdown 技能有什麼用途?
建立和編輯 Obsidian 風格的 Markdown 檔案,支援 wiki 連結、嵌入、呼叫和屬性。
如何安裝 obsidian-markdown?
打開本頁的「安裝」區塊並選擇你的代理 — Claude Code、Codex、Cursor 或 Gemini CLI:那裡有把技能資料夾複製到正確位置的現成指令。也可以複製「透過助理」分頁中的提示,讓助理自行檢查並安裝技能。
obsidian-markdown 適用哪些 AI 模型?
技能是純 Markdown 指示(Agent Skills 格式),因此 obsidian-markdown 適用任何讀取 SKILL.md 的代理:Claude Code、Codex、Cursor、Gemini CLI、GitHub Copilot、OpenCode 等。只有在任務符合技能描述時,模型才會載入指示。
obsidian-markdown 是免費的嗎?
此技能由 kepano 公開發布,採用 MIT 授權。技能本身免費 — 你只需向 AI 供應商支付實際使用的 token 費用。
安裝技能安全嗎?
技能是代理會遵循的指示,安裝前請閱讀 SKILL.md 及相關檔案。技能資料夾中的腳本只有在代理執行時才會運行 — 留意它的動作,不要授予多餘權限。
技能和 MCP 伺服器或外掛有何不同?
MCP 伺服器或外掛為模型提供新工具 — 會執行並回傳結果的程式碼。技能提供的是知識與流程:如何處理任務、要遵循哪些步驟、好的成果長什麼樣子。它不需要伺服器或 API 金鑰。