Wails v2 Go desktop apps with web frontend. This skill should be used when scaffolding, binding Go to JS, configuring options, building cross-platform, or debugging webkit2gtk/WebView2 rendering.
Ships in wails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
# Install CLI
go install github.com/wailsapp/wails/v2/cmd/wails@latest
# Check dependencies
wails doctor
# Create project (default: svelte)
wails init -n myapp -t svelte-ts
# Development with hot-reload
cd myapp && wails dev
# Production build
wails build
┌─────────────────────────────────────┐
│ Desktop Window │
│ ┌───────────────────────────────┐ │
│ │ WebView (webkit2gtk/WebView2)│ │
│ │ ┌─────────────────────────┐ │ │
│ │ │ Frontend (Svelte/React │ │ │
│ │ │ /Vue/Preact/Lit/Vanilla│ │ │
│ │ └──────────┬──────────────┘ │ │
│ └──────────────┼────────────────┘ │
│ │ IPC (JSON-RPC) │
│ ┌──────────────┴────────────────┐ │
│ │ Go Backend │ │
│ │ - Bound methods → JS funcs │ │
│ │ - Runtime API │ │
│ │ - Lifecycle callbacks │ │
│ └───────────────────────────────┘ │
└─────────────────────────────────────┘
Method binding: Go structs with exported methods → wails.Bind() → auto-generated TypeScript in frontend/wailsjs/. Frontend calls Go methods as async JS functions. Structs used as params/returns get TS models generated.
Runtime API: runtime package provides window control, events (emit/on), dialogs (open/save/message), clipboard, screen info, notifications, drag-drop, browser open, environment, log, menu updates.
Lifecycle callbacks: OnStartup(ctx) → OnDomReady(ctx) → app runs → OnBeforeClose(ctx) bool → OnShutdown(ctx). Context from OnStartup used for runtime calls.
myapp/
├── main.go # Entry point, wails.Run() with options
├── app.go # App struct with bound methods
├── wails.json # Project config (name, frontend:build/install, author)
├── go.mod
├── frontend/
│ ├── src/ # Frontend source (framework-specific)
│ ├── index.html
│ ├── package.json
│ └── wailsjs/ # Auto-generated bindings (DO NOT EDIT)
│ ├── go/ # Go method wrappers as JS
│ └── runtime/ # Runtime API TS definitions
├── build/
│ ├── appicon.png # App icon
│ ├── darwin/ # macOS-specific (Info.plist)
│ ├── windows/ # Windows-specific (wails.exe.manifest, NSIS config)
│ └── bin/ # Build output
wails.Run(&options.App{
Title: "My App",
Width: 1024,
Height: 768,
MinWidth: 400,
MinHeight: 300,
Frameless: false,
StartHidden: false,
AlwaysOnTop: false,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
OnShutdown: app.shutdown,
OnDomReady: app.domReady,
OnBeforeClose: app.beforeClose,
Bind: []interface{}{app},
// Platform-specific
Windows: &windows.Options{},
Mac: &mac.Options{},
Linux: &linux.Options{},
})
{
"name": "myapp",
"outputfilename": "myapp",
"frontend:install": "npm install",
"frontend:build": "npm run build",
"frontend:dev:watcher": "npm run dev",
"frontend:dev:serverUrl": "auto",
"author": { "name": "Dev", "email": "[email protected]" }
}
| Command | Purpose |
|---|---|
wails init -n NAME -t TEMPLATE | Create new project |
wails dev | Dev mode with hot-reload |
wails build | Production build |
wails build -nsis | Windows NSIS installer |
wails build -platform darwin/universal | macOS universal binary |
wails build -tags webkit2_41 | Ubuntu 24.04+ webkit support |
wails generate module | Regenerate frontend bindings |
wails doctor | Check system dependencies |
config.yaml (opens in a new tab)references/getting-started/installation.md (opens in a new tab)references/getting-started/project-setup-building.md (opens in a new tab)references/getting-started/project-setup.md (opens in a new tab)references/guides/advanced-features-misc.md (opens in a new tab)references/guides/advanced-features.md (opens in a new tab)references/guides/application-development-assetserver.md (opens in a new tab)references/guides/application-development.md (opens in a new tab)references/guides/background-transparency-fixes.md (opens in a new tab)references/guides/background-transparency.md (opens in a new tab)references/guides/frontend.md (opens in a new tab)references/guides/platform-specific-linux.md (opens in a new tab)references/guides/platform-specific.md (opens in a new tab)references/guides/troubleshooting-rendering.md (opens in a new tab)references/guides/troubleshooting.md (opens in a new tab)references/reference/cli.md (opens in a new tab)references/reference/menus-example.md (opens in a new tab)references/reference/menus.md (opens in a new tab)references/reference/options-platform.md (opens in a new tab)references/reference/options.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/wails:wailsfrom wails
npx claudepluginhub kettleofketchup/kettleofskills --plugin wails