Skip to content
secondsky avatar

Model Deployment

Deployment guide for serving ML models with FastAPI, Docker, and Kubernetes, covering rollout safety and monitoring.

CCM score
48 of 100
skills.sh installs
402
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the path from a saved model file to a running service: FastAPI server, Dockerfile, registry push, and Kubernetes rollout
  • Includes liveness and readiness probes, resource limits, a batch prediction endpoint, and rollback commands for failed deploys
  • Shows drift detection and performance-threshold checks in CI so a model that fails validation is not deployed
  • Designed for teams serving predictions over REST that need health checks, versioned images, and documented rollback steps

Install

$ npx -y skills add secondsky/claude-skills --skill model-deployment -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ML Model Deployment

Deploy trained models to production with proper serving and monitoring.

Deployment Options

MethodUse CaseLatency
REST APIWeb servicesMedium
BatchLarge-scale processingN/A
StreamingReal-timeLow
EdgeOn-deviceVery low

FastAPI Model Server

from fastapi import FastAPI
from pydantic import BaseModel
import joblib
import numpy as np

app = FastAPI()
model = joblib.load('model.pkl')

class PredictionRequest(BaseModel):
    features: list[float]

class PredictionResponse(BaseModel):
    prediction: float
    probability: float

@app.get('/health')
def health():
    return {'status': 'healthy'}

@app.post('/predict', response_model=PredictionResponse)
def predict(request: PredictionRequest):
    features = np.array(request.features).reshape(1, -1)
    prediction = model.predict(features)[0]
    probability = model.predict_proba(features)[0].max()
    return PredictionResponse(prediction=prediction, probability=probability)

Docker Deployment

FROM python:3.12-slim

Details

Repository
github.com/secondsky/claude-skills
Categories
DevOps & Cloud, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the model-deployment skill do?

The model-deployment skill guides an agent to deploy trained ML models to production with FastAPI model servers, Docker containers and Kubernetes. It also covers serving predictions, model monitoring, drift detection, health checks and rollback when latency or version issues appear.

How do I install the model-deployment skill?

Run this command in your project: npx -y skills add secondsky/claude-skills --skill model-deployment -y. Once installed, the agent can help you containerize a model, add liveness and readiness probes, and set up rollback steps.

Where does model-deployment rank in the DevOps and Cloud category?

model-deployment is listed in the DevOps and Cloud category on Claude Marketplaces, alongside skills such as azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. It is aimed at putting machine learning models into production rather than general cloud infrastructure.

Who is model-deployment for?

It is for developers and MLOps engineers who need to take a trained model, such as a joblib-saved scikit-learn model, and serve it over a REST API. It is especially useful when troubleshooting latency issues, failing health checks or version conflicts.

What does model-deployment need to run?

The skill's examples use Python with FastAPI, Pydantic, NumPy and joblib, plus Docker to build the image and kubectl to deploy to Kubernetes. A saved model file such as model.pkl and a container registry for pushing images are also needed.

More from secondsky/claude-skills

All 116

Similar to Model Deployment

More DevOps & Cloud