How to build and release your first Obsidian plugin
언제 쓸까: You have a concrete workflow improvement and want a plugin in a day.
사전 조건
- Node 18+ — nvm install 18
- A local vault for testing — Create a new Obsidian vault just for development
- Skill cloned — git clone https://github.com/gapmiss/obsidian-plugin-skill ~/.claude/skills/obsidian-plugin-skill
흐름
-
Scaffold the pluginScaffold an Obsidian plugin called 'smart-outline' with a command and a settings tab.✓ 복사됨→ Folder with manifest, main.ts, build config
-
Add the featureImplement: on command, open a modal showing the outline of the active note.✓ 복사됨→ Working modal reading from the active MarkdownView
-
Side-load and testInstall into the dev vault's plugins folder and reload Obsidian.✓ 복사됨→ Plugin shows up, command works
-
Prepare a releaseCreate versions.json and tag a v0.1.0 release.✓ 복사됨→ GitHub release with main.js + manifest.json attached
결과: A working, installable plugin you can submit to the Community store.
함정
- Forgetting versions.json — Community store rejects — Skill reminds; always keep it in sync with manifest.json
- Referencing Obsidian internals that aren't part of the API — Stick to the public API; treat internals as volatile