Skip to content

feat(skills): vendor 20 Go skills from samber/cc-skills-golang and sync them to Go repositories (T927a) - #200

Merged
bketelsen merged 6 commits into
mainfrom
lucilla/vendor-go-skills
Nov 6, 2026
Merged

bketelsen merged 6 commits into
mainfrom
lucilla/vendor-go-skills

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Brian chose T927a "Curated, via core sync" (2026-11-05). Core now vendors 20 general Go skills from samber/cc-skills-golang (MIT) at bb1d43d98a3f8ab639a0042f90d0ec524e39a477, and the skills sync delivers them only to Go repositories.

  • .agents/skills/golang-*/ (20 dirs): upstream SKILL.md + linked references/, the upstream LICENSE, and an attribution line (repo, full SHA). evals/ and assets/ dropped, except golang-cli/assets/examples/ (a separate Go module the skill links 12 times; gofmt-clean).
  • Every skill opens with a Frostyard override block: the repository's AGENTS.md, frostyard-go-repo and core's ADRs win. grep -rn "Frostyard override" .agents/skills/golang-* lists every edit.
  • .github/skills-sync.json: new optional groups member. "@go" = frostyard-go-repo + the 20 skills. The 8 Go consumers (updex, chairlift, pilothouse, repogen, clix, std, intuneme, firn) now carry ["@go"]; snosi and lab are unchanged. Selection rule: the repositories that already got frostyard-go-repo (all 8 confirmed Go by gh api …/languages).
  • scripts/sync-skills.sh: expands @group names, and resolves every repository before the first clone, so an unknown group stops the run with nothing pushed.
  • scripts/check-docs.mjs is unchanged (the code-span parser was dropped, T928b; follow-up check-docs: ignore link-shaped text in inline code spans without hiding real links #201). Its link pattern reads a Go generic call in inline code as a link, so 3 such calls in the vendored docs are split into X[T] and a code span for the arguments, each with a marked <!-- Frostyard override --> comment.
  • Docs: docs/design/shared-skills.md gets "Vendored Go skills" (picks, omissions, overrides, description budget, refresh procedure); skills-sync-operations.md documents groups; AGENTS.md and frostyard-onboard-repo name the @go group.

ADR-0026 needs no amendment: skills-sync.json stays the single config of defaults plus per-repository extras, and a group only names a set of extras. The sync to consumers runs after the merge.

Picks and omissions

Picks (20): code-style, naming, error-handling, concurrency, context, testing, stretchr-testify (pilothouse uses it directly), lint, modernize, safety, security, performance, troubleshooting, structs-interfaces, data-structures, documentation, cli, spf13-cobra, project-layout, dependency-management.

Omitted (26), each with one reason in the design doc: benchmark (performance covers the method; its CI part adds tools and workflows), gopls (needs an MCP server or a Claude plugin), refactoring (stacked PRs, which squash merges forbid), continuous-integration (Dependabot auto-merge and an AI review workflow), DI ×4 and samber-* ×7 (unused), graphql/grpc/swagger, database, observability (unused), spf13-viper (only clix uses it), design-patterns (overlap, leans on DI), how-to (writes into agent files), pkg-go-dev, popular-libraries, stay-updated.

Overrides

  • All 20: allowed-tools front matter removed (it pre-approves Bash(git:*), Bash(curl:*) in Claude Code); description pointers to unvendored skills removed and samber/cc-skills-golang@golang-x → golang-x; tools pinned in mise (ADR-0043), not go install …@latest/go get -tool/brew; gate is make verify/check/ci (ADR-0044); a suggested third-party module (samber/* etc.) needs the owner's approval; Claude orchestration hints yield to the session's rules.
  • error-handling: stdlib wrapping per frostyard-go-repo; no samber/oops / samber/slog-*.
  • testing (+ integration-testing.md): live tests self-skip on <PRODUCT>_LIVE_* (ADR-0038), no //go:build integration; assertion style follows the repository.
  • stretchr-testify: only where testify is a direct dependency.
  • lint (+ linter-reference.md): the repository's .golangci.yml (from updex) decides; upstream config not vendored; no extra Makefile targets.
  • modernize (+ tooling.md): go.mod full 1.x.y is the only Go pin, bumped with golangci-lint as one change; SHA-pinned actions (ADR-0021); no AI review workflow (ADR-0020).
  • documentation (+ project-docs.md, library.md): frostyard-repo-docs shape (ADR-0025); CONTRIBUTING.md stays a symlink (ADR-0029); no CHANGELOG.md, no llms.txt without approval; install docs name the APT repository (ADR-0055).
  • cli, spf13-cobra, project-layout (+ config.md, directory-layouts.md): clix and the SDK-first layout; no pkg/, no Viper layering; skip the checklist step that writes an always-load directive into AGENTS.md/CLAUDE.md.
  • dependency-management (+ automated-updates.md): tools in mise, not tool directives; nothing auto-merges (ADR-0042).
  • performance: example alert rules not vendored.
  • Link fixes: links to dropped assets become plain text; #readme → #readmemd, #delivery → #distribution, troubleshooting ./SKILL.md → ../SKILL.md (upstream links that do not resolve).

Description budget

The 20 descriptions total 10,437 characters (upstream 12,195 for the same 20). A Go repository's session loads them; a core session loads them too, since they live in core's .agents/skills/.

Risk tier

Risk tier: 3 — risk:high: the PR touches 2 risk paths.

  • .github/skills-sync.json (the repositories the sync writes to): the consumer list is unchanged (same 10 keys); 8 Go repositories get @go in place of frostyard-go-repo, which the group still contains, so no consumer loses a skill. The sync opens normal PRs in those repositories and pushes to no default branch.
  • scripts/sync-skills.sh (writes to other repositories): the only change is how the skill list is computed. Clone, containment, auth, branch and PR code is untouched (scripts/lib/* unchanged). The config shape is validated first (exactly 1 JSON document, string arrays, object members, no nested group); every repository's list then resolves before the first clone; invalid JSON, a wrong shape or an unknown group stops the run with ::error:: and exit 1 (a jq failure was hidden by a process substitution before); a consumer with an empty list is left alone. New tests: a group syncs every skill in it with markers; an unknown group in a later repository fails with exit 1 and no clone, push or gh call (a mutation that resolves lazily makes it fail).

Docs housekeeping

  • Cross-links added in both directions (shared-skills ↔ skills-sync-operations; AGENTS.md → shared-skills)
  • No new doc; no ADR (ADR-0026 is unchanged in meaning)
  • Conformance aliases (ADR-0029) untouched

Verification

  • make verify green locally at 2132c53: link_integrity: 1.000 (1732 links), bash_syntax: 6/6, corrections: 16 lines, 333 tests pass
  • Revert test (T776a), scratch worktree at c0421fe: scripts/sync-skills.sh and scripts/check-docs.mjs reverted to base, tests kept → not ok "docs gate ignores a link-shaped inline code span…", "a repository entry naming a group syncs every skill in the group", "a repository entry naming an unknown group fails the run before any clone". Mutations at the fix commit: plain mapfile (empty-list guard removed), the old strip regex, a prefix push matcher, and lazy group resolution each make a named test fail.
  • Cross-review (openai/gpt-6.1-sol) of c0421fe: 4 blocking findings (escaped backticks in the code-span strip, config shape validation, untested empty list, a vacuous push assertion) fixed in 2132c53 with tests and 4 .memory/corrections.jsonl lines; finding 5 (budget off by 2) fixed.
  • Re-review 1 of 2132c53: 2 blocking findings (backticks paired across adjacent headings; an empty file or a stream of 2 JSON documents passed the preflight) fixed with tests and 2 corrections lines. With the previous head's scripts and the new tests: not ok "docs gate does not pair backticks across 2 adjacent headings", "a config that is empty…", "a config that holds 2 JSON documents…". make verify: 336 pass.
  • Re-review 2 of c6e47a9: 1 blocking finding (a wrapped code span's closer read as a new opener hid the link after it). stripCodeSpans now strips only in blank-line-separated runs whose every line pairs all its backtick runs, and leaves any other run unstripped (all its links checked). New test "docs gate checks a link after a code span that wraps over 2 lines" fails with the previous check-docs.mjs. make verify: 338 pass, corrections 19 lines (append-only vs origin/main).
  • Re-review 3 of 3562205 (last in the budget): 1 blocking finding (a backtick pair across a GFM table cell boundary hid a link). Fixed in c2a5b85: a line with an unescaped |, or a < that may open HTML or an autolink, leaves its run unstripped; tests "docs gate checks a link when a backtick pair crosses a table cell boundary / an HTML attribute" fail with the previous check-docs.mjs. make verify: 340 pass, corrections 20 lines. Brian authorized 1 more re-review (T928a): it found 1 blocker in the parser (an email autolink with a backtick).
  • Brian chose to drop the parser (T928b). 37a14e3: scripts/check-docs.mjs and test/docs-integrity.test.mjs equal the base again; the 4 check-docs lines of feat(skills): vendor 20 Go skills from samber/cc-skills-golang and sync them to Go repositories (T927a) #200 leave .memory/corrections.jsonl (4 sync-skills lines stay; append-only vs origin/main); the 3 generic calls are split as above. The parser findings are in check-docs: ignore link-shaped text in inline code spans without hiding real links #201. make verify: link_integrity 1.000 (1729 links), 331 pass, corrections 16 lines. The parser's revert test no longer applies: the parser change is gone.
  • The refresh procedure's git apply -p2 --directory=.agents/skills --reject applied an upstream golang-testing diff cleanly around the override block
  • No scaffold or workflow change

@github-actions github-actions Bot added the risk:high Touches a path in .github/risk-paths.json label Nov 5, 2026
@bketelsen
bketelsen merged commit d68fd52 into main Nov 6, 2026
6 checks passed
@bketelsen
bketelsen deleted the lucilla/vendor-go-skills branch November 6, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants