obsidian-dev
GitHub用于通过 Obsidian CLI 进行插件和主题开发、测试、重载、调试及诊断。涵盖插件管理、命令热键查询、DOM/CSS 检查、控制台错误分析及截图等功能,支持安全地执行开发者指令。
Trigger Scenarios
Install
npx skills add fanfan-de/anybox --skill obsidian-dev -g -y
SKILL.md
Frontmatter
{
"name": "obsidian-dev",
"description": "Use when developing, testing, reloading, debugging, inspecting, screenshotting, or diagnosing Obsidian community plugins, themes, commands, hotkeys, DOM, CSS, console output, or captured JavaScript errors through Obsidian CLI developer commands."
}
Obsidian Developer CLI
Use this skill for Obsidian plugin and theme development workflows through the obsidian CLI.
Plugin Commands
obsidian plugins filter=community versions format=json
obsidian plugins:enabled filter=community versions format=json
obsidian plugin id=my-plugin
obsidian plugin:enable id=my-plugin filter=community
obsidian plugin:disable id=my-plugin filter=community
obsidian plugin:reload id=my-plugin
Use plugin:reload after building a community plugin during development. Use enable and disable only when the user explicitly asks.
Command Palette And Hotkeys
obsidian commands
obsidian commands filter=my-plugin
obsidian command id=my-plugin:run-action
obsidian hotkeys verbose format=json
obsidian hotkey id=my-plugin:run-action verbose
Only run arbitrary commands when the command ID and intended effect are understood.
Developer Diagnostics
obsidian devtools
obsidian dev:errors
obsidian dev:errors clear
obsidian dev:console limit=100
obsidian dev:console level=error
obsidian dev:screenshot path="obsidian-screenshot.png"
After reloading a plugin, check dev:errors and dev:console level=error.
DOM, CSS, And CDP
obsidian dev:dom selector=".workspace-leaf.mod-active"
obsidian dev:css selector=".markdown-preview-view" prop=color
obsidian dev:cdp method="Runtime.evaluate" params="{\"expression\":\"app.vault.getFiles().length\"}"
Use dev:cdp only for targeted diagnostics. Keep expressions read-only unless the user explicitly asks for an in-app mutation.
Eval
obsidian eval code="app.vault.getFiles().length"
Use eval sparingly. Prefer built-in CLI commands for normal vault operations because they are safer and easier to audit.
Version History
- 08dc189 Current 2026-07-05 19:03


