golang-pro
构建生产级 Go 服务
Go 团队需要在并发、接口、测试和服务结构方面保持一致的模式。此技能为符合惯用法的 Go 实现和审查提供聚焦指导。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "golang-pro" from https://skillstore.io/skills/jeffallan-golang-pro.md and its manifest at https://skillstore.io/api/skills/jeffallan-golang-pro/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“golang-pro”。 设计用于图像处理的 worker pool。
预期结果:
- 一份 worker pool 方案,包含有界并发、取消行为、背压、错误传播和关闭规则。
- 一份聚焦的测试计划,覆盖成功路径、取消、worker 失败和竞态检测器检查。
正在使用“golang-pro”。 审查 Go 包的测试。
预期结果:
- 一份覆盖率审查,识别缺失的边界情况、表驱动场景、基准测试、模糊测试目标和 mock 边界。
- 按优先级排序的建议,用于在不创建脆弱测试的前提下提升信心。
正在使用“golang-pro”。 规划微服务项目布局。
预期结果:
- 一个包结构,包含命令入口点、internal 包、领域边界、配置和部署文件。
- 关于依赖方向、导出 API、build tags 和发布元数据的指导。
安全审计
安全All 64 static detections are false positives caused by Go examples, Markdown formatting, Makefile snippets, configuration tags, or documentation links. No executable scripts, data exfiltration intent, or prompt injection evidence was found in the six scanned files.
风险因素
⚡ 包含脚本 (9)
⚙️ 外部命令 (37)
🔑 环境变量 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/jeffallan-golang-pro/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/jeffallan-golang-pro?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/jeffallan-golang-pro?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/jeffallan-golang-pro/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/jeffallan-golang-pro.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
jeffallan. (2026). golang-pro security audit report (audit version 5) [Author version 1.1.0]. Skillstore. https://skillstore.io/skills/jeffallan-golang-pro/audits/5BibTeX 引用
@techreport{jeffallan-jeffallan-golang-pro-2026,
author = {jeffallan},
title = {golang-pro security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/jeffallan-golang-pro/audits/5},
note = {Author version 1.1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-pro security audit report (audit version 5)"
version: "1.1.0"
type: report
authors:
- name: "jeffallan"
date-released: "2026-08-07"
url: "https://skillstore.io/skills/jeffallan-golang-pro/audits/5"
identifiers:
- type: other
value: "skillstore:jeffallan-golang-pro:audit:5"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
实现并发 Worker
为新的后台 worker 设计 goroutine 生命周期、context 取消、channel 缓冲和测试。
审查服务架构
在 Go 服务发布前评估包布局、接口边界、配置和错误处理。
提升 Go 测试覆盖率
为关键 Go 包规划表驱动测试、基准测试、模糊测试、竞态检查和 mock。
试试这些提示
Use golang-pro to implement this Go function. Explain package structure, error handling, and tests in plain language: [describe function].
Use golang-pro to add bounded concurrency to this workflow. Include cancellation, backpressure, error propagation, and race detector test guidance.
Use golang-pro to design a Go microservice for [domain]. Include interfaces, package layout, gRPC or REST boundaries, configuration, and tests.
Use golang-pro to review this Go package for API boundaries, allocation pressure, benchmark coverage, context use, and concurrency risks.
最佳实践
- 在请求实现之前,提供当前包结构、Go 版本和相关约束。
- 当行为或性能很重要时,请求在实现中包含测试和基准测试。
- 针对任何阻塞或并发操作,请求提供 context 取消和错误处理细节。
避免
- 不要在未定义所有权、取消和关闭行为的情况下请求 goroutine。
- 当简单的具体类型可以满足需求时,不要请求大型泛型抽象。
- 对于共享状态和热点路径,不要跳过竞态、模糊测试或基准测试指导。
常见问题
此技能面向哪些 Go 版本?
它能帮助处理 gRPC 服务吗?
它会自动执行命令吗?
它可以审查现有 Go 代码吗?
它覆盖泛型吗?
它适合生产系统吗?
开发者详情
作者
jeffallan许可证
MIT
作者版本
v1.1.0
Skillstore 修订
r2
引用
1c2ebded2116f8124f45dba86a2e567f56e64d8e
维护新鲜度
2026/8/10
使用量
8 次下载 · 171 次浏览
文件结构