# gova-declarative-gui

gova-declarative-gui teaches an agent to build native desktop apps in Go with Gova, a declarative framework where components are structs and state lives in a Scope.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 290 installs · ★ 98 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/gova-declarative-gui/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/gova-declarative-gui

## What it does

The skill gives an agent the shape of a Gova app: every component is a Go struct with a `Body(s *g.Scope) g.View` method, its fields act as typed props, and state sits on the `Scope` via `g.State`, `g.Derived` and `g.Effect`. Layout primitives (`VStack`, `HStack`, `ZStack`, `Scaffold`) and ready-made views such as `TextField` and `Toggle` are covered too.

On the tooling side it documents `gova dev ./path/to/app`, which rebuilds and relaunches when a `.go` file changes, and `gova build`, which writes the binary to `./bin/<name>`. Native dialogs and the Dock badge on macOS go through system APIs; elsewhere the framework falls back to Fyne.

Go 1.26+ and a C toolchain are required — Xcode CLT on macOS, `build-essential` with `libgl1-mesa-dev` on Linux, MinGW on Windows. Without it the build stops at compile time, so check the environment before the first `gova run`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gova-declarative-gui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gova-declarative-gui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gova-declarative-gui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gova-declarative-gui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gova-declarative-gui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gova-declarative-gui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gova-declarative-gui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills skills/gova-declarative-gui
```

2. **Manually: put the files in place**
- File: `.github/skills/gova-declarative-gui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gova-declarative-gui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/gova-declarative-gui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gova-declarative-gui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gova-declarative-gui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/gova-declarative-gui/SKILL.md

## When to use it
- scaffold a Go desktop window out of plain structs
- keep counter state in `Scope` instead of globals
- rebuild and relaunch on save with `gova dev`
- open a native file picker on macOS
- produce one static binary from `go build`

## Example prompts
- Build a Go desktop todo app with Gova: a `TextField`, an add button and a `Toggle` per row.
- Move this counter into `g.State` so the view re-renders when it changes.
- Wire an `OpenFileDialog` button that stores the chosen path in state.

## Similar
- [pyqt6-ui-development-rules](https://affpapa.org/en/nevibecode/skills/pyqt6-ui-development-rules.md) — skill · 1200 installs
- [desktop-applications](https://affpapa.org/en/nevibecode/skills/desktop-applications.md) — skill · 266 installs
- [roblox-gui](https://affpapa.org/en/nevibecode/skills/roblox-gui.md) — skill · 3700 installs
- [gui-ui-guidelines](https://affpapa.org/en/nevibecode/skills/gui-ui-guidelines.md) — skill · ★ 720 repo stars
- [gui-reproduce-bug-report-local](https://affpapa.org/en/nevibecode/skills/gui-reproduce-bug-report-local.md) — skill · ★ 720 repo stars
- [native-sdk](https://affpapa.org/en/nevibecode/skills/native-sdk.md) — skill · 1500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 211 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
