Creates, edits, reviews, organizes, and presents content for MiaoYan notes. Handles wikilinks, backlinks, math, Mermaid, PlantUML, Markmap, local attachments, and PPT mode.
Ships in miaoyan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create content for MiaoYan's actual Markdown and presentation surfaces. Prefer portable MiaoYan syntax over app-specific guesses or absolute local paths.
Use standard Markdown for headings, paragraphs, emphasis, links, images, blockquotes, ordered and unordered lists, code, and horizontal rules.
Use these supported extensions when they improve the content:
| Item | Status |
|------|--------|
| Draft | Done |
- [ ] Follow up
- [x] Draft complete
~~Removed text~~
==Highlighted text==
Text with a footnote.[^1]
[^1]: Footnote details.
Use fenced code with a language identifier:
```swift
let title = "MiaoYan"
```
Link to another note by its exact title, without the .md suffix:
See [[Project plan]] for the next steps.
Keep the target text aligned with the note title so MiaoYan can build backlinks. [[Project plan|plan]] shows plan and still links to Project plan, and [[Project plan#Milestones]] jumps to that heading inside the target note. Renaming a note inside MiaoYan automatically rewrites incoming [[Old Title]] links across the library. Do not invent block-reference or embed syntax such as ![[Note]] or [[Note^block]], since embeds are not supported.
Inline #tag and #parent/child tags in prose or YAML frontmatter tags are indexed for in-app search (#tag and todo: filters in the search bar). Note that ==Highlighted text== and footnotes apply to normal notes rather than Reveal.js PPT slides.
Keep local images in an i/ folder under the note's current MiaoYan folder and use the shared root-relative form:

Prefer /i/<filename> over file:// URLs or machine-specific absolute paths. Keep remote images as normal https:// URLs. Videos and every other file go in a files/ folder beside i/: a video as , which plays in place, and any other file as a link, [report.pdf](/files/<filename>).
When writing raw HTML for media, tables, or iframes, keep it responsive and avoid horizontal scrolling:
<img src="/i/architecture.png" alt="Architecture" style="max-width: 100%; height: auto;">
Use $...$ for inline math and $$...$$ for display math (KaTeX's mhchem extension \ce{...} / \pu{...} is also supported):
The result is $E = mc^2$.
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$
Use the matching fenced language for each diagram:
```mermaid
flowchart LR
Draft --> Review --> Publish
```
```plantuml
@startuml
Alice -> Bob: Hello
@enduml
```
```markmap
# Topic
## Branch
- Detail
```
Do not wrap diagram fences in additional HTML.
Use GitHub Alert markers for callouts:
> [!NOTE]
> This is useful context.
> [!WARNING]
> Back up the folder before moving it.
Supported markers are NOTE, TIP, IMPORTANT, WARNING, and CAUTION.
Use native HTML for collapsible details:
<details>
<summary>More details</summary>
Markdown content goes here.
</details>
Keep leading YAML frontmatter at the very start of the note:
---
date: 2026-07-24
tags:
- notes
---
MiaoYan hides leading frontmatter in rendered output when the block holds only key: value lines (with their continuations and comments); a --- block without keys renders as content, and in a deck it is the first slide. Do not move it into the body or add frontmatter unless the user needs metadata.
Separate slides with --- on its own line. Do not use a horizontal rule inside a slide because MiaoYan treats it as a slide boundary.
Start with this minimal structure:
# Presentation title
Opening idea
---
## Second slide
- One point
- Another point
Use Command + Option + P to open PPT mode in MiaoYan.
Place an optional HTML comment at the start of the presentation, after any YAML frontmatter:
<!--
transition: slide
backgroundTransition: none
slideNumber: c/t
controls: true
progress: true
-->
Use Reveal.js keys only when the user asks for presentation behavior. Keep defaults otherwise.
Add slide backgrounds immediately before a slide heading:
<!-- .slide: data-background="#F5F1E8" -->
## Context
Reveal points progressively with fragments:
- First point <!-- .element: class="fragment" data-fragment-index="1" -->
- Second point <!-- .element: class="fragment" data-fragment-index="2" -->
Highlight code lines with Reveal.js line ranges:
```swift [1|2-3|4]
struct Note {
let title: String
let body: String
}
```
Use raw HTML for a two-column slide only when the content truly needs columns:
<div style="display: flex; gap: 2rem;">
<div style="flex: 1;">Left content</div>
<div style="flex: 1;">Right content</div>
</div>
Keep local PPT images in /i/ just like normal notes. Avoid absolute file:// paths so presentations stay portable when the library moves or syncs to another Mac.
miao CLIUse only the commands that MiaoYan actually provides:
miao list [folder]
miao search <query>
miao cat <title|path>
miao open <title|path>
miao new <title> [text]
miao update
Use miao list . to include notes stored at the library root. When note titles repeat, inspect the candidate paths and use an explicit path; an exact title still resolves to the first match.
Use miao cat to inspect a note and miao open to show it in the app. miao search matches literal text in note filenames and bodies from the terminal (unlike the app's #tag and todo: structured search filters). Use miao new only for new notes. The CLI does not provide an edit-existing command, so do not invent miao edit, miao append, or similar commands.
miao update replaces the installed CLI. Run it only when the user asks to update the CLI, not while inspecting or editing notes.
If the CLI cannot detect the library, use the user's configured MiaoYan folder through MIAOYAN_PATH for that command. Never guess a private folder or write outside the user-approved library.
i/ as /i/<filename>, and videos and other files under files/ as /files/<filename>.--- separators on their own lines.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
miao-yan, note-taking, markdown-editor, wikilinks, presentations
/miaoyan:miaoyanfrom miaoyan
npx claudepluginhub tw93/miaoyan --plugin miaoyanOther plugins' skills for the same job