agentleFS
paulanunes85paulanunes85/three-horizons-accelerator/.github/skills/oc-cli/SKILL.md

oc-cli

Skill2 starsChanged 10 months agoMITView on GitHub

OpenShift CLI operations for ARO cluster management

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use projects for namespace isolation

    line 65
  2. Distinctive:

    Prefer oc to kubectl for OpenShift-specific features

    line 66
  3. Distinctive:

    Use Operators for complex application management

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

When to Use

  • Azure Red Hat OpenShift (ARO) operations
  • OpenShift-specific resource management
  • Operator lifecycle management
  • Route and build configurations

Prerequisites

  • OpenShift CLI (oc) installed
  • Authenticated to ARO cluster
  • Appropriate RBAC permissions

Commands

Authentication

# Login with token
oc login --token=<token> --server=<api-server>

# Login with kubeadmin
oc login -u kubeadmin -p <password> --server=<api-server>

# Current context
oc whoami --show-server

Project Operations

# List projects
oc projects

# Switch project
oc project <project-name>

# Create project
oc new-project <project-name>

Operator Management

# List installed operators
oc get csv -n openshift-operators

# View operator status
oc describe csv <operator-name> -n openshift-operators

Route Management

# List routes
oc get routes -A

# Create route
oc expose service <service-name>

# Get route URL
oc get route <route-name> -o jsonpath='{.spec.host}'

Best Practices

  1. Use projects for namespace isolation
  2. Prefer oc to kubectl for OpenShift-specific features
  3. Use Operators for complex application management
  4. Enable NetworkPolicies for pod isolation

Output Format

  1. Command executed
  2. Operation result
  3. Relevant status information
  4. Next steps

Integration with Agents

Used by: @platform, @devops

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.