// "Comprehensive PR review for oc (OpenShift CLI). Runs build, tests, and linting, then applies Go style improvements and provides detailed code review feedback."
| name | PR Review |
| description | Comprehensive PR review for oc (OpenShift CLI). Runs build, tests, and linting, then applies Go style improvements and provides detailed code review feedback. |
Perform a comprehensive review of pull requests for the oc repository, which is a CLI tool based on kubectl that provides kubectl commands plus OpenShift-specific functionality.
Use this skill when:
/pr-review or similar commandsFollow these steps in order:
Run the build to ensure code compiles:
make oc
make oc instead of make build to avoid building for all architectures (faster)Run the test suite to verify functionality:
make test
github.com/openshift/oc/pkg/cli (kubeconfig error) can be ignoredRun verification checks to catch style and potential issues:
make verify
This runs multiple verification targets including:
verify-gofmt - Go formatting checks
verify-golint - Linting checks
verify-govet - Go vet checks
verify-cli-conventions - CLI-specific conventions
verify-generated-completions - Generated code verification
Report any verification errors or warnings
Note any patterns that need addressing
After running the above checks, review the changed code and apply Go best practices:
Effective Go Principles: Apply the Effective Go skill automatically
gofmt for formattingoc-Specific Considerations:
Code Quality:
Documentation:
Based on the review:
gofmt and goimports formattingProvide a structured summary:
Since oc is built on kubectl: