business-ops
Business operations: strategy, technology, growth, competitive intelligence, support, finance, HR, legal, operations, sales, productivity, product management.
Go development patterns: testing, concurrency, errors, review, and conventions.
$ npx -y skills add notque/vexjoy-agent --skill go-patterns --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/go-patternsContext preview
The summary Claude sees to decide when to auto-load this skill.
Go development patterns: testing, concurrency, errors, review, and conventions.
name: go-patterns
version: 1.0.0
description: "Go development patterns: testing, concurrency, errors, review, and conventions."
user-invocable: false
allowed-tools:
- Read
- Write
- Bash
- Grep
- Glob
- Edit
- Task
- Skill
agent: golang-general-engineer
routing:
category: language
force_route: true
not_for: "'go' as a verb (go ahead, here we go, go-live, let's go), Go (the board game), pidgin/cargo english 'go do X'; only fires for the Go programming language patterns/idioms/testing or edits to .go files; SAP Commerce Cloud PHP work (use php-general-engineer agent)"
triggers:
- .go
# testing triggers
- go test
- "*_test.go"
- table-driven
- t.Run
- t.Helper
# concurrency triggers
- goroutine
- channel
- sync.Mutex
- sync.WaitGroup
- worker pool
- fan-in
- context.Context
- "goroutine fan-out"
# error handling triggers
- fmt.Errorf
- errors.Is
- errors.As
- "%w"
- sentinel error
# review pattern triggers
- "Go failure mode"
- "Go code smell"
# code review triggers
- Go code review
- Go PR
- Go quality
# sapcc conventions triggers
- sapcc
- sap-cloud-infrastructure
- go-bits
- keppel
- go-api-declarations
- go-makefile-maker
# quality gate triggers
- make check
- Go lint
pairs_with:
- golang-general-engineer
- systematic-code-reviewUmbrella skill for Go development: Google style, testing, concurrency, error handling, failure modes, code review, SAP CC conventions, and quality gates. Load the references relevant to the task.
Use this precedence when guidance differs:
1. The target repository's explicit rules and required compatibility constraints. 2. The Google Go Style Guide's canonical rules. 3. Google Go Style Decisions' normative guidance. 4. Google Go Style Best Practices' non-canonical recommendations. 5. Task-specific references below.
Prefer local consistency only where the Google guide allows judgment. Do not create unrelated churn merely to restyle existing code. For new and nearby changed code, follow the current pinned guidance. Record a conscious exception when repository rules, generated-code constraints, or compatibility requirements require one.
| Signal | Load These Files | Why | |---|---|---| | Google-specific style decisions | Relevant sections under `google-style-guide/` | Check the pinned conventions needed for the task | | Testing | `testing.md` | Writing, fixing, or reviewing Go tests | | Concurrency | `concurrency.md` | Goroutines, channels, sync primitives, race conditions | | Error handling | `error-handling.md` | Error wrapping, sentinels, custom types, errors.Is/As | | Review patterns | `preferred-patterns.md` | Detecting code smells, over-engineering, bad Go patterns | | Code review | `code-review.md` | Reviewing Go code or PRs for quality | | SAP CC conventions | `sapcc-conventions.md` | Working in sapcc/* repos with go-bits | | Quality gate | `quality-gate.md` | Running make check, linting, pre-commit validation |
Classify the task into one or more domains, then load the corresponding reference files. Only load what is needed -- do not load all references for every task.
| Domain | Load Reference | When | |--------|---------------|------| | Testing | `references/testing.md` | Writing, fixing, or reviewing Go tests | | Concurrency | `references/concurrency.md` | Goroutines, channels, sync primitives, race conditions | | Error handling | `references/error-handling.md` | Error wrapping, sentinels, custom types, errors.Is/As | | Review patterns | `references/preferred-patterns.md` | Detecting code smells, over-engineering, bad Go patterns | | Code review | `references/code-review.md` | Reviewing Go code or PRs for quality | | SAP CC conventions | `references/sapcc-conventions.md` | Working in sapcc/* repos with go-bits | | Quality gate | `references/quality-gate.md` | Running make check, linting, pre-commit validation |
Multiple domains may apply. For example, reviewing a PR that includes concurrency code should load both `code-review.md` and `concurrency.md`.
Read the selected reference file(s) using `${CLAUDE_SKILL_DIR}/references/<name>.md`. Each reference contains the full methodology, phases, code examples, and error handling for that domain. Follow the instructions in the reference as if they were this skill's instructions.
Some references point to their own sub-reference files for extended patterns:
**Testing** sub-references:
**Concurrency** sub-references:
**Error handling** sub-references:
**Review-pattern** sub-references:
**Code review** sub-references:
**SAP CC conventions** sub-references:
Essays and writing behind this toolkit live at vexjoy.com. VexJoy Agent connects plain-English requests to specialist agents, skills, and workflows. /do selects the knowledge and tools needed for your task.
Repo: notque/vexjoy-agent
Business operations: strategy, technology, growth, competitive intelligence, support, finance, HR, legal, operations, sales, productivity, product management.
Design workflows — UX copy, design systems, design critique, accessibility review, design handoff, user research synthesis. Use when writing UI copy, reviewing…
Marketing: SEO audits, campaign planning, content strategy, email sequences, competitive analysis, brand review, performance reporting.