返回技能目录
人工审校软件开发

技能研究档案

golang-pro

来源声明

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.

保留作者的英文原始描述。它表达设计意图,不代表已验证的实际效果。

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.

developmentreferences

研究摘要

人工审校

Skill Atlas editorial review · editorial-preview-1.0.0

面向 Go 语言并发程序、微服务与性能优化的 Skill,工作流中内置 vet、lint、竞态检测与基准测试步骤。

审阅范围

对所收集的 SKILL.md 及辅助文本/代码进行确定性静态分析。机器辅助候选和发现等待人工编辑复核;不评估动态行为或效果。

可观察能力

  • 审查模块结构并设计小而聚焦的接口。
  • 实现带 context 取消与 %w 错误包装的 goroutine 和 channel。
  • 运行 go vet 与 golangci-lint,并在继续前修复所报问题。
  • 编写带 -race 标志的表驱动测试,并用 pprof 与基准测试做性能分析。

限制与范围

  • 面向 Go 1.21 及以上版本,未涉及更旧的工具链。
  • 包含 80% 以上覆盖率的要求,未必适合每个项目。
  • 此处未验证生成代码、lint 结果与竞态检查。

适用读者

  • 构建并发服务的 Go 开发者
  • 希望用地道 Go 构建 gRPC 或 REST 微服务的团队

技能包含哪些内容

文件清单来自记录提交中的采集源码。路径与大小属于结构观察,不代表质量评价。

个文件
6
Markdown 文件
6
个脚本
0
个引用
5
大小
48.5 KB
结构复杂度
低

文件清单

路径类型字节
skills/golang-pro/references/concurrency.md引用7.3 KB
skills/golang-pro/references/generics.md引用8.5 KB
skills/golang-pro/references/interfaces.md引用8.2 KB
skills/golang-pro/references/project-structure.md引用10.2 KB
skills/golang-pro/references/testing.md引用9.2 KB
skills/golang-pro/SKILL.md指令5.1 KB

SKILL.md 前置元数据

{
  "name": "golang-pro",
  "description": "Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.1",
    "domain": "language",
    "triggers": "Go, Golang, goroutines, channels, gRPC, microservices Go, Go generics, concurrent programming, Go interfaces",
    "role": "specialist",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "devops-engineer, microservices-architect, test-master"
  }
}

对运行顺序的一种解读

此工作流根据源码材料重建表面顺序。除非明确记录受控评估,否则它属于暂定解读,而非真实运行轨迹。

  1. 01
  2. 02
    操作

    实现并检查

    编写地道的 Go 代码,包含错误处理与 context 传递,继续前运行 go vet。

  3. 03
    判断

    检查并修复

    运行 golangci-lint,并在继续前修复所有报告的问题。

  4. 04
    输出

    测试并交付

    编写带 -race 标志的表驱动测试,并在提交前确认竞态检测通过。

潜在风险面

静态发现用于提示安装前需要检查的位置,不能证明一项技能安全、恶意或有效。

建议重点关注

收集的文本中有 72 项确定性词法发现需要复核。发现可能仅位于文档中,不证明已执行或可被利用;仅含二进制的文件未扫描。

网络访问已观察到
文件写入已观察到
凭据使用未观察到
高

文本描述或实现了文件删除

此行包含删除语法,也可能只是文档示例。应检查确切目标、递归范围和保护措施。分析器没有执行该命令。 该规则在收集文本中命中 1 处;此处列出 1 个代表位置。命中文本可能只是文档,分析器没有执行它。

中

文本提及网络访问

4 次命中

此源文件行包含 URL 或网络客户端。应检查目标地址、发送的数据和信任边界;静态文本无法证明实际发生了网络活动。 该规则在收集文本中命中 4 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

编辑安全提示

部署前审查 goroutine 生命周期以及网络或 gRPC 代码是否存在泄漏与未校验的输入。

上下文可能消耗在哪里

发现、激活与资源层具有不同含义。只有使用指定官方方法并记录模型的运行时,才显示精确数值。

精确 token 计数不可用

在管线使用明确模型执行官方精确计数之前,包括文件清单在内的所有 token 值均为 null。

未使用要求的官方方法记录 token 测量。本档案不会用字符数、文件大小或估计值替代。

受控评估

没有受控评估

该技能仅具备以上标明的证据。不声称任何任务成功率、token 效率、延迟或质量优势。

尚未测试

在源码可见的情况下使用

安装命令
git clone https://github.com/Jeffallan/claude-skills.git cd claude-skills # 将该 Skill 目录复制到以下任一位置: # ~/.claude/skills/golang-pro # .claude/skills/golang-pro
  1. 打开固定版本源码:https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/golang-pro/SKILL.md。
  2. 审阅许可证、前置条件和所有捆绑的参考文件。
  3. 将该 Skill 目录复制到个人或项目级 Claude Code skills 目录。
  4. 重启或刷新 Claude Code,使该 Skill 可被发现。
验证安装

让 Claude Code 编写一个 worker 池,确认它会运行 go vet、golangci-lint 以及带 -race 的 go test。

前置条件

  • 面向 Go 1.21 及以上版本,未涉及更旧的工具链。
  • 包含 80% 以上覆盖率的要求,未必适合每个项目。
  • 此处未验证生成代码、lint 结果与竞态检查。

示例提示词

代表性任务

Use the golang-pro skill to build a job pipeline with a context-cancellable worker, a 30 second timeout, %w error wrapping and table-driven tests run with the race detector.

使用前检查

Read the golang-pro skill at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/golang-pro/SKILL.md. Explain its workflow, required tools, permissions and the main risks before I decide whether to install it.

附上限制条件的判断

优势

  • 提供goroutine 生命周期受限的具体 worker 与流水线示例。
  • 对显式错误处理、context 传递与竞态检测有明确规则。

注意事项

  • 强制使用 golangci-lint 要求环境中已有该工具及合适的配置。
  • 大部分深入内容在参考文件中,需加载才能受益。
研究结论

一份简洁、地道的 Go 指南,其 vet、lint 与竞态检测步骤使其成为并发代码的可靠默认选择。

从结构上保持可追溯

档案是对公开工件的限时阅读,而非背书。请通过来源链接检查确切的上游材料。

Jeffallanclaude-skillsskills/golang-pro
来源类型
社区
提交
67c1961b180dc92cf08983344627109e983e8f51
采集时间
2026年11月20日
最近核查
2026年11月20日
上游许可证
MIT
仓库星标
12,464
内容依据

仅对提供的文件进行确定性词法解析、YAML frontmatter 校验、文件清单、来源描述的工作流程提取和启发式暂定分类。由机器生成;无 LLM、执行、动态测试或人工编辑批准。