obsidian-sdk-patterns
Installation
SKILL.md
Obsidian SDK Patterns
Overview
Six production patterns that prevent the most common Obsidian plugin bugs: lost settings on upgrade, null-reference crashes on deleted files, memory leaks from unregistered events, stale metadata, and UI jank from rapid file changes. Each pattern is self-contained and copy-pasteable.
Prerequisites
- A working Obsidian plugin (see
obsidian-core-workflow-a) - TypeScript strict mode enabled (
"strictNullChecks": truein tsconfig) - Familiarity with
Plugin.onload()/onunload()lifecycle