/obsidian-plugin-kit:obsidian-plugin-craftingfrom Obsidian Plugin Development
Use whenever work touches an Obsidian plugin — scaffolding one, editing its main.ts or manifest.json, wiring the vault/editor/workspace APIs, fixing eslint-plugin-obsidianmd violations, or preparing it for community-directory submission — even when "Obsidian" is only implied by a .obsidian folder or vault. Covers the full scaffold-to-submission lifecycle with current API facts. Not for authoring notes or markdown inside a vault.
Ships in Obsidian Plugin Development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Grounded in the official Obsidian developer docs (source repo fetched 2026-07-23), the obsidian-sample-plugin template, and eslint-plugin-obsidianmd v0.4.1. Structure inspired by the community gapmiss/obsidian-plugin-skill (MIT).
Working knowledge for building Obsidian plugins that pass automated and human review the first time. Use it to scaffold correctly, reach for the right API instead of a workaround, and ship through the community directory — grounded in the docs above, not training-data guesses.
<vault>/.obsidian/plugins/<plugin-id>/: main.js (bundled by esbuild from TypeScript), manifest.json, and optional styles.css. The obsidian npm package is typings only — it's an esbuild external, never bundled. Never develop in your real vault; use a dedicated dev vault.this.registerEvent / registerDomEvent / registerInterval so unload cleans up. Never store view references on the plugin; find views via getLeavesOfType() + instanceof. Don't detach leaves in onunload.onload runs before the app is interactive. Registrations only; put startup work (and vault.on('create') handlers, which fire for every file during vault init) inside this.app.workspace.onLayoutReady(...).instanceof-driven, and pop-out windows break instanceof. Narrow TAbstractFile with instanceof TFile — never cast. For DOM objects that may live in another window, use el.instanceOf(HTMLElement), activeWindow, activeDocument.innerHTML, fetch instead of requestUrl, Title Case UI text, default hotkeys, sample code left in, missing mobile gates.references/plugin-anatomy.md.references/linting-and-review.md + run the preflight script.references/submission-and-release.md.Load only the rows the task touches — usually one or two.
| Asking about… | Read |
|---|---|
manifest.json field rules, versions.json, folder layout, esbuild/sample-plugin tooling, the dev loop | references/plugin-anatomy.md |
onload/onunload, register* helpers, views/leaves, deferred views, pop-out windows, leak patterns the linter can't see | references/lifecycle-and-memory.md |
Vault vs Adapter, reading/writing files, FileManager, frontmatter, MetadataCache, path handling | references/vault-and-files.md |
| Commands, ribbon/status bar, icons, modals, menus, the Editor API, CM6 editor extensions, DOM helpers | references/editor-and-ui.md |
Settings tabs — classic PluginSettingTab and the 1.13 declarative API, migration, secrets | references/settings.md |
Mobile support, Platform gates, isDesktopOnly, requestUrl, load-time optimization | references/mobile-and-performance.md |
| ESLint setup, the full rule catalog, guideline review comments, security and accessibility rules | references/linting-and-review.md |
| Developer policies, submission requirements, the community.obsidian.md flow, GitHub Actions releases, beta testing | references/submission-and-release.md |
<dev-vault>/.obsidian/plugins/<plugin-id>/.manifest.json fields against the rules in plugin-anatomy.md — id and name restrictions are enforced at submission, so get them right now. The dev folder name must match id.npm install, then npm run dev (esbuild watch). Enable the plugin in Settings → Community plugins.MyPlugin/SampleSettingTab placeholders and delete all sample code — leftover sample code is an automatic review flag.Map the feature to its API surface via the reference table and follow that file's patterns. Prefer the specific API over the general one (Editor over Vault.modify for the active file, FileManager.processFrontMatter over string-editing frontmatter, getFileByPath over iterating all files) — most review comments are "you used the low-level API".
linting-and-review.md.python3 scripts/validate_plugin.py <plugin-dir> — for the manifest/versions.json/release checks the linter doesn't cover. scripts/ is relative to this skill's directory (your harness shows the skill's location when it loads), not the plugin repo; prefix the command with it. Fix every ERROR; treat WARNs as review comments in waiting.linting-and-review.md for what neither tool can see (UI text tone, accessibility, mobile behavior).Create a GitHub release whose tag exactly matches manifest.json version (no v prefix) with main.js, manifest.json, and styles.css attached, then submit once at community.obsidian.md. Automate future releases with the GitHub Actions workflow. Details, policies, and the update cycle: submission-and-release.md.
minAppVersion from the exact APIs a plugin uses, and check the Obsidian changelog before depending on later additions.eslint-plugin-obsidianmd is v0.4.1 here (npm, 2026-07-02). The rule catalog grows between minor versions — when a rule id isn't in linting-and-review.md, trust the installed package's README over this corpus.obsidian typings package is 1.13.1 (npm, 2026-06-09); the sample plugin pins "obsidian": "latest".references/editor-and-ui.md (opens in a new tab)references/lifecycle-and-memory.md (opens in a new tab)references/linting-and-review.md (opens in a new tab)references/mobile-and-performance.md (opens in a new tab)references/plugin-anatomy.md (opens in a new tab)references/settings.md (opens in a new tab)references/submission-and-release.md (opens in a new tab)references/vault-and-files.md (opens in a new tab)scripts/validate_plugin.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
obsidian-plugin-kit@cypherpoet-toolchest is listed by cypherpoet/cypherpoet-toolchest — review the source before installing
npx claudepluginhub cypherpoet/cypherpoet-toolchest --plugin obsidian-plugin-kit