go-knowledge-patch

Provide Go 1.23+ language and standard library migration guidance.

22|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/Nevaberry/nevaberry-plugins --skill go-knowledge-patch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-knowledge-patch
Source: https://github.com/Nevaberry/nevaberry-plugins/tree/main/plugins/go-knowledge-patch/skills/go-knowledge-patch
Command: npx skills add https://github.com/Nevaberry/nevaberry-plugins --skill go-knowledge-patch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Keeps Go code and AI-generated suggestions from using outdated language features and standard library APIs by providing concise, verified updates and migration guidance for changes introduced after the model training cutoff.

Core Features & Use Cases

  • Language updates: Summarizes new language capabilities such as new(expr) and self-referential generics and explains migration patterns.
  • Standard library changes: Documents additions like errors.AsType, bytes.Buffer.Peek, reflect iterator methods, and testing artifact directories with practical usage notes.
  • Tooling & modernizers: Explains go fix modernizers and the //go:fix inline directive so maintainers can adopt automated code rewrites.
  • Use case: When upgrading a repository to Go 1.26, use the guidance to replace ptr helpers with new(expr), refactor error handling to errors.AsType, and run go fix to modernize APIs.

Quick Start

Load go-knowledge-patch before editing or generating Go code so recommendations use new(expr), errors.AsType, reflect iterators, and go fix modernizers.

Frequently Asked Questions about go-knowledge-patch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Go code to use new language features after version 1.23?

Migrate Go code by applying concise guidance for adopting new language capabilities like new(expr) and self-referential generics, replacing outdated idioms with modern syntax, and running automated tooling to refactor standard library APIs.

What is the go fix modernizers directive used for in Go?

The go fix modernizers and the //go:fix inline directive enable maintainers to adopt automated code rewrites, allowing for streamlined API updates and code modernization across Go 1.23 and later codebases.

How do I update error handling to use errors.AsType in Go?

Update error handling by refactoring to errors.AsType, utilizing provided API usage examples and migration guidance to replace legacy error checking patterns with the updated standard library function.

Does this Go migration guidance apply to codebases older than Go 1.23?

This guidance applies to Go 1.23 and later codebases, targeting users upgrading to newer versions like Go 1.26 to adopt features such as new(expr), errors.AsType, and reflect iterators.

What are the standard library updates available for reflect iterators and bytes.Buffer.Peek?

Standard library updates include reflect iterator methods and bytes.Buffer.Peek, offering practical usage notes to modernize APIs and close the gap on model training cutoffs for accurate code generation.