npx skills add ...
npx skills add openshift/hypershift --skill code-formatting
npx skills add openshift/hypershift --skill code-formatting
MANDATORY: When writing Go tests, you MUST use 'When...it should...' format for ALL test names. When writing any Go code, you MUST remind user to run 'make lint-fix' and 'make verify'. These are non-negotiable HyperShift requirements.
make lint-fix after writing Go code to automatically fix most linting issuesmake verify to verify both linting and tests pass before committingmake verify-codespell to catch spelling errorsNON-NEGOTIABLE RULE: Every Go test name MUST follow this exact format:
Examples:
NEVER use generic names like:
ALWAYS use "When...it should..." format:
Unit test functions MUST be named after the function they test, using the standard Go Test<FunctionName> convention:
NEVER use generic or disconnected test function names like:
TestNodePoolFeaturesTestAzureIntegrationTestVariousCasesEach test function should map 1:1 to the function under test. If a function is complex enough to warrant many test cases, use table-driven tests within a single Test<FunctionName> function with the "When...it should..." naming for each case.
_test.go filetest/integration/ — this is a legacy directory. New unit tests go alongside the code under test. New integration-style tests that require a cluster should use test/e2e/ or test/envtest/Before committing:
make lint-fix on Go codemake verify (passes)make verify-codespell