SKILL

go-core-idioms

Use when writing or reviewing idiomatic sequential Go — error handling, slog logging, generics, interfaces, style. Not for concurrency (go-concurrency).

原文 · 译文尚未补齐

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Go Core Idioms
  • Agent Workflow (MANDATORY)
  • Overview
  • Critical Rules
  • Architecture
  • Reference Guide
  • Concepts
  • Templates

Covers idiomatic sequential Go 1.27: error handling (%w wrapping, errors.Join, errors.Is/As, errors.AsType), slog structured logging, generics (including 1.27 generic methods), small consumer-side interfaces, naming/style conventions, new(expr), and go fix modernizers. Does not cover goroutines/channels/errgroup/context concurrency (see go-concurrency), non-Go languages, or framework-specific code. Idiomatic sequential Go for 1.27. For anything touching goroutines, channels, errgroup, or context cancellation, use go-concurrency instead. Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name: 1. fuse-ai-pilot:explore-codebase - Map existing error/logging/interface patterns 2. fuse-ai-pilot:research-expert - Verify latest Go docs via Context7/Exa 3. mcpcontext7query-docs - Confirm stdlib signatures (errors, log/slog) After implementation, run fuse-ai-pilot:sniper for validation. -- | Feature | Description | |---------|-------------| | Error handling | Explicit if err != nil, %w wrapping, errors.Join, errors.AsType (1.26) | | Structured logging | log/slog stdlib — handlers, attrs, groups, LogValuer | | Generics | Type params, constraints, self-referenti

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
Fusengine/claude-plugins
源文件
plugins/go-expert/skills/go-core-idioms/SKILL.md
固定版本
b9f82810cf3b5e3c4350332ac3ef618d60163cc0
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:Fusengine/claude-plugins · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T11:01:45.210Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。