/oke-cluster-generator
Use this skill when the user asks to build, generate, create, design, or scaffold an OKE (OCI Kubernetes Engine) Terraform stack, OCI Kubernetes infrastructure, ORM schema, or Resource Manager template. Trigger phrases include "build an OKE stack", "create OKE Terraform",
$ npx -y skills add krisrice/oracle-db-skills --skill oke-cluster-generator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/oke-cluster-generator
Context preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user asks to build, generate, create, design, or scaffold an OKE (OCI Kubernetes Engine) Terraform stack, OCI Kubernetes infrastructure, ORM schema, or Resource Manager template. Trigger phrases include "build an OKE stack", "create OKE Terraform",
SKILL.md
oke-cluster-generator.SKILL.mdname: oke-cluster-generator
description: Use this skill when the user asks to build, generate, create, design, or scaffold an OKE (OCI Kubernetes Engine) Terraform stack, OCI Kubernetes infrastructure, ORM schema, or Resource Manager template. Trigger phrases include "build an OKE stack", "create OKE Terraform", "generate ORM schema", "deploy OKE cluster", "OKE infrastructure", "terraform-oci-oke", or any request to design OCI Kubernetes infrastructure with Terraform. Do not use it for active incident RCA, GVA secondary VNIC node-pool creation, or Multus pod manifest validation; use the troubleshooting, GVA, or multihome skills for those surfaces.
OCI OKE Domain Context
This operational skill is part of the OCI OKE domain. Route here from `oci/SKILL.md` or `oci/oke/cluster-design.md` when the user needs OKE cluster design, Terraform generation, or OCI Resource Manager schema generation.
Supporting files:
- `references/questionnaire.md` - full questionnaire, live discovery commands, fallback behavior, and per-domain prompts. Read before running the full workflow.
- `reference.md` - terraform-oci-oke variable catalog, static fallback lists, and variable mapping table. Read before code generation.
- `output-templates/terraform.md` - provider.tf, main.tf module call, and outputs.tf templates.
- `output-templates/schema.md` - ORM schema.yaml structure, audience filters, conditional visibility, and validation regexes.
Utility scripts:
- `../../scripts/preflight-check.sh` - OCI CLI auth, tenancy, region, and compartment discovery.
- `../../scripts/validate-cidr.sh` - CIDR overlap detection for VCN, pod, and service CIDRs.
Role
You are an expert OCI Infrastructure Architect specializing in OCI Kubernetes Engine (OKE) cluster design and Terraform automation. Guide the user through a structured, conversational process to generate a production-ready Terraform stack and an OCI Resource Manager (`schema.yaml`) bundle.
Use these authoritative sources for module structure and OCI behavior:
- OCI OKE Terraform Module: https://github.com/oracle-terraform-modules/terraform-oci-oke
- OCI HPC OKE Quickstart: https://github.com/oracle-quickstart/oci-hpc-oke
- OCI Terraform Provider: https://github.com/oracle/terraform-provider-oci
- OKE Official Documentation: https://docs.oracle.com/en-us/iaas/Content/ContEng/home.htm
Only use these sources and pages linked from them. Do not perform general web searches for this workflow.
Argument Pre-fill
If `$ARGUMENTS` is non-empty, parse it before preflight:
| Pattern | Matches | Variable | |---------|---------|----------| | `FAST_PATH` | `fast-path`, `fastpath`, `quick-start`, `quickstart`, `starter-stack`, `starter`, `minimal` | `FAST_PATH_MODE = true`; consume before cluster-name parsing | | `WORKLOAD_TYPE` | `ai`, `ai/ml`, `aiml`, `ml`, `gpu`, `hpc`, `rdma`, `microservices`, `micro`, `general` | `WORKLOAD_TYPE` | | `TARGET_REGION` | OCI region pattern such as `us-ashburn-1` | `TARGET_REGION` | | `CLUSTER_NAME` | Remaining token | Suggested cluster name; confirm with user |
Canonical workload mapping:
- `ai`, `ai/ml`, `aiml`, `ml`, `gpu` -> `AI / ML`
- `hpc`, `rdma` -> `HPC`
- `microservices`, `micro` -> `Microservices`
- everything else -> `General Purpose`
If any values were pre-filled, tell the user what was detected and say they can revise values at any domain summary. If `FAST_PATH_MODE = true`, do not treat the fast-path token as `CLUSTER_NAME`.
Fast Path Mode
Use Fast Path Mode when the user asks for a quick start, starter stack, fast path, or minimal questions. Ask only for values that cannot be safely inferred:
- `TENANCY_OCID`
- `COMPARTMENT_OCID`
- `TARGET_REGION`
- `CLUSTER_NAME`
Fast Path defaults:
| Area | Default | |------|---------| | Workload type | General Purpose | | Kubernetes version | Latest GA from OCI CLI, static fallback from `reference.md` | | Cluster type | Enhanced | | API endpoint | Private | | VCN | Create new VCN | | VCN CIDR | `10.0.0.0/16` | | Pod CIDR | `10.244.0.0/16` | | Service CIDR | `10.96.0.0/16` | | CNI | VCN-native pod networking (`npn`) | | Access infrastructure | No bastion, no operator host | | Gateways | NAT gateway and service gateway only | | Node pool | `general`, 3 nodes, `VM.Standard.E5.Flex`, 2 OCPUs, 16 GB | | Storage | Block Volume CSI enabled, FSS disabled | | Security | Create IAM policies, Oracle-managed encryption | | Workload Identity | Enabled | | Add-ons | CoreDNS and kube-proxy managed add-ons | | ORM audience | Expert |
Fast Path workflow: 1. Announce that Fast Path defaults are being used. 2. Run preflight when OCI CLI is available. 3. Collect missing required inputs directly. 4. Present a compact architecture summary table with every default. 5. Ask the user to confirm, revise, or switch to the full questionnaire. 6. On confirmation, proceed to code generation.
Full Workflow
Read `references/questionnaire.md` before running the full questionnaire. It contains the detailed domain prompts, CLI commands, and fallback rules for:
- Cluster fundamentals.
- Networking.
- Node pools.
- Storage.
- Security and access.
- Add-ons and observability.
- ORM schema preferences.
The full workflow has four phases:
1. **Preflight and discovery**
- Run `bash ../../scripts/preflight-check.sh` when OCI CLI is available.
- Populate tenancy, home region, subscribed regions, and compartments.
- If the CLI is missing or unauthenticated, offer to continue with manual OCIDs or abort.
2. **Guided design**
- Work one domain at a time.
- Prefer live tenancy data via OCI CLI before static fallback lists.
- Use `AskUserQuestion` for fixed-choice questions when available.
- In Codex or any runtime without `AskUserQuestion`, render the same choices as a numbered menu and ask the user to reply with the number or exact label.
- After each domain, summarize choices and ask the user to confirm or revise.
- Track session state variables named in `references/questionnair
Read more
name: oke-cluster-generator description: Use this skill when the user asks to build, generate, create, design, or scaffold an OKE (OCI Kubernetes Engine) Terraform stack, OCI Kubernetes infrastructure, ORM schema, or Resource Manager template. Trigger phrases include "build an OKE stack", "create OKE Terraform", "generate ORM schema", "deploy OKE cluster", "OKE infrastructure", "terraform-oci-oke", or any request to design OCI Kubernetes infrastructure with Terraform. Do not use it for active incident RCA, GVA secondary VNIC node-pool creation, or Multus pod manifest validation; use the troubleshooting, GVA, or multihome skills for those surfaces.
OCI OKE Domain Context
This operational skill is part of the OCI OKE domain. Route here from `oci/SKILL.md` or `oci/oke/cluster-design.md` when the user needs OKE cluster design, Terraform generation, or OCI Resource Manager schema generation.
Supporting files:
- `references/questionnaire.md` - full questionnaire, live discovery commands, fallback behavior, and per-domain prompts. Read before running the full workflow.
- `reference.md` - terraform-oci-oke variable catalog, static fallback lists, and variable mapping table. Read before code generation.
- `output-templates/terraform.md` - provider.tf, main.tf module call, and outputs.tf templates.
- `output-templates/schema.md` - ORM schema.yaml structure, audience filters, conditional visibility, and validation regexes.
Utility scripts:
- `../../scripts/preflight-check.sh` - OCI CLI auth, tenancy, region, and compartment discovery.
- `../../scripts/validate-cidr.sh` - CIDR overlap detection for VCN, pod, and service CIDRs.
Role
You are an expert OCI Infrastructure Architect specializing in OCI Kubernetes Engine (OKE) cluster design and Terraform automation. Guide the user through a structured, conversational process to generate a production-ready Terraform stack and an OCI Resource Manager (`schema.yaml`) bundle.
Use these authoritative sources for module structure and OCI behavior:
- OCI OKE Terraform Module: https://github.com/oracle-terraform-modules/terraform-oci-oke
- OCI HPC OKE Quickstart: https://github.com/oracle-quickstart/oci-hpc-oke
- OCI Terraform Provider: https://github.com/oracle/terraform-provider-oci
- OKE Official Documentation: https://docs.oracle.com/en-us/iaas/Content/ContEng/home.htm
Only use these sources and pages linked from them. Do not perform general web searches for this workflow.
Argument Pre-fill
If `$ARGUMENTS` is non-empty, parse it before preflight:
| Pattern | Matches | Variable | |---------|---------|----------| | `FAST_PATH` | `fast-path`, `fastpath`, `quick-start`, `quickstart`, `starter-stack`, `starter`, `minimal` | `FAST_PATH_MODE = true`; consume before cluster-name parsing | | `WORKLOAD_TYPE` | `ai`, `ai/ml`, `aiml`, `ml`, `gpu`, `hpc`, `rdma`, `microservices`, `micro`, `general` | `WORKLOAD_TYPE` | | `TARGET_REGION` | OCI region pattern such as `us-ashburn-1` | `TARGET_REGION` | | `CLUSTER_NAME` | Remaining token | Suggested cluster name; confirm with user |
Canonical workload mapping:
- `ai`, `ai/ml`, `aiml`, `ml`, `gpu` -> `AI / ML`
- `hpc`, `rdma` -> `HPC`
- `microservices`, `micro` -> `Microservices`
- everything else -> `General Purpose`
If any values were pre-filled, tell the user what was detected and say they can revise values at any domain summary. If `FAST_PATH_MODE = true`, do not treat the fast-path token as `CLUSTER_NAME`.
Fast Path Mode
Use Fast Path Mode when the user asks for a quick start, starter stack, fast path, or minimal questions. Ask only for values that cannot be safely inferred:
- `TENANCY_OCID`
- `COMPARTMENT_OCID`
- `TARGET_REGION`
- `CLUSTER_NAME`
Fast Path defaults:
| Area | Default | |------|---------| | Workload type | General Purpose | | Kubernetes version | Latest GA from OCI CLI, static fallback from `reference.md` | | Cluster type | Enhanced | | API endpoint | Private | | VCN | Create new VCN | | VCN CIDR | `10.0.0.0/16` | | Pod CIDR | `10.244.0.0/16` | | Service CIDR | `10.96.0.0/16` | | CNI | VCN-native pod networking (`npn`) | | Access infrastructure | No bastion, no operator host | | Gateways | NAT gateway and service gateway only | | Node pool | `general`, 3 nodes, `VM.Standard.E5.Flex`, 2 OCPUs, 16 GB | | Storage | Block Volume CSI enabled, FSS disabled | | Security | Create IAM policies, Oracle-managed encryption | | Workload Identity | Enabled | | Add-ons | CoreDNS and kube-proxy managed add-ons | | ORM audience | Expert |
Fast Path workflow: 1. Announce that Fast Path defaults are being used. 2. Run preflight when OCI CLI is available. 3. Collect missing required inputs directly. 4. Present a compact architecture summary table with every default. 5. Ask the user to confirm, revise, or switch to the full questionnaire. 6. On confirmation, proceed to code generation.
Full Workflow
Read `references/questionnaire.md` before running the full questionnaire. It contains the detailed domain prompts, CLI commands, and fallback rules for:
- Cluster fundamentals.
- Networking.
- Node pools.
- Storage.
- Security and access.
- Add-ons and observability.
- ORM schema preferences.
The full workflow has four phases:
1. **Preflight and discovery**
- Run `bash ../../scripts/preflight-check.sh` when OCI CLI is available.
- Populate tenancy, home region, subscribed regions, and compartments.
- If the CLI is missing or unauthenticated, offer to continue with manual OCIDs or abort.
2. **Guided design**
- Work one domain at a time.
- Prefer live tenancy data via OCI CLI before static fallback lists.
- Use `AskUserQuestion` for fixed-choice questions when available.
- In Codex or any runtime without `AskUserQuestion`, render the same choices as a numbered menu and ask the user to reply with the number or exact label.
- After each domain, summarize choices and ask the user to confirm or revise.
- Track session state variables named in `references/questionnair
Oracle Skills is a collection of practical, installable skills for working with Oracle technologies.
Repo: krisrice/oracle-db-skills
Other skills on oracle-skills.
- /oke-gva-deployer
Use this skill when the user asks to enable, deploy, or configure Generic VNIC Attachment (GVA) for OCI Kubernetes Engine (OKE), create node pools with secondary VNIC profiles, review update plans for existing GVA node pools, map Application Resources to workloads, or explain
Open skill - /oke-multihome-deployer
Deploy and troubleshoot multihome networking on OCI Kubernetes Engine using existing GVA secondary VNIC node pools, Multus thick plugin, OCI CNI/IPAM, NetworkAttachmentDefinitions, and test pods. Use when the user asks to auto-discover OKE cluster subnets or node pools for
Open skill - /oke-troubleshooter
Use this skill when the user wants to diagnose or root-cause issues with an OCI Kubernetes Engine cluster or workload. Trigger phrases include "pods pending", "troubleshoot OKE", "service has no IP", "cluster unhealthy", DPDK/SR-IOV mlx5 pod failures, Multus network-status
Open skill

