mygo-maintenance
Skill0 starsChanged 39 days agoMITView on GitHub
Maintain Go applications using github.com/egoist/mygo, including UI changes, crash fixes, and dependency upgrades. Apply MyGo-specific lifetime, identity, threading, and testing practices.
7 other projects use a version of this, 1 of them edited.
How people change it
All 1 edited versions we compared keep every one of its 5 rules.
Of the 1 edited version we compared: 1 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Most recently taken up by
- Blinks44/hearthword for word, first seen Nov 29, 2026
- 21stware/bowelword for word, first seen Nov 29, 2026
- hehehai/AudioSmithword for word, first seen Nov 22, 2026
- hehehai/voxtedited, first seen Nov 16, 2026
- zhihui/Auroraword for word, first seen Nov 8, 2026
- echoVic/cleanzoword for word, first seen Nov 8, 2026
Other versions7 projects use a version of this.
Word for word · 6
- 21stware/bowel★ 949100% same
- hehehai/AudioSmith★ 263100% same
- echoVic/cleanzo★ 82100% same
- Binaryify/MyGit★ 68100% same
- Blinks44/hearth★ 46100% same
- zhihui/Aurora★ 0100% same
Edited · 1
- hehehai/voxt★ 92789% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use .FocusBind(&a.pane, files) when app data should request focus.
- Very specific: line 18
Use handle.Bounds(c) for committed geometry in input callbacks.
- Very specific: line 30
Keep slow I/O and expensive computation off the UI thread.
- Distinctive: line 31
Keep drawing callbacks limited to painting.
- Very specific: line 36
Run targeted regression tests, go tool mygo vet .
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
MyGo app maintenance
Check the app's pinned MyGo version and existing conventions before changing APIs. Locate its source with go list -m -f '{{.Dir}}' github.com/egoist/mygo; read ui/doc.go and relevant implementation comments. Read docs/ui/migration.md only for major-version upgrades, including minor-version bumps while on 0.x (for example, 0.2.x to 0.3.x, or 1.x to 2.x). Confirm API availability against the pinned source.
The native UI rules below apply where the app uses package ui; preserve a web app's frontend and typed Go/TypeScript bindings.
UI lifetime and identity
- Views receive a stable
*ui.Contextfor their window.Children(func())shares it and changes its parent scope during the callback. Keep Context out of app state and workers; capturec.Services()for persistent clipboard/URL callbacks and background redraws. - Constructors return checked
ui.Elementvalues. Elements and custom parts expire before the next build pass, including another pass in the same frame. Store app data, widget state andui.Handle, never an element or parts. Zero elements are safe andValid()is a quiet check; stale operations panic in development/Tester and become empty results or no-ops in production. Fix the ownership rather than relying on validity guards or recovery. - Bind persistent identity with
.Bind(&handle).handle.Focused(c)andFocusWithin(c)read committed focus independently of construction order.handle.Focus(c)requests focus and waits while hidden;CancelFocus(c)cancels it. Handles support several windows; select one with its Context, and keep widget state separate per window. - Use
.FocusBind(&a.pane, files)when app data should request focus. The field holds desired focus;ui.FocusedValue(c, &a.pane)reads actual focus while a hidden target waits. Use a comparable field, unique target values and its zero value for no focus. - Use
handle.Bounds(c)for committed geometry in input callbacks.c.Resolve(handle)returns only the current build's element. Do not capture an element in a later input callback to query its bounds. - Give controls stable, unique identity before construction with
c.Key(key), including stateful widgets. Container.Key(key)must precede children and local state. Configure fluent lists before.Rows; use.ItemKeyfor stable item identity andui.ListRow.Selected()/ListFocused()for row styling.
Input and actions
- Bound values update after construction and configuration.
Changed/Submittednotices appear in the following build pass. Bind directly to persistent model fields when possible. A local value recomputed each pass loses the edit before its notice; write derived checkbox or segmented values back inOnClick, after that build's bound input updates them. OnClick/OnShortcutrun after construction and bound input;OnChange/OnSubmitobserve the rebuilt view's notices. Prefer deferred actions when changing a collection being built.Clicked()and shortcut queries remain supported for local interactions.- Declare scoped commands with
handle.OnShortcut(c, mods, key, fn), before or after Bind. Only an enabled control present in the current build takes its command. Usec.OnShortcutfor commands in the current parent scope.
State, work, and rendering
- Views may rebuild several times for one event. Trigger external side effects through handled actions or explicit guarded jobs, not unconditional rendering code.
- Keep slow I/O and expensive computation off the UI thread. Publish results through
Window.Update; it is asynchronous.Invalidaterequests redraws without synchronizing model writes. Cancel obsolete jobs or reject stale results after source changes or window closure. - Keep drawing callbacks limited to painting; they can run repeatedly. Prefer MyGo widgets/base widgets to preserve keyboard, focus, disabled, and accessibility behavior. Follow the app's theme and sizing conventions.
Verification
- Reproduce UI failures with
ui.NewTester. Exercise extra frames while elements disappear and return, plus relevant focus, typing, and shortcut behavior. - Run targeted regression tests,
go tool mygo vet .for stored build values and goroutine captures, andCGO_ENABLED=0 go test ./.... Use race checks when changing shared state, and inspect rendered output or the native app when changing layout/platform behavior, respecting the user's verification preferences. - For upgrades, preview with
go tool mygo migrate-ui ., apply with-write, and review persistent identity/services, separately assigned keys and derived bound values manually. Verify affected API/lifecycle assumptions against the new pinned source and rerun relevant UI tests. Report remaining platform-specific verification limits.
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.

