What problem does it solve?
This Skill ensures your Go code and tests consistently meet HyperShift's strict quality and formatting standards. It eliminates manual checks for test naming conventions and reminds you of essential linting and verification steps, preventing common errors and accelerating code reviews.
Core Features & Use Cases
- Mandatory Test Naming: Enforces the "When...it should..." format for all Go test names, improving readability and consistency.
- Automated Linting Reminders: Prompts you to run
make lint-fix and make verify to automatically fix issues and confirm code quality.
- Spelling Verification: Reminds you to use
make verify-codespell for markdown files.
- Use Case: When writing new Go code or tests, this Skill acts as your automated quality assurance, ensuring all HyperShift-specific conventions are met before you even think about committing, saving you from rework and failed CI/CD pipelines.
Quick Start
Example of a compliant Go test name
name: "When NodePool has valid image ID, it should create Azure machine template"
Remember to run these commands after coding:
make lint-fix
make verify