secondsky avatar

Model Deployment

Covers the full production deployment stack for ML models: FastAPI server setup, Docker containerization, Kubernetes orchestration, and monitoring. The real value is in the troubleshooting section, which walks through eight common failure modes like missing health checks causing 503s, OOM kills from missing resource limits, and silent model drift. Includes a practical six-step quickstart and a deployment checklist. If you're moving models from notebooks to production and keep hitting the same infrastructure problems, this gives you working patterns for API endpoints, batch processing, rollback procedures, and CI/CD validation. Less about the ML theory, more about keeping services up and catching issues before users do.

skills.sh installs
393
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
DevOps & CI/CD, Data Science & ML, Release Management, Python
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1agno-agi avataragnoagno-agi/agno-skillsAgno AI agent framework - build production-ready agents, multi-agent teams, workflows, MCP integrations, and deploy with AgentOS. Use when building, debugging, 389skills.sh installs
2getsentry avatarsentry-python-sdkgetsentry/sentry-agent-skillsFull Sentry SDK setup for Python. Use when asked to "add Sentry to Python", "install sentry-sdk", "setup Sentry in Python", or configure error monitoring, traci384skills.sh installs
3evoscientist avatarexperiment-craftevoscientist/evoskillsUse this skill when the user wants to debug, diagnose, or systematically iterate on an experiment that already exists, or when they need a structured experiment380skills.sh installs
4pydantic avatarinstrumentationpydantic/skillsAdd Pydantic Logfire observability to applications. Use this skill whenever the user asks to "add logfire", "instrument with logfire", "add observability", "add380skills.sh installs
5aliyun avataralibabacloud-dataworks-data-opsaliyun/alibabacloud-aiops-skillsDataWorks Operations Center assistant for task and workflow operations, alert rule creation and management. Covers troubleshooting, failure recovery, baseline a379skills.sh installs
6davila7 avatarit-operationsdavila7/claude-code-templatesManages IT infrastructure, monitoring, incident response, and service reliability. Provides frameworks for ITIL service management, observability strategies, au379skills.sh installs