Skip to content

docs(skills): add Go skills adapted from spf13/go-skills - #665

Merged
edenreich merged 1 commit into
mainfrom
docs/spf13-go-skills
Jun 27, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/spf13-go-skills

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Part of #657.

Adds three Go reference skills under .agents/skills/, distilled from spf13/go-skills ("Idiomatic Go: The Pragmatic Playbook", by Steve Francia - author of Cobra/Viper/Hugo) and adapted to this repo's conventions.

Skills

Skill What it covers
go Idiomatic Go: zero-value / return-early, interfaces (accept interfaces, return structs), %w error wrapping, functional options, table-driven tests + go-cmp + afero, generics, modern stdlib (slices/maps/cmp/errors.Join, typed atomics, range-over-int), logging discipline, "the toolchain is not the bug" debugging
cobra-viper Command-first CLI architecture: RunE, SilenceUsage, PersistentPreRunE, flag design, typed-struct Unmarshal, flag/env/file/default precedence, in-memory command tests
go-spec-reviewer A general-purpose subagent dispatch template that reviews a Go design spec (philosophy / Cobra-Viper / completeness checklists) before implementation begins

Adapted to this repo, not parroted

spf13's playbook is deliberately opinionated and clashes with parts of this codebase. Each clashing stance is kept as the general idiom but annotated with a visible > In this repo: callout, so the skill won't tell an agent to fight the architecture:

  • "delete the internal/ junk drawer" -> keep name-by-purpose / no junk-drawer packages / wire-at-the-composition-root, but point at the real internal/ domain/infra/services split + internal/container/container.go.
  • "fakes over generated mocks" -> keep small consumer-defined interfaces, but point at counterfeiter (tests/mocks/, task mocks:generate, Taskfile.yml).
  • slog / single ~/.myapp.yaml -> note this repo uses go.uber.org/zap and the layered INFER_* config in cmd/root.go::initConfig.

All three are license: Apache-2.0 with an "Adapted from spf13/go-skills (MIT)" attribution line, and cross-link each other plus the existing go-concurrency skill.

Verification

  • flox activate -- markdownlint clean on all three.
  • Pre-commit Format code + Lint passed.
  • Punctuation kept ASCII (hyphens, ...) to match main's convention.

@edenreich
edenreich requested a review from a team as a code owner June 27, 2026 18:44
@edenreich
edenreich merged commit 971ac23 into main Jun 27, 2026
1 check passed
@edenreich
edenreich deleted the docs/spf13-go-skills branch June 27, 2026 18:52
@edenreich edenreich linked an issue Jun 27, 2026 that may be closed by this pull request
6 tasks
inference-gateway-releaser Bot added a commit that referenced this pull request Jun 28, 2026
## [0.125.0](v0.124.1...v0.125.0) (2026-06-28)

### 🚀 Features

* **reminders:** configurable reminders on a shared hook-point catalog ([#675](#675)) ([179cad1](179cad1)), closes [#270](#270) [#669](#669) [#270](#270) [#525](#525) [#270](#270)
* **channels:** retain inbound voice/audio recordings with bounded cleanup ([#671](#671)) ([8fd29ce](8fd29ce))
* **hooks:** run configured shell commands at agent hook points ([#676](#676)) ([990f2c0](990f2c0)), closes [#270](#270) [#675](#675) [#675](#675) [#270](#270) [#675](#675) [#675](#675) [#669](#669) [#270](#270)

### 🐛 Bug Fixes

* **agent:** keep the internal completion check out of channel replies ([#672](#672)) ([96b166c](96b166c))
* **docs:** replace em dashes with hyphens for consistency in SKILL.md and configuration-reference.md ([1c9196d](1c9196d))

### ♻️ Code Refactoring

* dead-code cleanup, Go 1.26 modernization, width-aware truncation, race testing ([#667](#667)) ([7a97f3b](7a97f3b))
* interfaces, fix context propagation, and reduce delays ([#666](#666)) ([1a93ff8](1a93ff8))

### 📚 Documentation

* **skills:** add charm v2 skills (bubbletea, lipgloss, bubbles) ([#664](#664)) ([c7242c7](c7242c7)), closes [#657](#657) [#663](#663)
* **skills:** add Go skills adapted from spf13/go-skills ([#665](#665)) ([971ac23](971ac23))
* **skills:** add go-concurrency skill ([#663](#663)) ([c77ac33](c77ac33)), closes [#657](#657)

### ✅ Tests

* relax TestSessionID_Age_Recent upper bound to tolerate slow CI ([#673](#673)) ([9cfe203](9cfe203)), closes [#671](#671)
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.125.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add Golang skills selectively

1 participant