YugabyteDB ASH Instrumentation
yugabyte/yugabyte-db
Procedure for adding or changing YugabyteDB Active Session History wait states in TServer and DocDB C++ code, including the macro to use for sync and async paths.
Go concurrency patterns and pitfalls for this codebase. An agent skill from hegeldev/hegel-go.
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hegeldev/hegel-go go-concurrency --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/go-concurrency .claude/skills/go-concurrency && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .claude/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrencyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hegeldev/hegel-go go-concurrency --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/go-concurrency .agents/skills/go-concurrency && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .agents/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hegeldev/hegel-go go-concurrency --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/go-concurrency .cursor/skills/go-concurrency && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .cursor/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/hegeldev/hegel-go.git --path .claude/skills/go-concurrency--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hegeldev/hegel-go go-concurrency --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/go-concurrency .gemini/skills/go-concurrency && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .gemini/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install hegeldev/hegel-go go-concurrencyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/go-concurrency .github/skills/go-concurrency && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .github/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hegeldev/hegel-go --skill go-concurrency -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install hegeldev/hegel-go go-concurrency --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hegeldev/hegel-go.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/go-concurrency .opencode/skills/go-concurrency && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "go-concurrency" agent skill from https://github.com/hegeldev/hegel-go/tree/main/.claude/skills/go-concurrency into .opencode/skills/go-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-concurrency", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
go-concurrencyGo concurrency patterns and pitfalls for this codebase. An agent skill from hegeldev/hegel-go.
Go Concurrency is an agent skill from hegeldev/hegel-go. Go concurrency patterns and pitfalls for this codebase. Use when writing or reviewing code that involves goroutines, channels, mutexes, shared state, subprocess management, or anything that runs concurrently. Also use proactively when writing new code — ask yourself: can this be called from multiple goroutines? Is this resource process-global?
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/architecture.md`, `references/patterns.md` and `references/testing.md`).
It sits in Development, covering Async programming. The repository describes itself as: Property-based testing for Go. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 77ceb5d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Go Concurrency loads about 1.3k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 90 tokens; SKILL.md has 671 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from hegeldev/hegel-go at commit 77ceb5d, republished under its MIT licence (© hegeldev). 671 words, ~1,328 tokens.
.claude/skills/go-concurrency/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.This codebase multiplexes concurrent property tests over a shared subprocess via channels. Concurrency bugs here are subtle and the race detector only catches about half of real-world Go concurrency bugs. Think carefully.
Every piece of mutable state must have a clear owner. Either:
If you can't immediately name the owner of a field, that's a bug.
See references/architecture.md for the full map of what's protected by what. The key patterns:
<-processExited see the state without additional locking.If initialization happens "on first use" and multiple goroutines might be the first user, you have a race. Use sync.Once or initialize before spawning goroutines. The lazy pattern is especially tempting for error messages, log excerpts, and diagnostic data — but those are read under failure conditions when timing is least predictable.
Logging, error messages, and crash reports still need synchronization. s.logFile.Name() races with s.logFile = nil in cleanup. The fix is to capture the value at initialization time, or have the goroutine that detects the event compute the message before signaling.
conn.crashMessageFn = s.serverCrashMessage captures s and reads s.logFile — any field the method touches is shared state. Prefer capturing immutable values (strings, ints) rather than pointers to mutable structs.
Environment variables, working directory, temp file paths, and network ports are process-global. t.Setenv panics if called after t.Parallel(). If tests need different env values, pass config structs instead.
Even though os.File.Read is safe to call concurrently with Close at the syscall level, the logical race remains: after Close, the fd is freed and may be reused by another open. Read the file contents into a variable while the file is known to be open, then use the variable.
Go's select picks a uniformly random ready case. If you need priority (e.g., "check done before processing"), use a nested select with a non-blocking check first.
Every goroutine must have a clear termination path. A goroutine blocked on a channel send/receive that will never complete leaks forever. Common in error paths where cleanup skips closing a channel.
go test ./... runs separate binaries per package. t.Parallel() runs tests concurrently within a binary. Both levels matter:
.hegel/venv — all races here require filesystem-level coordination (atomic rename, unique paths per process)See references/testing.md for testing-specific patterns.
The Go memory model guarantees sequential consistency for data-race-free programs. Key rules:
mutex.Unlock() happens-before the next Lock() returnsonce.Do(f) completion happens-before any Do() call returnsclose(ch) happens-before <-ch returns zero valuego f()) happens-before f() startsCorollary: if you write to a variable, then close a channel, any goroutine that receives from that channel is guaranteed to see the write. This is the pattern used by processExited.
© hegeldev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .claude/skills/go-concurrency of hegeldev/hegel-go.
Open the folder on GitHubat commit 77ceb5d
Go Concurrency next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Go Concurrency this skillhegeldev/hegel-go | 103 | — | ~1.3k | Automated safety check: Pass | MIT | |
| YugabyteDB ASH Instrumentationyugabyte/yugabyte-db | 11k | — | ~4.5k | Automated safety check: Pass | Custom licence | |
| Mirage VFS Adapter Authoringstrukto-ai/mirage | 3.7k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Golang Patternsantoniopaya22/go-rest-template | 172 | 9 repos | ~3.5k | Automated safety check: Pass | None | |
| Rust Async Patternsdiodeme/Gold-Band | 143 | 10 repos | ~3.1k | Automated safety check: Pass | AGPL-3.0 | |
| Swift Concurrencyhenrypldev/react-native-nitro-mlx | 100 | 3 repos | ~3.1k | Automated safety check: Pass | MIT |
yugabyte/yugabyte-db
Procedure for adding or changing YugabyteDB Active Session History wait states in TServer and DocDB C++ code, including the macro to use for sync and async paths.
strukto-ai/mirage
Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.
antoniopaya22/go-rest-template
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
diodeme/Gold-Band
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns.
henrypldev/react-native-nitro-mlx
Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when working with tasks, actors, @MainActor, Sendable, data races, thread safety, or…
farm-fe/farm
Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions.
hegeldev/hegel-go
Changelog style guide for writing RELEASE.md files. An agent skill from hegeldev/hegel-go.
hegeldev/hegel-go
Review your own changes before creating a pull request. An agent skill from hegeldev/hegel-go.
hegeldev/hegel-go
How to approach code coverage in this project. An agent skill from hegeldev/hegel-go.
hegeldev/hegel-go
How to align the Go FFI wrapper to a new libhegel (hegel-c) release.
Categories
Go concurrency patterns and pitfalls for this codebase. An agent skill from hegeldev/hegel-go. Go Concurrency is an agent skill from hegeldev/hegel-go. Go concurrency patterns and pitfalls for this codebase.
Go Concurrency fits situations like: reviewing code that involves goroutines; subprocess management; anything that runs concurrently.
Run `npx skills add hegeldev/hegel-go --skill go-concurrency -a claude-code`. Or copy the skill folder (.claude/skills/go-concurrency in hegeldev/hegel-go) into .claude/skills/go-concurrency in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hegeldev/hegel-go --skill go-concurrency -a codex`. Or copy the skill folder (.claude/skills/go-concurrency in hegeldev/hegel-go) into .agents/skills/go-concurrency in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hegeldev/hegel-go --skill go-concurrency -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-concurrency, .gemini/skills/go-concurrency, .github/skills/go-concurrency and .opencode/skills/go-concurrency in your project.
Going by SKILL.md and its folder, Go Concurrency needs the command-line tools its instructions call (go).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Go Concurrency is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Go Concurrency: YugabyteDB ASH Instrumentation (yugabyte/yugabyte-db, 11k stars), Mirage VFS Adapter Authoring (strukto-ai/mirage, 3.7k stars), Golang Patterns (antoniopaya22/go-rest-template, 172 stars) and Rust Async Patterns (diodeme/Gold-Band, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
hegeldev (a GitHub organization) maintains it in hegeldev/hegel-go, which has 103 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.
Source: hegeldev/hegel-go on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.