golang-concurrency
Design and Review Go Concurrency
Concurrent Go code can hide goroutine leaks, shared-state races, and blocked pipelines. This skill guides implementation and review with lifecycle checklists and synchronization examples.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "golang-concurrency" from https://skillstore.io/skills/samber-golang-concurrency.md and its manifest at https://skillstore.io/api/skills/samber-golang-concurrency/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "golang-concurrency". Review a function that calls WaitGroup.Add inside each new goroutine.
Resultado esperado:
- Wait can return before goroutines register, leaving work running after the function returns.
- Register work before launching goroutines and defer completion inside each worker.
- For suitable Go 1.25+ tasks, consider WaitGroup.Go; use errgroup when error propagation or cancellation is required.
Usando "golang-concurrency". Choose synchronization for a cache with frequent writes to overlapping keys.
Resultado esperado:
- Start with a plain map protected by a mutex or RWMutex.
- sync.Map targets write-once/read-many or disjoint-key access patterns, so it is not the default choice here.
- Keep critical sections short and benchmark the actual workload.
Usando "golang-concurrency". Audit a fan-in function whose input channels may stay open after cancellation.
Resultado esperado:
- An unconditional channel receive cannot observe cancellation while the input is idle.
- Select between cancellation and each receive, and handle closed channels explicitly.
- Test cancellation with every input open and idle, then verify all workers and the output closer finish.
Auditoria de segurança
Risco MédioAll 66 static alerts are false positives involving formatting, illustrative Go identifiers, documentation links, or localhost profiling commands. No evidence found of malicious instructions, credential theft, or external data exfiltration. One semantic availability finding covers pipeline examples whose blocking receives can prevent cancellation and retain goroutines.
Preocupações de segurança confirmadas (1)
Fatores de risco
⚙️ Comandos externos (50)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/samber-golang-concurrency/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/samber-golang-concurrency?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/samber-golang-concurrency?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-concurrency/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/samber-golang-concurrency.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
samber. (2026). golang-concurrency security audit report (audit version 1) [Author version 1.2.1]. Skillstore. https://skillstore.io/skills/samber-golang-concurrency/audits/1Citação BibTeX
@techreport{samber-samber-golang-concurrency-2026,
author = {samber},
title = {golang-concurrency security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-concurrency/audits/1},
note = {Author version 1.2.1}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-concurrency security audit report (audit version 1)"
version: "1.2.1"
type: report
authors:
- name: "samber"
date-released: "2026-10-15"
url: "https://skillstore.io/skills/samber-golang-concurrency/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-concurrency:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Build a bounded background worker
Design worker ownership, concurrency limits, error propagation, and shutdown behavior before adding background tasks.
Review concurrent pull requests
Inspect changed goroutines, channel closure, shared state, and cancellation paths using a focused review checklist.
Audit service concurrency
Coordinate a codebase review across lifecycle management, synchronization, channel ownership, and resource bounds.
Teste estes prompts
For this Go shared-state example, compare channels, mutexes, and atomics. Recommend the simplest option and explain ownership: [code].
Review this Go diff for goroutine leaks, unsafe channel closure, shared-state races, and missing cancellation. Explain each issue and propose focused fixes: [diff].
Implement [task] in Go [version] with errgroup, a limit of [N], first-error cancellation, and ordered results. Include shutdown tests.
Audit [scope] for channel ownership, blocked receives, cancellation, and concurrency bounds. Coordinate focused reviewers when available; prioritize findings and propose idle-input cancellation tests.
Boas práticas
- Define each goroutine owner, stop signal, and waiting mechanism before implementation.
- Test cancellation during blocked sends and receives, then run race and goroutine leak checks.
- Match APIs to the project Go version and justify concurrency limits with workload measurements.
Evitar
- Launching unbounded goroutines without shutdown or waiting mechanisms.
- Closing producer channels from consumers or mutating shared data without synchronization.
- Copying pipeline examples without testing cancellation when input channels remain open.
Perguntas frequentes
What does this skill cover?
Which assistants can use it?
Does it require a Go installation?
Does it automatically run a concurrency analyzer?
Are its examples ready for production?
Can it diagnose an existing production hang?
Detalhes do desenvolvedor
Autor
samberLicença
MIT
Versão do autor
v1.2.1
Revisão da Skillstore
r1
Referência
2d5afc74d3bbf9fe6e6fe78b7148ae41abe5e6ba
Atualidade da manutenção
15/10/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos