rhecosystemappeng/agentic-collections/model-deploy
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Deploy AI/ML models on OpenShift AI using KServe with vLLM, NVIDIA NIM, or Caikit+TGIS runtimes. Use when: - "Deploy Llama 3 on my cluster" - "Set up a vLLM inference endpoint" - "Deploy a model with NIM" - "Create an InferenceService for Granite" - "I need to serve a model on OpenShift AI" Handles runtime selection, GPU validation, InferenceService CR creation, and rollout monitoring. NOT for NIM platform setup (use /nim-setup first). NOT for custom runtime creation (use /serving-runtime-config).
Install
npx vskill@latest install rhecosystemappeng/agentic-collections/model-deploySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/model-deploy.
/model-deploy Skill
Deploy AI/ML models on Red Hat OpenShift AI using KServe. Supports vLLM, NVIDIA NIM, and Caikit+TGIS serving runtimes. Handles runtime selection, hardware profile lookup (with live doc fallback), GPU pre-flight checks, InferenceService CR creation, rollout monitoring, and post-deployment validation.
Prerequisites
Required MCP Server: openshift (OpenShift MCP Server)
Required MCP Tools (from openshift):
resources_get- Check NIM Account CR, LimitRange, GPU node taints, InferenceService statusresources_list- Check Knative availability, GPU nodes, existing deployments, ServingRuntimesresources_create_or_update- Create/patch InferenceService, add tolerations (OpenShift fallback)pods_list- Check predictor pod status during rolloutpods_log- Retrieve pod logs for debuggingevents_list- Check events for errors
Preferred MCP Server: rhoai (RHOAI MCP Server) — used when available, automatic OpenShift fallback on failure
Preferred MCP Tools (from rhoai):
deploy_model- Create InferenceService with high-level parameters (no YAML construction needed). Known limitation: does not support tolerations or NIM-specific env vars — see fallback patterns below.list_inference_services- List deployed models with structured status dataget_inference_service- Get detailed model deployment status (conditions, endpoint, ready state)get_model_endpoint- Get inference endpoint URL directlylist_serving_runtimes- List available runtimes including platform templates with supported model formatslist_data_science_projects- Discover RHOAI projects for namespace validationlist_data_connections- Verify model storage access (S3 data connections)
Optional MCP Server: ai-observability (AI Observability MCP)
Optional MCP Tools (from ai-observability):
get_gpu_info- Pre-flight GPU inventory checkget_deployment_info- Post-deployment validationanalyze_vllm- Verify metrics are flowing after deployment
Common prerequisites (KUBECONFIG, OpenShift+RHOAI cluster, KServe, verification protocol): See skill-conventions.md.
Fallback templates: See openshift-fallback-templates.md for OpenShift YAML templates used when RHOAI tools are unavailable.
Additional cluster requirements:
- For NIM runtime: NIM platform set up via
/nim-setup - For vLLM/NIM: NVIDIA GPU nodes available in the cluster
When to Use This Skill
Use this skill when you need to:
- Deploy an AI/ML model on OpenShift AI (KServe InferenceService)
- Set up vLLM, NIM, or Caikit+TGIS inference endpoints
- Look up hardware profiles and GPU requirements for a model
- Perform pre-flight validation before model deployment (GPU availability, namespace readiness, LimitRange conflicts)
Do NOT use this skill when:
- You need to set up the NIM platform first (use
/nim-setup) - You need to create or customize a ServingRuntime (use
/serving-runtime-config) - You need to troubleshoot a failed or slow deployment (use
/debug-inference) - You need to analyze model performance or GPU metrics (use
/ai-observability)
Workflow
Step 1: Gather Target and Validate Environment
Collect the deployment target from the user, then immediately validate the environment before gathering remaining details.
Ask the user for:
- Model name: Which model to deploy (e.g., "Llama 3.1 8B", "Granite 3.1 8B")
- Namespace: Target namespace (must have model serving enabled)
- Model source: Where the model weights are stored (S3, OCI registry, PVC, NGC for NIM, or artifact URI from
/model-registry) - Deployment mode: Serverless (Knative, default) or RawDeployment
Pre-flight Environment Validation:
CRITICAL: Run these checks BEFORE gathering remaining deployment details to avoid wasted configuration effort.
Read model-deploy-preflight-checklist.md for the full pre-flight protocol. The checklist validates:
- Namespace is an RHOAI Data Science Project
- Model storage access (S3 data connections)
- Deployment mode support (Knative availability)
- Namespace resource constraints (LimitRange conflicts with KServe sidecars)
- GPU node taints (auto-generate tolerations)
- Existing deployments (reference configuration)
- Model source accessibility (OCI registry entitlements)
If rhoai unavailable or returns error: Use resources_list (from openshift) with apiVersion: v1, kind: Namespace, labelSelector: opendatahub.io/dashboard=true to find RHOAI projects.
Present pre-flight results in a summary table and note any adjustments made. WAIT for user confirmation if significant changes were needed (e.g., deployment mode switch, resource adjustments, tolerations added).
Step 2: Gather Deployment Details
After the environment is validated, collect remaining deployment configuration. Use pre-flight findings to inform defaults (e.g., if Knative is unavailable, default to RawDeployment).
Ask the user for:
- Runtime preference: vLLM (default), NIM, or Caikit+TGIS (auto-detect if not specified)
- Model source: Where the model weights are stored (S3, OCI registry, PVC, or NGC for NIM)
- Deployment mode: Serverless (Knative, default) or RawDeployment
Present configuration table for review:
| Setting | Value | Source | |
|---|---|---|---|
| Model | [model-name] | user input (Step 1) | |
| Runtime | [to be determined in Step 3] | auto-detect / user input | |
| Namespace | [namespace] | user input (Step 1) | |
| Model Source | [source-uri] | user input | |
| Deployment Mode | [Serverless/RawDeployment] | user input / default (informed by pre-flight) |
WAIT for user to confirm or modify these settings.
Step 3: Determine Runtime
Document Consultation (read before selecting runtime):
- Action: Read supported-runtimes.md using the Read tool to understand runtime capabilities and selection criteria
- Output to user: "I consulted supported-runtimes.md to understand runtime capabilities."
Runtime Selection Logic:
- User explicitly requested a runtime -> Use that runtime
- Model available in NGC NIM catalog -> Suggest NIM (with vLLM as fallback)
- Model is a standard open-source LLM (HuggingFace-compatible) -> Default to vLLM
- Model is in Caikit format -> Caikit+TGIS
- None of the above -> Suggest custom runtime via
/serving-runtime-config
Present recommendation with rationale. WAIT for user confirmation.
Step 4: Look Up Model Hardware Profile
Document Consultation (read before determining hardware requirements):
- Action: Read known-model-profiles.md using the Read tool to find hardware profile for the requested model
- Output to user: "I consulted known-model-profiles.md to find hardware requirements for [model-name]."
If model IS in known-model-profiles.md:
- Extract: GPU count, GPU type, VRAM, key vLLM args
- Present to user
If model is NOT in known-model-profiles.md -> Trigger live doc lookup:
- Action: Read live-doc-lookup.md using the Read tool for the lookup protocol
- Output to user: "Model [model-name] is not in my cached profiles. I'll look up its hardware requirements."
- Use WebFetch tool to retrieve specs from:
- For NIM models:
https://build.nvidia.com/modelsorhttps://docs.nvidia.com/nim/large-language-models/latest/supported-models.html - For other models:
https://docs.redhat.com/en/documentation/red_hat_openshift_ai_cloud_service/1
- Extract: GPU requirements, model-specific args, known issues
- Output to user: "I looked up [model-name] on [source] to confirm its hardware requirements: [summary]"
Present hardware requirements in a table (GPUs, VRAM, Key Args).
Step 5: Pre-flight GPU Check (Optional)
Condition: Only if ai-observability MCP server is available.
MCP Tool: get_gpu_info (from ai-observability)
Compare available GPUs against model requirements from Step 4:
- If sufficient GPUs available -> Report match and proceed
- If insufficient -> Warn user with options: smaller model, quantized version, different cluster, or proceed at user's risk
If ai-observability not available: Skip with note: "GPU pre-flight check skipped (ai-observability MCP not configured)."
Step 6: Verify NIM Platform (NIM Runtime Only)
Condition: Only when the selected runtime is NIM.
MCP Tool: resources_get (from openshift)
Parameters:
apiVersion:"nim.opendatahub.io/v1alpha1"- REQUIREDkind:"Account"- REQUIREDnamespace: target namespace - REQUIREDname:"nim-account"- REQUIRED
If Account CR not found or not ready: Offer options: (1) Run /nim-setup now, (2) Switch to vLLM, (3) Abort. WAIT for user decision.
Step 7: Select ServingRuntime and Prepare Deployment Parameters
Verify available ServingRuntimes:
MCP Tool: list_serving_runtimes (from rhoai)
Parameters:
namespace: target namespace - REQUIREDinclude_templates:true- REQUIRED (shows both existing runtimes and platform templates)
The response shows existing runtimes and available templates with their supported model formats and requires_instantiation flag.
If rhoai unavailable or returns error: Use resources_list (from openshift) with apiVersion: serving.kserve.io/v1alpha1, kind: ServingRuntime, namespace: [target] to list namespace runtimes, and kind: ClusterServingRuntime for platform templates. Filter by label opendatahub.io/dashboard=true.
If the needed runtime shows requires_instantiation: true, it must first be instantiated via /serving-runtime-config or the rhoai create_serving_runtime tool.
Use the runtime list to select the correct runtime name for the deployment.
Prepare deployment parameters from Steps 1-4 and environment data from Step 1:
| Parameter | Value | Source | |
|---|---|---|---|
name | [model-deployment-name] | user input (DNS-compatible) | |
namespace | [namespace] | user input | |
runtime | [serving-runtime-name] | selected from list_serving_runtimes (Step 7) | |
model_format | [vLLM/pytorch/onnx/caikit/etc.] | runtime selection | |
storage_uri | [model-source-uri] | user input (prefer hf:// for public models) | |
gpu_count | [gpu-count] | from hardware profile (Step 4) | |
cpu_request | [cpu] | from profile, adjusted for LimitRange | |
memory_request | [memory] | from profile, adjusted for LimitRange | |
min_replicas | [1] | default 1 (0 for scale-to-zero) | |
max_replicas | [1] | default 1 |
Model sizing guide for LLMs:
- 7B models: 1x 24GB GPU (e.g., A10G) or 1x 16GB GPU with quantization
- 13B models: 2x 24GB GPUs
- 70B models: 4+ 80GB GPUs (A100/H100) or quantized on fewer GPUs
Scale-to-zero note: Setting min_replicas=0 saves resources but introduces cold start latency (30s-2min for model loading).
Step 8: User Review and Confirmation
Display the deployment parameters table and a configuration summary to the user.
Ask: "Proceed with deploying this model? (yes/no/modify)"
WAIT for explicit confirmation.
- If yes -> Proceed to Step 9
- If no -> Abort
- If modify -> Ask what to change, update parameters, return to this step
Step 9: Deploy Model
MCP Tool: deploy_model (from rhoai)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrh-ai-engineer/skills/model-deploy/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 32
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rhecosystemappeng/agentic-collections/model-deploy)