返回 Skill 列表
extension
分类: 开发与工程无需 API Key

plugins-themes

通过官方CLI进行Obsidian插件和主题管理。涵盖列出、启用、禁用和重新加载插件,切换主题以及开发工具(eval,截图)。当用户提到Obsidian插件、主题、插件开发、启用/禁用插件或在Obsidian中运行JavaScript时使用。

person作者: jakexiaohubgithub

Obsidian Plugin & Theme Management

Manage community plugins, themes, and developer tools using the official Obsidian CLI.

Prerequisites

  • Obsidian desktop v1.12.4+ with CLI enabled
  • Obsidian must be running

When to Use

Use this skill automatically when:

  • User wants to list, enable, or disable Obsidian plugins
  • User needs to reload a plugin during development
  • User wants to switch or list themes
  • User needs to run JavaScript in the Obsidian runtime
  • User wants to take screenshots of the Obsidian app

Plugin Management

List Plugins

# All installed plugins
obsidian plugins

# JSON output
obsidian plugins format=json

Enable / Disable

# Enable a plugin by ID
obsidian plugin:enable id=dataview

# Disable a plugin
obsidian plugin:disable id=dataview

Reload (Development)

# Hot-reload a plugin during development
obsidian plugin:reload id=my-plugin

Theme Management

List Themes

# Available themes
obsidian themes

Switch Theme

# Set active theme
obsidian theme:set name="Minimal"

Developer Tools

Eval (JavaScript Execution)

# Execute JavaScript in Obsidian's runtime context
obsidian eval code="app.vault.getFiles().length"

# Access the full Obsidian API
obsidian eval code="app.workspace.getActiveFile()?.path"

Screenshot

# Capture Obsidian window
obsidian dev:screenshot path=~/screenshot.png

Agentic Optimizations

| Context | Command | |---------|---------| | List plugins (structured) | obsidian plugins format=json | | Enable plugin | obsidian plugin:enable id=X | | Disable plugin | obsidian plugin:disable id=X | | Reload during dev | obsidian plugin:reload id=X | | List themes | obsidian themes | | Switch theme | obsidian theme:set name="X" | | Run JS in Obsidian | obsidian eval code="expression" |

Related Skills

  • vault-files — Core file operations the plugins operate on
  • publish-sync — Publish and sync workflows