common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Write safe concurrent Go code with goroutines, channels, and context. Use when implementing concurrency with goroutines, channels, or context in Go.
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-concurrency -a windsurf -y
name: golang-concurrency
description: Write safe concurrent Go code with goroutines, channels, and context. Use when implementing concurrency with goroutines, channels, or context in Go.
metadata:
triggers:
keywords:
- goroutine
- go keyword
- channel
- mutex
- waitgroup
- Go context
- context in Go
- context.Context
- errgroup
- race condition1. **Choose primitive** — `errgroup.Group` for parallel tasks with error propagation, channels for pipelines, `sync.Mutex` for simple shared state. 2. **Bound Concurrency with Semaphore** — Cap maximum active goroutines using a buffered channel semaphore:
sem := make(chan struct{}, maxWorkers)
for _, task := range tasks {
task := task // prevent loop pointer capture
sem <- struct{}{}
g.Go(func() error {
defer func() { <-sem }()
return task.Execute(ctx)
})
}3. **Respect Context Cancellation** — Goroutines performing I/O must honor `ctx.Done()`. 4. **Avoid Loop Pointer Capture** — Capture iteration variables explicitly before launching goroutines. 5. **Test with race detector** — Run `go test -race` in local dev and CI.
See [ErrGroup and concurrency patterns](references/concurrency-patterns.md) and [context timeout examples](references/context-usage.md)
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.