[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F88Q64MB8RBK0XP3Y95VGH":3,"skill-same:01M6F88Q64MB8RBK0XP3Y95VGH":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6F88Q64MB8RBK0XP3Y95VGH","obsidian-core-workflow-b",null,"Execute Obsidian secondary workflow: UI components and user interaction.\nUse when building modals, views, suggestions, or custom UI elements.\nTrigger with phrases like \"obsidian modal\", \"obsidian UI\",\n\"obsidian view\", \"obsidian custom interface\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-core-workflow-b\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"workflow","obsidian","core","obsidian core workflow b","when","custom","interface","with","ui components","interaction","trigger","io","elements","use","view","edit","write","read","grep","Bash","modal","ui","components","2026-11-10 10:12:30",false,"---\nname: obsidian-core-workflow-b\ndescription: |\n  Execute Obsidian secondary workflow: UI components and user interaction.\n  Use when building modals, views, suggestions, or custom UI elements.\n  Trigger with phrases like \"obsidian modal\", \"obsidian UI\",\n  \"obsidian view\", \"obsidian custom interface\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Obsidian Core Workflow B: UI Components\n\n## Overview\nSecondary workflow for Obsidian: building modals, views, suggestion popups, and custom UI elements.\n\n## Prerequisites\n- Completed `obsidian-install-auth` setup\n- Familiarity with `obsidian-core-workflow-a`\n- Understanding of DOM manipulation\n\n## Instructions\n\n### Step 1: Modal Dialogs\n```typescript\nimport { App, Modal, Setting } from 'obsidian';\n\n\u002F\u002F Simple confirmation modal\nexport class ConfirmModal extends Modal {\n  private result: boolean = false;\n  private onSubmit: (result: boolean) => void;\n  private message: string;\n\n  constructor(app: App, message: string, onSubmit: (result: boolean) => void) {\n    super(app);\n    this.message = message;\n    this.onSubmit = onSubmit;\n  }\n\n  onOpen() {\n    const { contentEl } = this;\n\n    contentEl.createEl('h2', { text: 'Confirm Action' });\n    contentEl.createEl('p', { text: this.message });\n\n    new Setting(contentEl)\n      .addButton(btn => btn\n        .setButtonText('Cancel')\n        .onClick(() => {\n          this.result = false;\n          this.close();\n        }))\n      .addButton(btn => btn\n        .setButtonText('Confirm')\n        .setCta()\n        .onClick(() => {\n          this.result = true;\n          this.close();\n        }));\n  }\n\n  onClose() {\n    this.onSubmit(this.result);\n  }\n}\n\n\u002F\u002F Form input modal\nexport class InputModal extends Modal {\n  private value: string = '';\n  private onSubmit: (value: string | null) => void;\n  private placeholder: string;\n  private title: string;\n\n  constructor(\n    app: App,\n    title: string,\n    placeholder: string,\n    onSubmit: (value: string | null) => void\n  ) {\n    super(app);\n    this.title = title;\n    this.placeholder = placeholder;\n    this.onSubmit = onSubmit;\n  }\n\n  onOpen() {\n    const { contentEl } = this;\n\n    contentEl.createEl('h2', { text: this.title });\n\n    new Setting(contentEl)\n      .setName('Input')\n      .addText(text => text\n        .setPlaceholder(this.placeholder)\n        .onChange(value => this.value = value));\n\n    new Setting(contentEl)\n      .addButton(btn => btn\n        .setButtonText('Cancel')\n        .onClick(() => {\n          this.close();\n          this.onSubmit(null);\n        }))\n      .addButton(btn => btn\n        .setButtonText('Submit')\n        .setCta()\n        .onClick(() => {\n          this.close();\n          this.onSubmit(this.value);\n        }));\n  }\n\n  onClose() {\n    const { contentEl } = this;\n    contentEl.empty();\n  }\n}\n```\n\n### Step 2: Suggestion Popups (FuzzySuggestModal)\n```typescript\nimport { App, FuzzySuggestModal, TFile } from 'obsidian';\n\n\u002F\u002F File picker modal\nexport class FileSuggestModal extends FuzzySuggestModal\u003CTFile> {\n  private onSelect: (file: TFile) => void;\n\n  constructor(app: App, onSelect: (file: TFile) => void) {\n    super(app);\n    this.onSelect = onSelect;\n  }\n\n  getItems(): TFile[] {\n    return this.app.vault.getMarkdownFiles();\n  }\n\n  getItemText(file: TFile): string {\n    return file.path;\n  }\n\n  onChooseItem(file: TFile, evt: MouseEvent | KeyboardEvent): void {\n    this.onSelect(file);\n  }\n}\n\n\u002F\u002F Generic suggestion modal\nexport class SuggestModal\u003CT> extends FuzzySuggestModal\u003CT> {\n  private items: T[];\n  private getText: (item: T) => string;\n  private onSelect: (item: T) => void;\n\n  constructor(\n    app: App,\n    items: T[],\n    getText: (item: T) => string,\n    onSelect: (item: T) => void\n  ) {\n    super(app);\n    this.items = items;\n    this.getText = getText;\n    this.onSelect = onSelect;\n  }\n\n  getItems(): T[] {\n    return this.items;\n  }\n\n  getItemText(item: T): string {\n    return this.getText(item);\n  }\n\n  onChooseItem(item: T, evt: MouseEvent | KeyboardEvent): void {\n    this.onSelect(item);\n  }\n}\n\n\u002F\u002F Usage:\nnew SuggestModal(\n  this.app,\n  ['Option 1', 'Option 2', 'Option 3'],\n  (item) => item,\n  (selected) => console.log('Selected:', selected)\n).open();\n```\n\n### Step 3: Custom Views (Leaf Views)\n```typescript\nimport { ItemView, WorkspaceLeaf } from 'obsidian';\n\nexport const VIEW_TYPE_CUSTOM = 'custom-view';\n\nexport class CustomView extends ItemView {\n  constructor(leaf: WorkspaceLeaf) {\n    super(leaf);\n  }\n\n  getViewType(): string {\n    return VIEW_TYPE_CUSTOM;\n  }\n\n  getDisplayText(): string {\n    return 'Custom View';\n  }\n\n  getIcon(): string {\n    return 'dice';\n  }\n\n  async onOpen() {\n    const container = this.containerEl.children[1];\n    container.empty();\n\n    \u002F\u002F Add content\n    container.createEl('h4', { text: 'Custom View Title' });\n\n    const content = container.createDiv({ cls: 'custom-view-content' });\n    content.createEl('p', { text: 'This is a custom view!' });\n\n    \u002F\u002F Add interactive elements\n    const button = content.createEl('button', { text: 'Click me' });\n    button.addEventListener('click', () => {\n      console.log('Button clicked!');\n    });\n  }\n\n  async onClose() {\n    \u002F\u002F Cleanup\n  }\n}\n\n\u002F\u002F Register in main.ts:\nexport default class MyPlugin extends Plugin {\n  async onload() {\n    this.registerView(\n      VIEW_TYPE_CUSTOM,\n      (leaf) => new CustomView(leaf)\n    );\n\n    \u002F\u002F Add ribbon icon to open view\n    this.addRibbonIcon('dice', 'Open Custom View', () => {\n      this.activateView();\n    });\n\n    \u002F\u002F Add command\n    this.addCommand({\n      id: 'open-custom-view',\n      name: 'Open Custom View',\n      callback: () => this.activateView(),\n    });\n  }\n\n  async activateView() {\n    const { workspace } = this.app;\n\n    let leaf = workspace.getLeavesOfType(VIEW_TYPE_CUSTOM)[0];\n\n    if (!leaf) {\n      \u002F\u002F Create new leaf in right sidebar\n      leaf = workspace.getRightLeaf(false);\n      await leaf.setViewState({\n        type: VIEW_TYPE_CUSTOM,\n        active: true,\n      });\n    }\n\n    workspace.revealLeaf(leaf);\n  }\n\n  onunload() {\n    \u002F\u002F Clean up view\n    this.app.workspace.detachLeavesOfType(VIEW_TYPE_CUSTOM);\n  }\n}\n```\n\n### Step 4: Editor Extensions (CodeMirror 6)\n```typescript\nimport { EditorView, ViewPlugin, Decoration, DecorationSet } from '@codemirror\u002Fview';\nimport { RangeSetBuilder } from '@codemirror\u002Fstate';\nimport { syntaxTree } from '@codemirror\u002Flanguage';\n\n\u002F\u002F Custom decoration plugin\nconst highlightPlugin = ViewPlugin.fromClass(class {\n  decorations: DecorationSet;\n\n  constructor(view: EditorView) {\n    this.decorations = this.buildDecorations(view);\n  }\n\n  update(update: any) {\n    if (update.docChanged || update.viewportChanged) {\n      this.decorations = this.buildDecorations(update.view);\n    }\n  }\n\n  buildDecorations(view: EditorView): DecorationSet {\n    const builder = new RangeSetBuilder\u003CDecoration>();\n\n    for (const { from, to } of view.visibleRanges) {\n      syntaxTree(view.state).iterate({\n        from,\n        to,\n        enter: (node) => {\n          if (node.name === 'HyperLink') {\n            builder.add(\n              node.from,\n              node.to,\n              Decoration.mark({ class: 'custom-highlight' })\n            );\n          }\n        },\n      });\n    }\n\n    return builder.finish();\n  }\n}, {\n  decorations: (v) => v.decorations,\n});\n\n\u002F\u002F Register in plugin:\nthis.registerEditorExtension(highlightPlugin);\n```\n\n### Step 5: Context Menus\n```typescript\nimport { Menu, TFile, TFolder } from 'obsidian';\n\n\u002F\u002F Add to file menu\nthis.registerEvent(\n  this.app.workspace.on('file-menu', (menu: Menu, file: TAbstractFile) => {\n    if (file instanceof TFile && file.extension === 'md') {\n      menu.addItem((item) => {\n        item\n          .setTitle('My Custom Action')\n          .setIcon('star')\n          .onClick(async () => {\n            \u002F\u002F Handle click\n            console.log('File:', file.path);\n          });\n      });\n    }\n  })\n);\n\n\u002F\u002F Add to editor context menu\nthis.registerEvent(\n  this.app.workspace.on('editor-menu', (menu: Menu, editor: Editor, view: MarkdownView) => {\n    menu.addItem((item) => {\n      item\n        .setTitle('Insert Timestamp')\n        .setIcon('clock')\n        .onClick(() => {\n          editor.replaceSelection(new Date().toISOString());\n        });\n    });\n  })\n);\n```\n\n## Output\n- Modal dialogs for user input\n- Suggestion popups with fuzzy search\n- Custom sidebar views\n- Editor decorations\n- Context menus\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| View not showing | Not registered | Call `registerView` in `onload` |\n| Modal closes immediately | Event propagation | Stop event propagation |\n| Decorations not updating | Missing update handler | Implement `update` method |\n| Menu item missing | Wrong event | Verify event type |\n\n## Examples\n\n### Progress Modal\n```typescript\nexport class ProgressModal extends Modal {\n  private progressEl: HTMLElement;\n  private textEl: HTMLElement;\n\n  onOpen() {\n    const { contentEl } = this;\n    contentEl.createEl('h2', { text: 'Processing...' });\n\n    this.textEl = contentEl.createEl('p', { text: 'Starting...' });\n\n    const progressContainer = contentEl.createDiv({ cls: 'progress-container' });\n    this.progressEl = progressContainer.createDiv({ cls: 'progress-bar' });\n    this.progressEl.style.width = '0%';\n  }\n\n  setProgress(percent: number, text?: string) {\n    this.progressEl.style.width = `${percent}%`;\n    if (text) this.textEl.setText(text);\n  }\n\n  onClose() {\n    this.contentEl.empty();\n  }\n}\n\n\u002F\u002F Usage:\nconst modal = new ProgressModal(this.app);\nmodal.open();\nfor (let i = 0; i \u003C= 100; i += 10) {\n  modal.setProgress(i, `Processing ${i}%`);\n  await sleep(100);\n}\nmodal.close();\n```\n\n### Sidebar Styling\n```css\n\u002F* styles.css *\u002F\n.custom-view-content {\n  padding: 16px;\n}\n\n.custom-view-content h4 {\n  margin-bottom: 12px;\n}\n\n.custom-view-content button {\n  margin-top: 8px;\n}\n```\n\n## Resources\n- [Obsidian Modal Reference](https:\u002F\u002Fdocs.obsidian.md\u002FReference\u002FTypeScript+API\u002FModal)\n- [Obsidian View Reference](https:\u002F\u002Fdocs.obsidian.md\u002FReference\u002FTypeScript+API\u002FItemView)\n- [CodeMirror 6 Documentation](https:\u002F\u002Fcodemirror.net\u002Fdocs\u002F)\n\n## Next Steps\nFor common errors, see `obsidian-common-errors`.\n","# Obsidian Core Workflow B: UI Components\n\n## Overview\nSecondary workflow for Obsidian: building modals, views, suggestion popups, and custom UI elements.\n\n## Prerequisites\n- Completed `obsidian-install-auth` setup\n- Familiarity with `obsidian-core-workflow-a`\n- Understanding of DOM manipulation\n\n## Instructions\n\n### Step 1: Modal Dialogs\n```typescript\nimport { App, Modal, Setting } from 'obsidian';\n\n\u002F\u002F Simple confirmation modal\nexport class ConfirmModal extends Modal {\n  private result: boolean = false;\n  private onSubmit: (result: boolean) => void;\n  private message: string;\n\n  constructor(app: App, message: string, onSubmit: (result: boolean) => void) {\n    super(app);\n    this.message = message;\n    this.onSubmit = onSubmit;\n  }\n\n  onOpen() {\n    const { contentEl } = this;\n\n    contentEl.createEl('h2', { text: 'Confirm Action' });\n    contentEl.createEl('p', { text: this.message });\n\n    new Setting(contentEl)\n      .addButton(btn => btn\n        .setButtonText('Cancel')\n        .onClick(() => {\n          this.result = false;\n          this.close();\n        }))\n      .addButton(btn => btn\n        .setButtonText('Confirm')\n        .setCta()\n        .onClick(() => {\n          this.result = true;\n          this.close();\n        }));\n  }\n\n  onClose() {\n    this.onSubmit(this.result);\n  }\n}\n\n\u002F\u002F Form input modal\nexport class InputModal extends Modal {\n  private value: string = '';\n  private onSubmit: (value: string | null) => void;\n  private placeholder: string;\n  private title: string;\n\n  constructor(\n    app: App,\n    title: string,\n    placeholder: string,\n    onSubmit: (value: string | null) => void\n  ) {\n    super(app);\n    this.title = title;\n    this.placeholder = placeholder;\n    this.onSubmit = onSubmit;\n  }\n\n  onOpen() {\n    const { contentEl } = this;\n\n    contentEl.createEl('h2', { text: this.title });\n\n    new Setting(contentEl)\n      .setName('Input')\n      .addText(text => text\n        .setPlaceholder(this.placeholder)\n        .onChange(value => this.value = value));\n\n    new Setting(contentEl)\n      .addButton(btn => btn\n        .setButtonText('Cancel')\n        .onClick(() => {\n          this.close();\n          this.onSubmit(null);\n        }))\n      .addButton(btn => btn\n        .setButtonText('Submit')\n        .setCta()\n        .onClick(() => {\n          this.close();\n          this.onSubmit(this.value);\n        }));\n  }\n\n  onClose() {\n    const { contentEl } = this;\n    contentEl.empty();\n  }\n}\n```\n\n### Step 2: Suggestion Popups (FuzzySuggestModal)\n```typescript\nimport { App, FuzzySuggestModal, TFile } from 'obsidian';\n\n\u002F\u002F File picker modal\nexport class FileSuggestModal extends FuzzySuggestModal\u003CTFile> {\n  private onSelect: (file: TFile) => void;\n\n  constructor(app: App, onSelect: (file: TFile) => void) {\n    super(app);\n    this.onSelect = onSelect;\n  }\n\n  getItems(): TFile[] {\n    return this.app.vault.getMarkdownFiles();\n  }\n\n  getItemText(file: TFile): string {\n    return file.path;\n  }\n\n  onChooseItem(file: TFile, evt: MouseEvent | KeyboardEvent): void {\n    this.onSelect(file);\n  }\n}\n\n\u002F\u002F Generic suggestion modal\nexport class SuggestModal\u003CT> extends FuzzySuggestModal\u003CT> {\n  private items: T[];\n  private getText: (item: T) => string;\n  private onSelect: (item: T) => void;\n\n  constructor(\n    app: App,\n    items: T[],\n    getText: (item: T) => string,\n    onSelect: (item: T) => void\n  ) {\n    super(app);\n    this.items = items;\n    this.getText = getText;\n    this.onSelect = onSelect;\n  }\n\n  getItems(): T[] {\n    return this.items;\n  }\n\n  getItemText(item: T): string {\n    return this.getText(item);\n  }\n\n  onChooseItem(item: T, evt: MouseEvent | KeyboardEvent): void {\n    this.onSelect(item);\n  }\n}\n\n\u002F\u002F Usage:\nnew SuggestModal(\n  this.app,\n  ['Option 1', 'Option 2', 'Option 3'],\n  (item) => item,\n  (selected) => console.log('Selected:', selected)\n).open();\n```\n\n### Step 3: Custom Views (Leaf Views)\n```typescript\nimport { ItemView, WorkspaceLeaf } from 'obsidian';\n\nexport const VIEW_TYPE_CUSTOM = 'custom-view';\n\nexport class CustomView extends ItemView {\n  constructor(leaf: WorkspaceLeaf) {\n    super(leaf);\n  }\n\n  getViewType(): string {\n    return VIEW_TYPE_CUSTOM;\n  }\n\n  getDisplayText(): string {\n    return 'Custom View';\n  }\n\n  getIcon(): string {\n    return 'dice';\n  }\n\n  async onOpen() {\n    const container = this.containerEl.children[1];\n    container.empty();\n\n    \u002F\u002F Add content\n    container.createEl('h4', { text: 'Custom View Title' });\n\n    const content = container.createDiv({ cls: 'custom-view-content' });\n    content.createEl('p', { text: 'This is a custom view!' });\n\n    \u002F\u002F Add interactive elements\n    const button = content.createEl('button', { text: 'Click me' });\n    button.addEventListener('click', () => {\n      console.log('Button clicked!');\n    });\n  }\n\n  async onClose() {\n    \u002F\u002F Cleanup\n  }\n}\n\n\u002F\u002F Register in main.ts:\nexport default class MyPlugin extends Plugin {\n  async onload() {\n    this.registerView(\n      VIEW_TYPE_CUSTOM,\n      (leaf) => new CustomView(leaf)\n    );\n\n    \u002F\u002F Add ribbon icon to open view\n    this.addRibbonIcon('dice', 'Open Custom View', () => {\n      this.activateView();\n    });\n\n    \u002F\u002F Add command\n    this.addCommand({\n      id: 'open-custom-view',\n      name: 'Open Custom View',\n      callback: () => this.activateView(),\n    });\n  }\n\n  async activateView() {\n    const { workspace } = this.app;\n\n    let leaf = workspace.getLeavesOfType(VIEW_TYPE_CUSTOM)[0];\n\n    if (!leaf) {\n      \u002F\u002F Create new leaf in right sidebar\n      leaf = workspace.getRightLeaf(false);\n      await leaf.setViewState({\n        type: VIEW_TYPE_CUSTOM,\n        active: true,\n      });\n    }\n\n    workspace.revealLeaf(leaf);\n  }\n\n  onunload() {\n    \u002F\u002F Clean up view\n    this.app.workspace.detachLeavesOfType(VIEW_TYPE_CUSTOM);\n  }\n}\n```\n\n### Step 4: Editor Extensions (CodeMirror 6)\n```typescript\nimport { EditorView, ViewPlugin, Decoration, DecorationSet } from '@codemirror\u002Fview';\nimport { RangeSetBuilder } from '@codemirror\u002Fstate';\nimport { syntaxTree } from '@codemirror\u002Flanguage';\n\n\u002F\u002F Custom decoration plugin\nconst highlightPlugin = ViewPlugin.fromClass(class {\n  decorations: DecorationSet;\n\n  constructor(view: EditorView) {\n    this.decorations = this.buildDecorations(view);\n  }\n\n  update(update: any) {\n    if (update.docChanged || update.viewportChanged) {\n      this.decorations = this.buildDecorations(update.view);\n    }\n  }\n\n  buildDecorations(view: EditorView): DecorationSet {\n    const builder = new RangeSetBuilder\u003CDecoration>();\n\n    for (const { from, to } of view.visibleRanges) {\n      syntaxTree(view.state).iterate({\n        from,\n        to,\n        enter: (node) => {\n          if (node.name === 'HyperLink') {\n            builder.add(\n              node.from,\n              node.to,\n              Decoration.mark({ class: 'custom-highlight' })\n            );\n          }\n        },\n      });\n    }\n\n    return builder.finish();\n  }\n}, {\n  decorations: (v) => v.decorations,\n});\n\n\u002F\u002F Register in plugin:\nthis.registerEditorExtension(highlightPlugin);\n```\n\n### Step 5: Context Menus\n```typescript\nimport { Menu, TFile, TFolder } from 'obsidian';\n\n\u002F\u002F Add to file menu\nthis.registerEvent(\n  this.app.workspace.on('file-menu', (menu: Menu, file: TAbstractFile) => {\n    if (file instanceof TFile && file.extension === 'md') {\n      menu.addItem((item) => {\n        item\n          .setTitle('My Custom Action')\n          .setIcon('star')\n          .onClick(async () => {\n            \u002F\u002F Handle click\n            console.log('File:', file.path);\n          });\n      });\n    }\n  })\n);\n\n\u002F\u002F Add to editor context menu\nthis.registerEvent(\n  this.app.workspace.on('editor-menu', (menu: Menu, editor: Editor, view: MarkdownView) => {\n    menu.addItem((item) => {\n      item\n        .setTitle('Insert Timestamp')\n        .setIcon('clock')\n        .onClick(() => {\n          editor.replaceSelection(new Date().toISOString());\n        });\n    });\n  })\n);\n```\n\n## Output\n- Modal dialogs for user input\n- Suggestion popups with fuzzy search\n- Custom sidebar views\n- Editor decorations\n- Context menus\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| View not showing | Not registered | Call `registerView` in `onload` |\n| Modal closes immediately | Event propagation | Stop event propagation |\n| Decorations not updating | Missing update handler | Implement `update` method |\n| Menu item missing | Wrong event | Verify event type |\n\n## Examples\n\n### Progress Modal\n```typescript\nexport class ProgressModal extends Modal {\n  private progressEl: HTMLElement;\n  private textEl: HTMLElement;\n\n  onOpen() {\n    const { contentEl } = this;\n    contentEl.createEl('h2', { text: 'Processing...' });\n\n    this.textEl = contentEl.createEl('p', { text: 'Starting...' });\n\n    const progressContainer = contentEl.createDiv({ cls: 'progress-container' });\n    this.progressEl = progressContainer.createDiv({ cls: 'progress-bar' });\n    this.progressEl.style.width = '0%';\n  }\n\n  setProgress(percent: number, text?: string) {\n    this.progressEl.style.width = `${percent}%`;\n    if (text) this.textEl.setText(text);\n  }\n\n  onClose() {\n    this.contentEl.empty();\n  }\n}\n\n\u002F\u002F Usage:\nconst modal = new ProgressModal(this.app);\nmodal.open();\nfor (let i = 0; i \u003C= 100; i += 10) {\n  modal.setProgress(i, `Processing ${i}%`);\n  await sleep(100);\n}\nmodal.close();\n```\n\n### Sidebar Styling\n```css\n\u002F* styles.css *\u002F\n.custom-view-content {\n  padding: 16px;\n}\n\n.custom-view-content h4 {\n  margin-bottom: 12px;\n}\n\n.custom-view-content button {\n  margin-top: 8px;\n}\n```\n\n## Resources\n- [Obsidian Modal Reference](https:\u002F\u002Fdocs.obsidian.md\u002FReference\u002FTypeScript+API\u002FModal)\n- [Obsidian View Reference](https:\u002F\u002Fdocs.obsidian.md\u002FReference\u002FTypeScript+API\u002FItemView)\n- [CodeMirror 6 Documentation](https:\u002F\u002Fcodemirror.net\u002Fdocs\u002F)\n\n## Next Steps\nFor common errors, see `obsidian-common-errors`.\n",{"name":5,"author":52,"license":15,"version":53,"description":54,"allowed-tools":55},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Execute Obsidian secondary workflow: UI components and user interaction.\nUse when building modals, views, suggestions, or custom UI elements.\nTrigger with phrases like \"obsidian modal\", \"obsidian UI\",\n\"obsidian view\", \"obsidian custom interface\".\n","Read, Write, Edit, Bash(npm:*), Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-core-workflow-b",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-core-workflow-b",{"tool":71,"command":72},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-core-workflow-b",{"tool":74,"command":75},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-core-workflow-b","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-core-workflow-b\u002FSKILL.md",true,[],[80,111,143,166,192,217],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":91,"publishedAt":110},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,31,108,109],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":47},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[122,123,98,124,125,126,127,46,128,129,130,131,132,133,134,45,135,136,37,103,137,138,32,139,140,141,142],"web artifacts builder","web","artifacts builder","builder","frontend","css","react","component","routing","state management","state","shadcn","file","Tools","Tailwind","single-file","simple","multi","for","jsx","suite",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":147,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":47},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},[155,156,157,126,158,159,123,160,96,161,45,162,163,164,165,31,140],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":47},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,37,182,183,184,185,186,187,188,31,189,190,191,140,28],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":196,"sourceHtmlUrl":197,"categories":198,"keywords":200,"publishedAt":47},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[199],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[201,202,203,204,205,206,207,208,209,210,211,212,213,214,31,140,215,28,216],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":218,"name":219,"nameZh":6,"description":220,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":221,"sourceHtmlUrl":222,"categories":223,"keywords":225,"publishedAt":47},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[224],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[219,226,227,228,229,230,231,161,232,233,37,234,235,236,237,140,238],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]