Agent skill

New Example

by go-gui-org in go-gui-org/go-gui

Scaffold a new go-gui example app with standard boilerplate. An agent skill from go-gui-org/go-gui.

MITAuto-check passedDevelopment

Install New Example

skills CLI
$ npx skills add go-gui-org/go-gui --skill new-example -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install go-gui-org/go-gui new-example --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/go-gui-org/go-gui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-example .claude/skills/new-example && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
new-example
GitHub stars
123
Token cost
~377 tokens
SKILL.md length
110 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Scaffold a new go-gui example app with standard boilerplate. An agent skill from go-gui-org/go-gui.

  • Works in 4 steps: Package comment that describes the example → App state struct → main() that creates the window with… → …
  • Tasks that involve Project scaffolding
  • SKILL.md covers Arguments, Template, Reference Pattern and Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

New Example is an agent skill from go-gui-org/go-gui. Scaffold a new go-gui example app with standard boilerplate

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding. It works with Go. The repository describes itself as: Build modern, cross-platform applications entirely in Go. No browser runtime. No JavaScript. No HTML or CSS. The licence is MIT.

When your agent uses it

  • Tasks that involve Project scaffolding

Example prompts

  • “/new-example”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Package comment that describes the example
  2. App state struct
  3. main() that creates the window with gui.SimpleWindow, sets the view with
  4. mainView function that returns gui.View

What it can do on your machine

Read from SKILL.md and the folder at commit 2d78dcc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are go).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

New Example loads about 377 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~377

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from go-gui-org/go-gui at commit 2d78dcc, republished under its MIT licence (© go-gui-org). 110 words, ~377 tokens.

Download SKILL.mdSave it as .claude/skills/new-example/SKILL.md (or your agent's skills folder).
name
new-example
description
Scaffold a new go-gui example app with standard boilerplate
disable-model-invocation
true

New Example App Scaffold

Create a new example app under examples/<name>/main.go.

Arguments

  • name (required): directory name for the example (lowercase, underscores)
  • description (optional): one-line description for the package comment

Template

Every example follows this structure:

  1. Package comment that describes the example
  2. App state struct
  3. main() that creates the window with gui.SimpleWindow, sets the view with w.SetView, and calls backend.Run
  4. mainView function that returns gui.View

Reference Pattern

Use examples/get_started/main.go as the canonical template:

go
package main

import (
    "github.com/go-gui-org/go-gui/gui"
    "github.com/go-gui-org/go-gui/gui/backend"
)

type App struct {
    // state fields
}

func main() {
    w := gui.SimpleWindow("<name>", 800, 600, &App{}, func(w *gui.Window) {
        w.SetView(mainView)
    })
    backend.Run(w)
}

func mainView(w *gui.Window) gui.View {
    app := gui.State[App](w)
    _ = app

    return gui.Column(gui.ContainerCfg{
        Sizing: gui.FillFill,
        // build UI here
    })
}

Rules

  • Place in examples/<name>/main.go
  • Use the default theme unless the user specifies otherwise
  • Use gui.FillFill sizing for the root container; it fills the window
  • Follow all conventions in CLAUDE.md (no variable shadowing, clean lint)

© go-gui-org, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/new-example of go-gui-org/go-gui.

Open the folder on GitHubat commit 2d78dcc

Compare with similar skills

New Example next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

New Example compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Example this skillgo-gui-org/go-gui123—~377Automated safety check: PassMIT
Arandu Module Generatorarandu-io/arandu281—~2.4kAutomated safety check: PassMIT
Autospec Worktree Setupariel-frischer/autospec144—~1.5kAutomated safety check: NotesMIT
Init Projectmicrobus-io/fabric172—~664Automated safety check: PassApache-2.0
Nx Generatenomcopter/react-mosaic4.8k7 repos~1.9kAutomated safety check: PassCustom licence
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Arandu Module Generator

    arandu-io/arandu

    Adds a new entity, resource or CRUD module to an Arandu Go application by writing a YAML specification instead of hand-writing the Go code.

    281 GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Autospec Worktree Setup

    ariel-frischer/autospec

    Generate project-specific worktree setup script based on project analysis.

    144 GitHub stars~1.5k tokensUpdated 11 days ago
    DevelopmentAuto-check: notes
  • Init Project

    microbus-io/fabric

    TRIGGER when user asks to initialize, set up, or bootstrap a Microbus project.

    172 GitHub stars~664 tokensUpdated 11 days ago
    DevelopmentAuto-check passed
  • Nx Generate

    nomcopter/react-mosaic

    Generate code using nx generators. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 7 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    564 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Official

    Walks through adding a new Redis or Redis module command to the go-redis client, from fetching the spec and docs to the type, interface wiring, parsing and tests.

    22k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from go-gui-org/go-gui

  • Widget

    go-gui-org/go-gui

    Create a new go-gui widget with proper Cfg struct and factory function

    123 GitHub stars~570 tokensUpdated yesterday
    Auto-check passed
  • Release Consumers

    go-gui-org/go-gui

    Which sibling repos require a go-gui version bump on release.

    123 GitHub stars~178 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about New Example

What does New Example do?

Scaffold a new go-gui example app with standard boilerplate. An agent skill from go-gui-org/go-gui. New Example is an agent skill from go-gui-org/go-gui.

When should I use New Example?

New Example fits situations like: tasks that involve Project scaffolding.

How do I install New Example in Claude Code?

Run `npx skills add go-gui-org/go-gui --skill new-example -a claude-code`. Or copy the skill folder (.claude/skills/new-example in go-gui-org/go-gui) into .claude/skills/new-example in your project. Claude Code loads it when a task matches its description.

How do I install New Example in Codex?

Run `npx skills add go-gui-org/go-gui --skill new-example -a codex`. Or copy the skill folder (.claude/skills/new-example in go-gui-org/go-gui) into .agents/skills/new-example in your project. Codex loads it when a task matches its description.

Can I use New Example in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add go-gui-org/go-gui --skill new-example -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-example, .gemini/skills/new-example, .github/skills/new-example and .opencode/skills/new-example in your project.

What does New Example need to run?

SKILL.md names no scripts, command-line tools or credentials: New Example is instructions for the agent only.

Does New Example access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is New Example safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does New Example use?

New Example is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New Example use?

About 377 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to New Example?

Skills that share tags, products or a category with New Example: Arandu Module Generator (arandu-io/arandu, 281 stars), Autospec Worktree Setup (ariel-frischer/autospec, 144 stars), Init Project (microbus-io/fabric, 172 stars) and Nx Generate (nomcopter/react-mosaic, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Example?

go-gui-org (a GitHub organization) maintains it in go-gui-org/go-gui, which has 123 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 8, 2026.

Source: go-gui-org/go-gui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.