Obsidian Plugin UI: Commands, Modals & Settings
When to use
Use this skill when you need to implementing custom ribbon icons, modal dialogs, editor commands, and configuration tabs in Obsidian plugins.
Prerequisites
- Obsidian installed (current stable version for desktop or mobile).
- Working knowledge of Markdown syntax and local file management.
Step-by-step workflow
- Understand structural conventions: Review vault conventions, frontmatter schemas, or community plugin prerequisites.
- Configure settings & templates: Set up necessary folder paths, template variables, or plugin options.
- Draft content / script: Write structured Markdown, Dataview queries, or plugin automation logic.
- Test interaction & rendering: Preview note rendering in Reading View, test graph navigation, or trigger commands.
- Enforce vault security: Audit links, verify attachment locations, and ensure no secrets or sensitive credentials are recorded.
Commands / code examples
import { App, Modal, Setting } from 'obsidian';
export class ServiceSearchModal extends Modal {
constructor(app: App, private onSelect: (service: string) => void) {
super(app);
}
onOpen() {
const { contentEl } = this;
contentEl.createEl('h3', { text: 'Select Target Microservice' });
new Setting(contentEl)
.setName('Service Identifier')
.addText((text) =>
text.onChange((val) => {
this.onSelect(val);
})
);
}
onClose() {
this.contentEl.empty();
}
}
Common mistakes & pitfalls
- Installing unvetted community plugins without reviewing source code and network permissions.
- Storing plaintext credentials, API keys, or sensitive passwords inside Markdown notes.
- Creating brittle links by hardcoding absolute OS paths instead of using Obsidian
[[wikilinks]].
Verification checklist
Related skills
- obsidian-vault-structure-para-method
- obsidian-markdown-syntax-wikilinks-embeds
- obsidian-vault-security-privacy-hardening
- mcp-server-obsidian
1---2name: obsidian-plugin-ui-commands-settings3description: Use this skill when implementing custom ribbon icons, modal dialogs, editor commands, and configuration tabs in Obsidian plugins.4metadata:5 source: https://skillmd.com/skills/nextboxis/obsidian-plugin-ui-commands-settings6---78# Obsidian Plugin UI: Commands, Modals & Settings910## When to use11Use this skill when you need to implementing custom ribbon icons, modal dialogs, editor commands, and configuration tabs in Obsidian plugins.1213## Prerequisites14- Obsidian installed (current stable version for desktop or mobile).15- Working knowledge of Markdown syntax and local file management.1617## Step-by-step workflow181. **Understand structural conventions**: Review vault conventions, frontmatter schemas, or community plugin prerequisites.192. **Configure settings & templates**: Set up necessary folder paths, template variables, or plugin options.203. **Draft content / script**: Write structured Markdown, Dataview queries, or plugin automation logic.214. **Test interaction & rendering**: Preview note rendering in Reading View, test graph navigation, or trigger commands.225. **Enforce vault security**: Audit links, verify attachment locations, and ensure no secrets or sensitive credentials are recorded.2324## Commands / code examples25```ts26import { App, Modal, Setting } from 'obsidian';2728export class ServiceSearchModal extends Modal {29 constructor(app: App, private onSelect: (service: string) => void) {30 super(app);31 }3233 onOpen() {34 const { contentEl } = this;35 contentEl.createEl('h3', { text: 'Select Target Microservice' });3637 new Setting(contentEl)38 .setName('Service Identifier')39 .addText((text) =>40 text.onChange((val) => {41 this.onSelect(val);42 })43 );44 }4546 onClose() {47 this.contentEl.empty();48 }49}50```5152## Common mistakes & pitfalls53- Installing unvetted community plugins without reviewing source code and network permissions.54- Storing plaintext credentials, API keys, or sensitive passwords inside Markdown notes.55- Creating brittle links by hardcoding absolute OS paths instead of using Obsidian `[[wikilinks]]`.5657## Verification checklist58- [ ] Notes utilize valid Obsidian Markdown syntax and standard properties.59- [ ] No passwords, API keys, or private secrets exist inside the note files.60- [ ] Community plugins are documented and audited for permission boundaries.61- [ ] Agent integrations are verified on a scratch or copy vault prior to production use.6263## Related skills64- obsidian-vault-structure-para-method65- obsidian-markdown-syntax-wikilinks-embeds66- obsidian-vault-security-privacy-hardening67- mcp-server-obsidian