Agent Skills: file-dialog-abstraction

Cross-platform file dialog implementation for open, save, and directory selection

UncategorizedID: a5c-ai/babysitter/file-dialog-abstraction

Install this agent skill to your local

pnpm dlx add-skill https://github.com/a5c-ai/babysitter/tree/HEAD/library/specializations/desktop-development/skills/file-dialog-abstraction

Skill Files

Browse the full folder contents for file-dialog-abstraction.

Download Skill

Loading file tree…

library/specializations/desktop-development/skills/file-dialog-abstraction/SKILL.md

Skill Metadata

Name
file-dialog-abstraction
Description
Cross-platform file dialog implementation for open, save, and directory selection

file-dialog-abstraction

Implement cross-platform file dialogs for open, save, and directory selection with consistent API across Windows, macOS, and Linux.

Capabilities

  • Open file dialogs
  • Save file dialogs
  • Directory selection dialogs
  • Multiple file selection
  • File type filters
  • Default paths and names
  • Recent locations support

Input Schema

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "framework": { "enum": ["electron", "tauri", "qt", "wpf"] },
    "dialogTypes": { "type": "array" }
  },
  "required": ["projectPath"]
}

Electron Example

const { dialog } = require('electron');

async function openFile() {
    const result = await dialog.showOpenDialog({
        properties: ['openFile', 'multiSelections'],
        filters: [
            { name: 'Documents', extensions: ['pdf', 'docx'] },
            { name: 'All Files', extensions: ['*'] }
        ]
    });
    return result.filePaths;
}

Related Skills

  • file-watcher-setup
  • file-system-integration process