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 ) - TypeScript strict mode enabled ( in tsconfig) - Familiarity with / lifecycle Instructions Step 1: Typed settings with versioned migration Settings break when you add or rename fields between releases. Version the settings object and…