Review Go code for accidental crashes and silent data corruption. This skill guides safer handling of nil values, shared slice storage, numeric conversions, resource cleanup, and types that work safely without explicit initialization.
中文简介正在准备中。当前显示英语简介。
- Reviewing nil handling before a code change
- Checking numeric conversions and floating-point comparisons
- Preventing unintended changes through shared slices and maps
samber/cc-skills-golang☆ 35842026年10月1日 更新
Organize Go application dependencies with samber/do v2, a library that supplies services to the code that needs them. Guides service registration, lifecycle management, module organization, and migration from manually wired constructors.
中文简介正在准备中。当前显示英语简介。
- Adopting samber/do v2 in a Go application
- Replacing manually wired constructors with a service container
- Organizing service registration by module
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build in-memory caches in Go with samber/hot to reduce repeated backend reads. Choose eviction rules, set expiration and capacity, load missing entries, and monitor cache behavior while accounting for memory limits and loading failures.
中文简介正在准备中。当前显示英语简介。
- Caching frequently requested database records
- Choosing eviction rules for access patterns
- Planning capacity and expiration within a memory budget
samber/cc-skills-golang☆ 35842026年10月1日 更新
Implement Go collection transformations with samber/lo, including filtering, grouping, aggregation, and deduplication. Choose between standard library functions and helpers, and assess parallel processing, input mutation, or lazy evaluation when data size and measured performance justify them.
中文简介正在准备中。当前显示英语简介。
- Rewrite collection loops with Map, Filter, and Reduce
- Group records and remove duplicates
- Choose between standard library functions and lo helpers
samber/cc-skills-golang☆ 35842026年10月1日 更新
Use samber/mo in Go to represent missing values, failures, and alternative value types explicitly. Learn to choose Option, Result, or Either and combine processing steps, including pipelines where each step changes the value's type.
中文简介正在准备中。当前显示英语简介。
- Representing optional JSON and database fields
- Combining operations that may fail
- Choosing types for valid alternatives
samber/cc-skills-golang☆ 35842026年10月1日 更新
Helps implement structured error handling in Go with samber/oops. Add diagnostic attributes, stack traces showing the call path, and error codes, while keeping user-facing messages separate from technical details and integrating errors with logging.
中文简介正在准备中。当前显示英语简介。
- Add diagnostic context to database errors
- Separate user messages from technical error details
- Convert panics into structured errors
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build Go pipelines with samber/ro for events that arrive over time. Choose how consumers share data, combine multiple sources, and handle retries, timeouts, errors, and cancellation while managing the resources used by ongoing streams.
中文简介正在准备中。当前显示英语简介。
- Process ongoing WebSocket events
- Combine data from multiple asynchronous sources
- Share one event source across multiple consumers
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build Go logging pipelines with samber/slog-* packages to control log volume, mask personal information, and route records to different destinations. It also guides HTTP request logging and shutdown handling for destinations that buffer records.
中文简介正在准备中。当前显示英语简介。
- Route error logs and informational logs to different destinations
- Mask personal information before sending logs
- Reduce high-volume logs with sampling
samber/cc-skills-golang☆ 35842026年10月1日 更新
Review and strengthen Go code against injection attacks, unsafe file access, authentication flaws, and secret exposure. Traces how untrusted data reaches sensitive operations, ranks findings by severity, and guides fixes, static analysis, and security testing.
中文简介正在准备中。当前显示英语简介。
- Reviewing a Go pull request for security issues
- Auditing a codebase and prioritizing vulnerabilities
- Checking user input, file access, and network requests
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build and extend Go command-line tools with spf13/cobra. Organizes commands and options, validates arguments, adds shell completion suggestions, customizes help, and tests command behavior with captured output and isolated command instances.
中文简介正在准备中。当前显示英语简介。
- Building a Go CLI with subcommands
- Adding options and argument validation
- Improving shell completions and help text
samber/cc-skills-golang☆ 35842026年10月1日 更新
Implement layered configuration in Go with spf13/viper, combining command flags, environment variables, and configuration files under a fixed priority order. Covers mapping values into structs, reloading changed files, and keeping configuration state separate across tests.
中文简介正在准备中。当前显示英语简介。
- Combining configuration files, environment variables, and command flags
- Mapping nested settings into Go structs
- Reloading configuration after file changes
samber/cc-skills-golang☆ 35842026年10月1日 更新
Find Go learning materials and sources for ongoing updates, including official sites, newsletters, blogs, videos, communities, and contributors to follow. Use the guide to choose where to learn, discover tools, and track language releases.
中文简介正在准备中。当前显示英语简介。
- Find Go tutorials and learning videos
- Choose sources for Go release news
- Find sources covering new libraries and tools
samber/cc-skills-golang☆ 35842026年10月1日 更新
Write and review Go tests using stretchr/testify. Choose assertions that continue or stop on failure, create mocks that verify expected calls, and organize related tests with shared setup and cleanup routines.
中文简介正在准备中。当前显示英语简介。
- Choosing between assert and require
- Creating mocks and verifying expected calls
- Sharing setup and cleanup across related tests
samber/cc-skills-golang☆ 35842026年10月1日 更新
Design and review Go structs and interfaces with clear responsibilities. Get guidance on small interfaces, embedding, dependency injection—passing in components a type needs—field tags, safe type checks, and pointer or value receivers.
中文简介正在准备中。当前显示英语简介。
- Designing small, composable interfaces
- Making dependencies replaceable in tests
- Choosing embedding and receiver types
samber/cc-skills-golang☆ 35842026年10月1日 更新
Create and review Go API documentation with swaggo/swag. Adds comments describing inputs, responses, and authentication, generates machine-readable API specifications, and connects Swagger UI so API users can inspect the documented endpoints.
中文简介正在准备中。当前显示英语简介。
- Adding Swagger documentation to a Go API
- Documenting request fields and response examples
- Describing authentication requirements for endpoints
samber/cc-skills-golang☆ 35842026年10月1日 更新
Write, review, audit, and debug Go tests that check observable behavior. Covers named test cases, integration test isolation, concurrent execution, race and goroutine leak detection, and finding causes of intermittent failures or gaps in test coverage.
中文简介正在准备中。当前显示英语简介。
- Adding tests for edge cases and error paths
- Reviewing test changes in a pull request
- Auditing unit and integration test isolation
samber/cc-skills-golang☆ 35842026年10月1日 更新
Investigate Go crashes, hangs, intermittent failures, and unexpected behavior through reproducible tests and measured evidence. Use race detection, Delve debugging, and pprof diagnostics to trace root causes, then verify fixes and guard against regressions.
中文简介正在准备中。当前显示英语简介。
- Tracing the cause of crashes and panics
- Investigating intermittent test failures
- Finding deadlocks and concurrent access problems
samber/cc-skills-golang☆ 35842026年10月1日 更新
Helps wire Go applications with uber-go/dig using dependency injection, which supplies the components each function needs. Covers constructor registration, named values, groups, and validation so startup dependencies can be organized and checked in tests.
中文简介正在准备中。当前显示英语简介。
- Wire dependencies at application startup
- Distinguish primary and read-only database connections
- Collect HTTP handlers into a group
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build Go services with uber-go/fx by connecting components and managing startup and shutdown. This skill covers dependency injection, which supplies components with what they need, plus reusable modules, signal handling, logging, and tests with substitute dependencies.
中文简介正在准备中。当前显示英语简介。
- Connect components in a Go service with fx
- Manage server startup and graceful shutdown
- Organize application features into reusable modules
samber/cc-skills-golang☆ 35842026年10月1日 更新
Set up golangci-lint to check Go code for potential problems. Helps select checks, configure project rules, understand warnings, apply available automatic fixes, and document justified exceptions when a warning needs to be suppressed.
中文简介正在准备中。当前显示英语简介。
- Setting up code checks for a Go project
- Understanding and fixing lint warnings
- Adding checks gradually to an existing codebase
samber/cc-skills-golang☆ 35842026年10月1日 更新
Improve Go code after profiling identifies a bottleneck. This skill guides memory allocation, CPU, caching, and garbage collection changes, with benchmark comparisons to check results. It also supports performance reviews of functions, packages, and services.
中文简介正在准备中。当前显示英语简介。
- Reduce memory allocations in Go code
- Optimize a function identified as slow
- Review a service for performance issues
samber/cc-skills-golang☆ 35842026年10月1日 更新
Build Go application initialization with google/wire, which generates constructor calls from declared dependencies. Covers reusable provider groups, interface bindings, cleanup functions, and keeping generated code synchronized so missing dependencies surface during generation.
中文简介正在准备中。当前显示英语简介。
- Introduce google/wire for application initialization
- Connect interfaces to concrete implementations
- Manage resource cleanup during initialization
samber/cc-skills-golang☆ 35842026年10月1日 更新