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 con mi Agente
Copia esta solicitud en tu Agente. Incluye la página canónica del Skill y el manifiesto.
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.Tu Agente debe seguir mostrando su plan y solicitar cualquier confirmación exigida por la política de seguridad.
Recursos legibles por agentes
Usa estos enlaces cuando un agente de IA, crawler o script necesite contexto limpio en vez de leer la página completa.
Pruébalo
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.
Auditoría de seguridad
Riesgo medioAll 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.
Preocupaciones de seguridad confirmadas (1)
Factores de riesgo
⚙️ Comandos externos (50)
Compartir y citar este informe
Comparte el informe de evaluación versionado, la insignia neutral, la tarjeta insertable y las citas. Skillstore presenta evidencias sin decidir si este Skill es seguro.
Copiar enlace del informe
https://skillstore.io/skills/samber-golang-concurrency/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/samber-golang-concurrency?utm_source=security_passport_badge)Insignia 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>Tarjeta para insertar
<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>Citas académicas (APA · BibTeX · CFF)
Cita 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 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"
Puntuación de Skillstore
Por qué esta puntuación Confianza de la evidencia: MedioLo que puedes crear
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.
Prueba estos 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.
Mejores prácticas
- 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.
Preguntas frecuentes
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?
Detalles del desarrollador
Autor
samberLicencia
MIT
Versión del autor
v1.2.1
Revisión de Skillstore
r1
Ref.
2d5afc74d3bbf9fe6e6fe78b7148ae41abe5e6ba
Actualidad del mantenimiento
15/10/2026
Uso
0 descargas · 0 vistas
Estructura de archivos