wails3-dev
Skill1 starsChanged 7 months agoMITView on GitHub
This skill should be used when the user asks to "set up wails3", "install wails3", "wails3 environment", "create a wails3 app", "new wails3 project", "build a desktop app with Go", "add a service to wails3", "generate wails3 bindings", "wails3 frontend", "improve wails3 app", "wails3 UI", or otherwise develops a cross-platform desktop application with Wails v3. Guides proactive environment setup, best-practice development, UI design-style decisions, and a mandatory HTML-preview checkpoint before implementation.
- Installs packages
In this repository14 other files it gives its agents.
- agent-developmentSkill
- claude-agent-sdk-devSkill
- command-developmentSkill
- dev-doc-generatorSkill
- docling-document-intelligenceSkill
- hook-developmentSkill
- mcp-integrationSkill
- openclaw-agent-creatorSkill
- openclaw-cmdSkill
- plugin-settingsSkill
- plugin-structureSkill
- quick-guide-builderSkill
- skill-developmentSkill
- tdad-integrationSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 19
Before any development work, verify the toolchain is present.
- Very specific: line 25
If anything is missing or wails3 is absent, stop and guide the install first per references/environment-setup.md.
- Distinctive: line 26
If all present, state the versions briefly and proceed.
- Distinctive: line 28
Never assume a clean environment.
- Distinctive: line 45
Existing project — inherit the baseline: When improving, optimizing, or modifying a project already in progress, the existing UI is the …
- Very specific: line 50
Read existing .svelte/.vue/.tsx components and vite.config.ts / tailwind.config before producing new UI.
- Distinctive: line 52
Do not introduce a competing style, a different component library, or a new palette.
- Distinctive: line 81
Bindings: After changing any service signature, regenerate TypeScript bindings (never edit generated files by hand):
- Very specific: line 88
Cross-platform: Use path (not filepath) for remote/POSIX paths.
- Distinctive: line 94
Run Phase 0 every session.
- Very specific: line 98
Never hand-edit generated bindings under frontend/bindings/.
- Very specific: line 102
When starting a new project and the user has no preference, recommend the proven stack: Svelte 5 + Tailwind v4 + Vite + @wailsio/runtime, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wails v3 Development
Overview
Wails v3 builds cross-platform desktop apps from a Go backend plus a web frontend, compiled into a single native binary. Go services expose exported methods to the frontend; bindings are generated as TypeScript so the web layer calls Go as if native. The frontend is a standard Vite project (Svelte/Vue/React/etc.) embedded into the binary via //go:embed.
This skill drives every wails3 task through a fixed five-phase workflow. Execute the phases in order. Do not skip ahead — Phase 2 (UI style) and Phase 4 (HTML preview) are mandatory gates.
Core Workflow
Phase 0 — Environment Readiness (proactive)
Before any development work, verify the toolchain is present. Run scripts/check-env.sh:
bash scripts/check-env.sh- If anything is missing or
wails3is absent, stop and guide the install first perreferences/environment-setup.md. Provide exact per-OS commands. Confirm by runningwails3 doctor. - If all present, state the versions briefly and proceed.
Never assume a clean environment. Always check at the start of a session for this project.
Phase 1 — Classify the Task
Determine which of these the request is:
- New project / new design — greenfield app or a brand-new screen/feature with no existing UI baseline.
- Existing project — modify / optimize / improve — any change to a project that already has a frontend.
Inspect the project to decide: look for main.go with github.com/wailsapp/wails/v3, a frontend/ dir with package.json, a Taskfile.yml, and build/config.yml. Their presence → existing project.
Phase 2 — UI Design Style Decision (mandatory gate)
This gate's behavior depends on the task type from Phase 1.
New project / new design — ask the user. Proactively confirm the UI design style before writing UI code. Offer concrete options (e.g. clean/minimal SaaS dashboard, dense data/admin console, glassmorphism, flat material, dark technical tool). Confirm a color palette direction and a layout density. Do not silently pick a style. Use a clarifying question and record the answer.
Existing project — inherit the baseline. When improving, optimizing, or modifying a project already in progress, the existing UI is the authoritative baseline. Extract the current design language and match it exactly:
- Framework and styling system from
frontend/package.json(e.g. Svelte 5 + Tailwind v4). - Design tokens: primary/neutral palette, radius, spacing scale, typography, dark/light handling.
- Component style: button/input/card shapes, icon set, motion.
- Read existing
.svelte/.vue/.tsxcomponents andvite.config.ts/tailwind.configbefore producing new UI.
Do not introduce a competing style, a different component library, or a new palette. New components must read as part of the existing app. Only deviate when the user explicitly requests a redesign — and even then, confirm first.
Phase 3 — Confirm Progress & Requirements
Establish full context before building:
- For an existing project: read
main.go, theinternal/services,Taskfile.yml,build/config.yml, and the relevant frontend pages. Summarize current progress back to the user. - Restate the concrete deliverable and the acceptance criteria.
- Resolve any ambiguity in the request before proceeding.
Phase 4 — HTML Preview Checkpoint (mandatory gate)
This step is mandatory and must not be skipped. Once progress and requirements are clear (Phase 3 done) and the work touches the UI, ask the user whether to generate an HTML preview first. Ask in the user's language, e.g.:
在正式实现之前,是否需要先生成一个 HTML 用于预览前端界面?
Then branch on the answer:
- Yes → generate a single-file HTML preview. Produce one self-contained
.html(inline CSS, or Tailwind via Play CDN) that mocks the target screen/component with realistic placeholder data. Base it onexamples/html-preview-template.html. The preview reflects the agreed UI style (Phase 2) — for existing projects it must match the current look. Open/point the user to the file for review, iterate on the design from feedback, and only move to real implementation once the layout is approved. - No → proceed directly to execution (Phase 5). Do not generate the HTML; implement normally.
The preview is a static visual mock only — no Go bindings, no Wails runtime. Its purpose is to lock the layout/design before committing to real component work.
Phase 5 — Execute with Best Practices
Implement following references/development-guide.md:
- Backend = services. One responsibility per service; plain Go struct with a
NewService(...)constructor; exported methods become the frontend API. Methods return typed structs withjsontags so the binding generator emits matching TS types. Seeexamples/minimal-service.go. - Bootstrap in
main.go. Construct services, register them viaapplication.NewService(...), embedfrontend/dist, open a window. Seeexamples/app-bootstrap.go. - Bindings. After changing any service signature, regenerate TypeScript bindings (never edit generated files by hand):
Thewails3 generate bindings -ts-tsflag is required — omitting it produces.jsinstead of.ts. - Dev loop.
task dev(runswails3 dev -config ./build/config.yml). It rebuilds Go on change and runs the Vite frontend in parallel. - Build/package.
task buildthentask package. Build config lives inbuild/config.yml; editinginforequireswails3 task common:update:build-assets. - Cross-platform. Use
path(notfilepath) for remote/POSIX paths; keep per-OS divergence in the platform Taskfiles (build/windows,build/darwin,build/linux); test window/frame and menu behavior per platform.
Project layout and conventions are documented in references/project-conventions.md (derived from a proven wails3 app).
Hard Rules
- Run Phase 0 every session; do not develop with a broken toolchain.
- Phase 2: new UI → ask for the style; existing UI → match the baseline exactly.
- Phase 4: always offer the HTML preview; branch on the answer, never skip.
- Regenerate bindings with
wails3 generate bindings -tsafter any service change. - Never hand-edit generated bindings under
frontend/bindings/.
Recommended Default Stack
When starting a new project and the user has no preference, recommend the proven stack: Svelte 5 + Tailwind v4 + Vite + @wailsio/runtime, single-window app, Taskfile-driven builds. This is battle-tested and documented in references/project-conventions.md. If the user names another framework, support it — the service/binding model is framework-agnostic.
Additional Resources
Reference Files
references/environment-setup.md— Per-OS install of Go, Node, pnpm, wails3 CLI, WebView runtime deps, andwails3 doctorverification.references/development-guide.md— Best practices: service architecture, binding generation, app lifecycle, dev/build/package, cross-platform pitfalls.references/project-conventions.md— Proven project layout,Taskfile.yml,build/config.yml, frontend wiring.
Example Files
examples/minimal-service.go— A minimal, idiomatic wails3 service struct.examples/app-bootstrap.go—main.goservice registration, embed, and window creation.examples/html-preview-template.html— Single-file HTML UI preview starter (Tailwind via Play CDN).
Utility Scripts
scripts/check-env.sh— Detect Go / Node / pnpm / wails3 versions and flag missing tools.
Quick Reference
| Task | Command |
| Verify environment | bash scripts/check-env.sh |
| Install wails3 | go install github.com/wailsapp/wails/v3/cmd/wails3@latest |
| Health check | wails3 doctor |
| Dev mode | task dev (wails3 dev -config ./build/config.yml) |
| Generate bindings | wails3 generate bindings -ts |
| Build | task build |
| Package | task package |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

