wails

wails is a skill for Claude Code, Codex from PascaleBeier/hitkeep. It costs 115 tokens per session (2,265 once invoked), scanned A, original, MIT.

A guide for building desktop applications with Wails, a framework that combines a Go backend with a web-based interface shown in the computer’s native web view. It covers both the stable Wails v2 and the newer Wails v3, whose APIs differ.

In plain words
What is it for?
Use it when creating or debugging a Go desktop or web-view application, especially when working with wails.json, Wails commands, or communication between Go and JavaScript.
Why use it?
It helps avoid mixing incompatible Wails versions and explains how the Go code, web interface, build tools, and operating-system window work together.

Skill for Claude CodeCodex

Part of the wails plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pascalebeier/hitkeep/wails
Any agent
npx skills add PascaleBeier/hitkeep --skill wails
Clone the repo
git clone --depth 1 https://github.com/PascaleBeier/hitkeep

Made for: Claude Code, Codex.

Or install wails, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wails

README.md
[![agentmods](https://agentmods.dev/badge/skills/pascalebeier/hitkeep/wails.svg)](https://agentmods.dev/skills/pascalebeier/hitkeep/wails)
Your own site
<a href="https://agentmods.dev/skills/pascalebeier/hitkeep/wails"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/wails.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00115 $0.02265
Opus 5 $0.00057 $0.01132
Sonnet 5 $0.00023 $0.00453
Haiku 4.5 $0.00012 $0.00227

Measured 3d ago against content hash 90a6dc2d796c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wails scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/wails/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wails: Desktop Apps in Go

Wails builds native desktop applications with a Go backend and a web frontend rendered in the platform webview (WebKit on macOS/Linux, WebView2 on Windows). No bundled Chromium — binaries are megabytes, not hundreds of megabytes.

Two major versions coexist, with incompatible APIs. v2 is stable. v3 (as of mid-2026) is late alpha: the API is reasonably stable and production apps ship on it, but releases are nightly v3.0.0-alpha2.x tags and details still move. The single most common failure mode — for LLMs especially — is mixing v2 and v3 code. Every response must be pure v2 or pure v3.

Step 0 — Detect the Version (Mandatory)

Before writing any code, determine the version from the project. Do not guess from the user's phrasing.

Signal v2 v3
go.mod import github.com/wailsapp/wails/v2 github.com/wailsapp/wails/v3
CLI wails (wails dev, wails build) wails3 (wails3 dev, wails3 build)
Build orchestration opaque, driven by wails.json Taskfile.yml (go-task), transparent
Entry point wails.Run(&options.App{...}) application.New(application.Options{...})
Go→JS exposure Bind: []interface{}{app} Services: []application.Service{...}
Runtime calls runtime.EventsEmit(ctx, ...) with stored context methods on app / window — no context threading
Frontend imports wailsjs/go/main/App frontend/bindings/<import-path>/<service>

New project with no code yet: default to v2 if the user needs stability and zero churn; recommend v3 for a new long-lived app if they accept alpha status — the architecture is better (multi-window, services, transparent builds) and it's the future. State the trade-off in one sentence and pin the exact alpha version in go.mod. Never present v3 as stable.

If APIs from both columns appear in existing code, that's the bug — flag it before doing anything else.


Wails v2 (Stable)

Canonical main.go

Read the full file on GitHub · 190 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 190 lines · 115 tokens per session scan A 90a6dc2d796c

Subscribe to this mod's changes

wails is a skill published in the GitHub repository PascaleBeier/hitkeep (85 stars, last pushed 4d ago), licensed MIT. It adds 115 tokens to every session and 2,265 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

use-modern-go

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.

JetBrains/go-modern-guidelines · 32 tokens

jwx-guide-v4

Guide for developing Go applications with github.com/lestrrat-go/jwx v4 — parse/sign JWTs, work with JWS/JWE/JWK, pick algorithms, and avoid the common footguns. For developers using jwx, not for developing the library itself.

lestrrat-go/jwx · 61 tokens

sq-gomod-dependabot

Reviews and merges Dependabot pull requests for Go modules (gomod) at the sq repo root. Use for dependabot gomod PRs, go.mod/go.sum updates, and Go module security bumps—not site/ Bun PRs.

neilotoole/sq · 54 tokens

golang-gomlx

Machine learning models training and inference using GoMLX for Go. It provides an abstraction to create vectorized computation graphs, that can then be JIT-compiled (Just-In-Time) and executed very fast, with backends using XLA (for CPU/CUDA/TPU), Go and others. Includes a reach set of vector (tensors) operations on…

gomlx/gomlx · 143 tokens

go

Use for Go changes in Neva: authoring, refactoring, debugging, or review.

nevalang/neva · 21 tokens

gograph

Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…

ozgurcd/gograph · 69 tokens