How to build and release your first Obsidian plugin
Когда использовать: You have a concrete workflow improvement and want a plugin in a day.
Поток
-
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