
openshift / oc
★ 239A skill package that teaches your agent 3 capabilities — every one documented and browsable below, no GitHub required · by openshift.
Each skill below is one capability this package teaches your agent. Install the whole package, or open a skill to install just that one.
Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.
Analyze all past sessions for this project and extract knowledge worth persisting to AGENTS.md, .claude/agents/, or memory. Deep analysis of full session history.
Review the current session and extract knowledge worth persisting to AGENTS.md, .claude/agents/, or memory. Use at the end of a session to capture what was learned.
OpenShift Client - oc
With OpenShift Client CLI (oc), you can create applications and manage OpenShift resources. It is built on top of kubectl which means it provides its full capabilities to connect with any kubernetes compliant cluster, and on top adds commands simplifying interaction with an OpenShift cluster.
Documentation
- CONTRIBUTING.md — code conventions, testing, PR process, CI, review expectations (shared across OpenShift Control Plane repos)
- ARCHITECTURE.md — design decisions, component relationships, the kubectl wrapper taxonomy
- AGENTS.md — instructions for AI coding agents
Building
To build oc invoke make oc. At any time you can invoke make help and you'll
get a list of all supported make sub-commands.
By default make oc builds the executable without debugging symbols. To include
debugging symbols, run make STRIP_DEBUGGING_SYMBOLS=false oc.
In order to build oc, you will need the GSSAPI sources. On a Fedora/CentOS/RHEL
workstation, install them with:
dnf install krb5-devel gpgme-devel libassuan-develFor macOS, install build dependencies with:
brew install heimdal gpgmeTesting
All PRs must pass automated checks — go fmt, go vet, unit tests, and e2e tests against a real cluster.
Locally you can run verification and unit tests with:
make verify
make testDependencies
Dependencies are managed through Go Modules. When updating any dependency:
go mod tidygo mod vendor
Key Dependencies
| Repository | Role |
|---|---|
| kubernetes/kubectl | Upstream CLI — oc wraps and extends it |
| k8s.io/client-go | Kubernetes API client library |
| openshift/api | OCP API type definitions |
| openshift/client-go | Typed clients for OCP resources |
| openshift/library-go | Shared OCP library code |
| openshift/build-machinery-go | Standard Makefile targets |
Security
If you've found a security issue that you'd like to disclose confidentially, please contact Red Hat's Product Security team. Details at https://access.redhat.com/security/team/contact
Do not file security issues as public GitHub issues.
License
oc is licensed under the Apache License, Version 2.0.
Install the whole package (3 skills):
npx skills add https://github.com/openshift/ocOr install a single skill:
npx skills add https://github.com/openshift/oc --skill <name>Pick the skill name from the Skills tab — each entry there installs independently.