by gapmiss
Agent SKILL for Obsidian.md plugin development
# Add to your Claude Code skills
git clone https://github.com/gapmiss/obsidian-plugin-skillGuides for using ai agents skills like obsidian-plugin-skill.
obsidian-plugin-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gapmiss. Agent SKILL for Obsidian.md plugin development. It has 204 GitHub stars.
obsidian-plugin-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/gapmiss/obsidian-plugin-skill" and add it to your Claude Code skills directory (see the Installation section above).
obsidian-plugin-skill is primarily written in JavaScript. It is open-source under gapmiss on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh obsidian-plugin-skill against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A comprehensive agent skill for developing high-quality Obsidian plugins that follow best practices, pass code review, and adhere to official submission guidelines.
This skill provides your coding agent with deep knowledge of Obsidian plugin development standards, including:
eslint-plugin-obsidianmd v0.6.0getSettingDefinitions()), the Obsidian 1.13 settings APInpx skills add https://github.com/gapmiss/obsidian-plugin-skill --skill obsidian
Clone this repository:
git clone https://github.com/gapmiss/obsidian-plugin-skill.git
cd obsidian-plugin-skill
Run the installer:
./install-skill.sh
Select your provider(s):
.agents/skills/ and .claude/skills/.claude/skills/ with slash commands.agents/skills/.agents/skills/Choose installation target (current directory or custom path)
git clone https://github.com/gapmiss/obsidian-plugin-skill.git
cd obsidian-plugin-skill
# Copy skill
mkdir -p your-project/.claude/skills/obsidian
cp -r .agents/skills/obsidian/* your-project/.claude/skills/obsidian/
# Copy slash commands
mkdir -p your-project/.claude/commands
cp .claude/commands/obsidian.md your-project/.claude/commands/
cp .claude/commands/create-plugin.md your-project/.claude/commands/
git clone https://github.com/gapmiss/obsidian-plugin-skill.git
cd obsidian-plugin-skill
# Copy skill
mkdir -p your-project/.agents/skills/obsidian
cp -r .agents/skills/obsidian/* your-project/.agents/skills/obsidian/
Just open this directory with your coding agent — no installation needed!
The skill uses progressive disclosure for optimal performance:
.agents/skills/obsidian/
├── SKILL.md # Main overview (~325 lines)
└── reference/ # Detailed documentation
├── memory-management.md # Lifecycle & cleanup patterns
├── type-safety.md # Type narrowing & safety
├── ui-ux.md # UI standards & commands
├── file-operations.md # Vault & file API
├── css-styling.md # Theming & styling
├── accessibility.md # A11y requirements (MANDATORY)
├── code-quality.md # Best practices & security
├── submission.md # Publishing guidelines
├── community-scanner.md # Scanner behavior & Scorecard (version-stamped)
└── eslint-setup.md # Complete ESLint config guide
SKILL.md provides a concise overview with ESLint rules and Scorecard guidance, while reference files contain comprehensive details on specific topics.
The fastest way to start a new Obsidian plugin with all best practices built-in:
node /path/to/obsidian-plugin-skill/tools/create-plugin.js
Features:
src/ directory structure with main.ts and settings.tsgetSettingDefinitions()), so it's lint-clean and searchable on Obsidian 1.13+. To target older Obsidian, lower minAppVersion and add a display() fallback — see Path Bpackage.json overrides minimatch to ^11.0.5, so npm audit reports 0 vulnerabilities — see belowWhat it creates:
your-plugin/
├── src/
│ ├── main.ts # Plugin class with settings integration
│ └── settings.ts # Settings interface, defaults, and declarative tab
├── manifest.json # Validated plugin metadata
├── styles.css # CSS with Obsidian variables
├── tsconfig.json # TypeScript configuration
├── package.json # Dependencies, plus a temporary minimatch override
├── esbuild.config.mjs # Build configuration
├── eslint.config.mjs # ESLint configuration
├── version-bump.mjs # Version management script
├── versions.json # Version tracking
├── .gitignore # Git ignore rules
└── LICENSE # MIT license
Interactive prompts:
., !, or ?, doesn't start with the name)1.13.0)Real-time validation catches common mistakes:
❌ Validation Errors:
• Plugin ID cannot contain "obsidian"
• Plugin name cannot contain "Plugin"
• Description must end with punctuation: . ! or ?
minimatch before 11.0.1 has a denial-of-service advisory (GHSA-g3hv-75wg-m249). The lint toolchain still depends on vulnerable versions — typescript-eslint on minimatch ^10, and eslint-plugin-obsidianmd via @microsoft/eslint-plugin-sdl → eslint-plugin-n on ^9 — so a plain install reports about 10 moderate vulnerabilities. The generated package.json forces the patched version:
"overrides": {
"minimatch@>=7 <11.0.1": "^11.0.5"
}
It is dev-only (nothing reaches main.js), but the community scanner's Review lists "No known vulnerable dependencies". Linting and type-aware rules are verified to work with it. A "//" key in the generated package.json (npm ignores it) explains the override in the project itself. Remove both once upstream moves to minimatch 11 — see the troubleshooting entry for how to check. Don't run npm audit fix --force: it downgrades eslint-plugin-obsidianmd to 0.0.2.
The remaining install warning, npm warn deprecated [email protected], is expected: ESLint 10 currently adds peer-dependency warnings from bundled plugins instead.
| Provider | Load skill | Create plugin |
|---|---|---|
| Claude Code | /obsidian |
/create-plugin |
| Codex (OpenAI) | $obsidian |
— |
| Windsurf | @obsidian |
— |
Skills are automatically discovered by your agent when present in the project directory. You can also invoke them explicitly using the commands above.
Just ask your agent naturally:
Help me implement a new command for my Obsidian plugin
Your agent will automatically use the Obsidian skill guidelines while helping you write code.
data-tooltip-positionThe main SKILL.md file highlights the most important rules organized by category:
Submission & Naming:
validate-manifest's checkId: true — turn it on before first submission)., !, or ?Memory & Lifecycle:
6. Use registerEvent() for automatic cleanup
7. Don't store view references in plugin
8. Don't call detachLeavesOfType() in onunload
Type Safety:
9. Use instanceof instead of type casting for