go-concurrency-web

go-concurrency-web is a skill for Claude Code from existential-birds/beagle. It costs 46 tokens per session (2,138 once invoked), scanned A, original, Apache-2.0.

A Go guide to running work concurrently in web applications, including worker pools, rate limits, race detection, and shared-state protection. A goroutine is a lightweight unit of concurrent Go work; a race occurs when concurrent code accesses shared data unsafely.

In plain words
What is it for?
Use it for background workers, rate limiters, concurrent HTTP handling, shutdown paths, and investigating race-detector failures.
Why use it?
It helps prevent too many tasks from overwhelming a service, goroutines that never stop, and data corruption caused by unsynchronised access. It also recommends checks for concurrent code before merging it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go build -race -o myserver ./cmd/server.

Part of the beagle-go plugin — 12 skills shipped together

Good fit Use it for background workers, rate limiters, concurrent HTTP handling, shutdown paths, and investigating race-detector failures.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle
agentmods
npx agentmods add skills/existential-birds/beagle/go-concurrency-web

Made for: Claude Code.

Or install beagle-go, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-concurrency-web

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/go-concurrency-web/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/go-concurrency-web)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/go-concurrency-web"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/go-concurrency-web/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-concurrency-web

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/go-concurrency-web"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/go-concurrency-web.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02138
Opus 5.5 $0.00018 $0.00855
Sonnet 5.5 $0.00009 $0.00428
Haiku 4.5 $0.00005 $0.00214

Measured 1mo ago against content hash 9e60e5c3dc8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-concurrency-web scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/beagle-go/skills/go-concurrency-web/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Concurrency for Web Applications

Quick Reference

Topic Reference
Worker Pools & errgroup references/worker-pools.md
Rate Limiting references/rate-limiting.md
Race Detection & Fixes references/race-detection.md

Core Rules

  1. Goroutines are cheap but not free — each goroutine consumes ~2-8 KB of stack. Unbounded spawning under load leads to OOM.
  2. Always have a shutdown path — every goroutine you start must have a way to exit. Use context.Context, channel closing, or sync.WaitGroup.
  3. Prefer channels for communication — use channels to coordinate work between goroutines and signal completion.
  4. Use mutexes for state protection — when goroutines share mutable state, protect it with sync.Mutex, sync.RWMutex, or sync/atomic.
  5. Never spawn raw goroutines in HTTP handlers — use worker pools, errgroup, or other bounded concurrency primitives.

Gates (check before merge or review)

Use these sequenced checks for objective pass/fail; do not replace them with “I verified mentally.”

  1. Race detector
    • Run go test -race ./... on packages that changed concurrent code, or go build -race for binaries under test.
    • Pass: exit code 0. If you report “no races,” attach or cite CI output / saved terminal transcript—do not assert cleanliness without that artifact.
  2. Bounded background work from HTTP
    • Inspect handlers and middleware that start work beyond the request goroutine.
    • Pass: every such path uses a bounded primitive (worker pool, buffered channel with documented capacity, errgroup with an explicit concurrency cap)—not unbounded go per incoming request.
  3. Graceful teardown
    • For processes that start long-lived goroutines, trace from shutdown signal (or test defer) to Wait() / channel close / context cancel for each goroutine family.
    • Pass: you can point to the call chain or a test that proves shutdown completes without hang (no orphan goroutines).

Read the full file on GitHub · 275 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 275 lines · 46 tokens per session scan A 9e60e5c3dc8e

Subscribe to this mod's changes

go-concurrency-web is a skill published in the GitHub repository existential-birds/beagle (82 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 2,138 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.

Related

Other skills, from other repositories

agui-dotnet-streaming-chat

Get started with the AG-UI .NET SDK: bootstrap and run your first streaming-chat app (client + server) with the AG-UI .NET NuGet packages (AGUI.Client, AGUI.Server, AGUI.Formatting, AGUI.Abstractions). USE FOR: which packages to install and how to wire them; constructing an AGUIChatClient against an endpoint and…

ag-ui-protocol/ag-ui · 223 tokens

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

rmyndharis/antigravity-skills · 57 tokens

grpc

Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime…

managedcode/dotnet-skills · 95 tokens

azure-messaging-webpubsubservice-py

Real-time messaging with WebSocket connections at scale.

benjaminasterA/antigravity-awesome-skills · 0 tokens