What problem does it solve?
This Skill helps maintain high code quality in the Anytype Heart Go codebase by identifying potential issues related to concurrency, memory usage, code patterns, and testing.
Core Features & Use Cases
- Concurrency Safety Checks: Detects potential goroutine leaks, improper context propagation, and incorrect mutex usage.
- Idiomatic Go Patterns: Verifies adherence to established patterns for service registration, object access, and error handling.
- Memory & Performance: Identifies opportunities for optimization using sync.Pool, arena allocation, and efficient string building.
- Testing Best Practices: Reviews table-driven tests, fixture patterns, and mock usage.
- Use Case: After implementing a new feature involving background processing, use this Skill to ensure all goroutines are properly managed and contexts are correctly propagated to prevent leaks and race conditions.
Quick Start
Use the go-reviewer skill to review the Go code changes in the current directory for any issues.