What problem does it solve?
Inconsistent Go code formatting, linting errors, and non-standard test naming conventions lead to reduced code readability, increased maintenance effort, and failed CI/CD checks. This Skill automates the enforcement of HyperShift's strict code quality and testing standards, saving developers time and ensuring project consistency.
Core Features & Use Cases
- Mandatory Test Naming: Enforces the "When...it should..." format for all Go test names, making tests self-documenting and easy to understand.
- Code Quality Reminders: Automatically prompts users to run
make lint-fix and make verify for Go code, and make verify-codespell for Markdown, ensuring all code meets project standards before commit.
- Pre-Commit Checklist: Provides a quick checklist to ensure all formatting, linting, and testing requirements are met, preventing common errors and accelerating the development cycle.
- Use Case: After writing a new set of Go unit tests, activate this Skill to automatically review the test names and suggest corrections to align with the "When...it should..." format, ensuring immediate compliance with project standards.
Quick Start
Review the attached Go test file node_pool_test.go and ensure all test names follow the 'When...it should...' format, then suggest any necessary corrections.