Automated summary
Server-rendered UI framework for Go that generates all HTML, business logic, and state management on the server, with interactivity through server actions and WebSocket patches.
Strengths
- Fully server-side rendering simplifies deployment and SEO
- Components are Go functions returning HTML strings, keeping the stack simple
- Real-time updates via WebSocket without client-side JavaScript frameworks
- Built-in support for forms, data tables, and Excel export
Limitations
- Requires Go expertise and may feel unfamiliar to frontend developers
- Smaller ecosystem compared to JavaScript-based UI frameworks
- Server load can increase with frequent real-time updates
When building Go web applications that benefit from server-rendered UI with real-time interactivity and minimal client-side complexity.
If your application demands rich client-side interactivity or if you have a dedicated frontend team using JavaScript frameworks.
Security analysis
SafeThe skill describes a legitimate Go UI framework with no destructive or exfiltrating instructions. It uses allowed tools like Bash for development commands (go test, deploy), but only in a standard development context.
No concerns found
How this analysis is madeExamples
Create a new g-sui page at the route '/about' that displays a simple about section with a title and description, using the ui.Div and ui.HTML helpers.In a g-sui app, implement a form with a text input and a submit button. When submitted, the server action should return a thank-you message using ui.Alert.Using g-sui, set up a page that displays a live counter updated via WebSocket. The server should broadcast the current count every second.name: g-sui description: Server-rendered Go UI framework. Use when building g-sui applications, creating UI components, handling forms with server actions, using data tables, setting up routes, or implementing WebSocket patches. Triggered by "g-sui", "server-rendered UI", "Go UI framework", form handling, or data collation. allowed-tools: Read, Grep, Glob, Bash, Edit, Write
g-sui Framework
Server-rendered UI framework for Go. All HTML generation, business logic, and state management occur on the server. Interactivity achieved through server actions and WebSocket patches.
Quick Start
package main
import "github.com/michalCapo/g-sui/ui"
func main() {
app := ui.MakeApp("en")
app.Page("/", func(ctx *ui.Context) string {
return app.HTML("Home", "bg-gray-100",
ui.Div("p-8")(
ui.Div("text-2xl font-bold")("Hello World"),
),
)
})
app.Listen(":8080")
}
Documentation Index
| Topic | File | Description | |-------|------|-------------| | Core Concepts | CORE.md | Architecture, Context, Actions, Targets, server rendering | | UI Components | COMPONENTS.md | Buttons, inputs, forms, tables, alerts, cards, tabs, etc. | | Data Management | DATA.md | Data collation, search, sort, filter, pagination, Excel export | | Server Setup | SERVER.md | App initialization, routes, WebSocket, PWA, assets | | Best Practices | PATTERNS.md | Testing, validation, security, state management |
Core Philosophy
- Server-Centric Rendering - All HTML generated server-side as strings
- String-Based Components - Components are Go functions returning HTML strings
- Action-Based Interactivity - User interactions trigger server handlers returning HTML
- WebSocket-Enhanced - Real-time updates via
/__wsendpoint
Key Types
type Callable = func(*ui.Context) string // All handlers return HTML
type Attr struct { ID, Class, Value, OnClick, OnSubmit, ... } // HTML attributes
Common Imports
import "github.com/michalCapo/g-sui/ui"
Development Commands
go run examples/main.go # Run example app
go test ./... # Run all tests
go test ./ui/... # Test UI package
go build # Build project
./deploy # Create and push new version tag
Releases
To create a new version release:
./deploy
The deploy script automatically:
- Starts at version
v0.100if no tags exist - Increments the minor version by 1 (e.g.,
v0.100→v0.101→v0.102) - Ensures working tree is clean before tagging
- Creates an annotated git tag and pushes to remote
Version numbering: v0.XXX format, auto-incremented from v0.100.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/g-sui-go-ui-framework-mm5t8alq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/g-sui-go-ui-framework-mm5t8alq/download' --output '.skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md.part' && mv '.skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md.part' '.skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob, Bash, Edit, Write
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md' && test -s '.skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/g-sui' && cp -R '.skill-downloads/g-sui-go-ui-framework-mm5t8alq' '.claude/skills/g-sui'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/g-sui-go-ui-framework-mm5t8alq'openskills read 'g-sui-go-ui-framework-mm5t8alq'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/g-sui-go-ui-framework-mm5t8alq/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.