
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-codeInstalls into .claude/skills of the current project.
Files
ML Model Deployment
Deploy trained models to production with proper serving and monitoring.
Deployment Options
| Method | Use Case | Latency |
|---|---|---|
| REST API | Web services | Medium |
| Batch | Large-scale processing | N/A |
| Streaming | Real-time | Low |
| Edge | On-device | Very 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- Jest Generator391
- Cloudflare Agents389
- Cloudflare Mcp Server388
- Thesys Generative Ui384
- Access Control Rbac381
- Maz Ui380
- React Best Practices380
- Woocommerce Backend Dev379
- Woocommerce Code Review379
- Bun Hono Integration376
- Bun Test Basics375
- Woocommerce Copy Guidelines374
- Woocommerce Dev Cycle374
- Cloudflare Workers Security369
- Bun Nextjs358
- Bun Package Manager358
- Bun Drizzle Integration353
- Bun Docker343
- Bun Runtime342
- Cloudflare Workers Testing340
- Bun Cloudflare Workers338
- Bun Test Coverage337
- Bun Http Server336
- Bun Test Mocking335