Skip to content

Add ub-go skill for Go development - #2

Open
Zyra-V21 wants to merge 1 commit into
robert-hoffmann:mainfrom
Zyra-V21:add-ub-go
Open

Add ub-go skill for Go development#2
Zyra-V21 wants to merge 1 commit into
robert-hoffmann:mainfrom
Zyra-V21:add-ub-go

Conversation

@Zyra-V21

Copy link
Copy Markdown

This adds a Go language skill built on the same structure and principles as ub-python and ub-ts: repo truth first, modern patterns for new code, bounded legacy exceptions, and validation after edits.

Contents:

  • SKILL.md with the usual contract: routing description, core workflow, version and research policy with OFFICIAL_CONFLICT/UNVERIFIED disclosures, implementation rules, legacy guardrails, output requirements, and completion checklist.
  • references/go-standards.md: portable modern Go baseline (module and toolchain truth, small consumer-side interfaces, generics discipline, error wrapping, structured concurrency, modern stdlib preferences such as log/slog, slices/maps/cmp, os.Root and testing/synctest, testing practice) with an official source map.
  • references/repository-go-workflows.md: resolving a repo's actual Go version, build, and validation truth before recommending commands.
  • references/golangci-config-resolution.md: lint config discovery order, config format awareness, and scaffold behavior.
  • assets/golangci-template/.golangci.yml plus scripts/scaffold_golangci.py: copy-if-missing starter using the current v2 config schema, same pattern as the Ruff scaffold in ub-python. It refuses to write anything if any golangci config already exists.
  • Docs page with the standard sections, and entries in the catalog index, sidebar, AGENTS.md, README, and the marketplace skill count.

Validation: check_repo_catalog, check_package_metadata, check_repo_paths and check_skill_schema all pass, check-docs-sync reports nothing for this skill, the scaffold script passes ruff with the repo config, and the template passes yamllint with the repo settings.

There is a companion PR adding ub-rust. Both touch the shared catalog files (skill count and tables), so whichever lands second will need a small rebase; I can take care of that.

I tried to stay close to how ub-python and ub-ts are written, but if any of it does not fit how you want language skills to evolve (naming, scope, the scaffold, the reference split), I am happy to rework it. Feedback very welcome.

New language skill following the same structure as ub-python and ub-ts:
SKILL.md contract, portable standards reference with official source map,
repository workflow discovery, golangci-lint config resolution, and a
copy-if-missing scaffold for repos without lint config.

Registered in AGENTS.md, README, marketplace.json, the docs sidebar, and
the skill catalog index. All repo maintenance checks pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant