Agent skill · Audited from source
Obsidian Sdk Patterns
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 9 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Production-ready Obsidian plugin patterns: typed settings with migration,
Cite
Cite this page
ModelsAtlas. “Obsidian Sdk Patterns (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/obsidian-sdk-patterns
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/obsidian-pack/skills/obsidian-sdk-patternsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Production-ready Obsidian plugin patterns: typed settings with migration,
--- name: obsidian-sdk-patterns description: 'Production-ready Obsidian plugin patterns: typed settings with migration, safe vault operations, event auto-cleanup, workspace layout, metadata cache, and debounced file handlers. Use when hardening a plugin for release, refactoring for reliability, or learning idiomatic Obsidian TypeScript. Trigger with "obsidian patterns", "obsidian best practices", "obsidian production code", "idiomatic obsidian plugin". ' allowed-tools: Read, Write, Edit, Grep version: 1.13.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - obsidian - patterns - production - typescript - best-practices compatibility: Designed for Claude Code --- # 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": true` in tsconfig) - Familiarity with `Plugin.onload()` / `onunload()` lifecycle ## Instructions ### Step 1: Typed settings with versioned migration Settings break when you add or rename fields between releases. Version the settings object and migrate on load so existing users keep their data. ```typescript // src/settings.ts interface PluginSettingsV1 { apiKey: string; interval: number; } interface PluginSettingsV2 { version: 2; apiKey: string; syncInterval: number; // renamed from "interval" excludedFolders: string[]; // new field theme: "default" | "minimal"; } // Current version is always the latest type PluginSettings = PluginSettingsV2; const DEFAULTS: PluginSettings = { version: 2, apiKey: "", syncInterval: 300, excludedFolders: [], theme: "default", }; export async function loadSettings(plugin: Plugin): Promise<PluginSettings> { const raw = (await plugin.loadData()) as any; if (!raw) return { ...DEFAULTS }; // Migrate v1 -> v2 if (!raw.version || raw.version < 2) { raw.version = 2; if (raw.interval !== undefined) { raw.syncInterval = raw.interval; delete raw.interval; } raw.excludedFolders = raw.excludedFolders ?? []; raw.theme = raw.theme ?? "default"; await plugin.saveData(raw); } // Merge with defaults to pick up any newly added fields return { ...DEFAULTS, ...raw }; } ``` Why: `Object.assign({}, DEFAULTS, raw)` handles new fields added in patch releases. The explicit migration block handles renames and type changes between major versions. ### Step 2: Safe vault operations (check-before-act) The Vault API throws if you create a file that exists or read one that was deleted between your check and your call. Wrap every operation. ```typescript // src/vault-helpers.ts import { App, TFile, TFolder, TAbstractFile, normalizePath } from "obsidian"; export class VaultHelper { constructor(private app: App) {} /** Read file content, return null if file doesn't exist */ async safeRead(path: string): Promise<string | null> { const file = this.app.vault.getAbstractFileByPath(normalizePath(path)); if (!(file instanceof TFile)) return null; return this.app.vault.read(file); } /** Create or overwrite a file. Creates parent folders as needed. */ async safeWrite(path: string, content: string): Promise<TFile> { const normalized = normalizePath(path); await this.ensureParentFolder(normalized); const existing = this.app.vault.getAbstractFileByPath(normalized); if (existing instanceof TFile) { await this.app.vault.modify(existing, content); return existing; } return this.app.vault.create(normalized, content); } /** Append content to a file. Creates the file if it doesn't exist. */ async safeAppend(path: string, content: string): Promise<void> { const normalized = normalizePath(path); const existing = this.app.vault.getAbstractFileByPath(normalized); if (existing instanceof TFile) { const current = await this.app.vault.read(existing); await this.app.vault.modify(existing, current + content); } else { await this.ensureParentFolder(normalized); await this.app.vault.create(normalized, content); } } /** Delete a file if it exists, moving to trash by default. */ async safeDelete(path: string, useTrash = true): Promise<boolean> { const file = this.app.vault.getAbstractFileByPath(normalizePath(path)); if (!(file instanceof TFile)) return false; if (useTrash) { await this.app.vault.trash(file, false); } else { await this.app.vault.delete(file); } return true; } /** Ensure a folder (and all parents) exist. */ private async ensureParentFolder(filePath: string): Promise<void> { const parts = filePath.split("/"); parts.pop(); // remove filename let current = ""; for (const part of parts) { current = current ? `${current}/${part}` : part; const existing = this.app.vault.getAbstractFileByPath(current); if (!existing) { await this.app.vault.createFolder(current); } } } } ``` ### Step 3: Event management with automatic cleanup Every `this.registerEvent(...)` call in `onload()` is automatically cleaned up when the plugin unloads. Never use raw `addEventListener` or `app.vault.on()` without registering -- those leak. ```typescript export default class MyPlugin extends Plugin { async onload() { // File events -- auto-cleaned on unload this.registerEvent( this.app.vault.on("create", (file) => { if (file instanceof TFile) this.onFileCreated(file); }) ); this.registerEvent( this.app.vault.on("delete", (file) => { if (file instanceof TFile) this.onFileDeleted(file); }) ); this.registerEvent(
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/obsidian-sdk-patterns/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/obsidian-sdk-patterns/)
<a href="https://modelsatlas.com/skills/jeremylongshore/obsidian-sdk-patterns/"><img src="https://modelsatlas.com/skills/jeremylongshore/obsidian-sdk-patterns/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Obsidian Sdk Patterns
What does the Obsidian Sdk Patterns skill do?
Is Obsidian Sdk Patterns safe to install?
What can Obsidian Sdk Patterns access on my machine?
Which assistants does Obsidian Sdk Patterns work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Obsidian Sdk Patterns skill do?
- Is Obsidian Sdk Patterns safe to install?
- What can Obsidian Sdk Patterns access on my machine?