Skip to content
Agentmart
Submit a tool

model-deployer

Generate deployment artifacts for ML models -- FastAPI serving code, Dockerfiles, cloud configs, batch prediction scripts, and monitoring setup.

Skill by tezansahu

IndexedGPL-3.0★ 16
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tezansahu-model-deployer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate deployment artifacts for ML models -- FastAPI serving code, Dockerfiles, cloud configs, batch prediction scripts, and monitoring setup. Trigger when the user asks to "deploy this model", "serve this model", "create an API for this model", "productionize", "Dockerize this model", "deploy to AWS/GCP/Azure", "create a prediction endpoint", "model serving", "batch predictions", or wants to take a trained model from notebook to production. Also triggers on "how to deploy", "model API", "Flask/FastAPI wrapper for model".

Use cases: backend, devops, cloud, ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/model-deployer

What's inside

Skill name
model-deployer
Description
Generate deployment artifacts for ML models -- FastAPI serving code, Dockerfiles, cloud configs, batch prediction scripts, and monitoring setup. Trigger when the user asks to "deploy this model", "serve this model", "create an API for this model", "productionize", "Dockerize this model", "deploy to AWS/GCP/Azure", "create a prediction endpoint", "model serving", "batch predictions", or wants to take a trained model from notebook to production. Also triggers on "how to deploy", "model API", "Flask/FastAPI wrapper for model".
License
GPL-3.0
Instructions
241 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (2)

  • SKILL.md
  • cloud-deploy.md · references/

SKILL.md (first lines)

# Model Deployer

Take a trained model from notebook to production with serving code, containers, and cloud deployment.

---

## Workflow

```
1. Identify deployment pattern (real-time API vs batch)
2. Generate serving code
3. Create Docker container
4. Add monitoring and health checks
5. Generate cloud deployment config
```

---

## Step 1 -- Deployment Pattern

| Pattern | When | Framework |
|---|---|---|
| **Real-time API** | Low-latency predictions, user-facing | FastAPI |
| **Batch prediction** | Scheduled scoring of large datasets | Python script + scheduler |
| **Streaming** | Event-driven predictions | Kafka consumer + model |
| **Embedded** | Model runs in app process | Direct library import |
| **Serverless** | Infrequent, bursty traffic | AWS Lambda / GCP Cloud Functions |

**Default**: Real-time API with FastAPI.

---

## Step 2 -- Serving Code

### FastAPI Template

```python
"""Model serving API."""
import joblib
import numpy as np
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel, Field
from typing import Optional
import logging
import time

# --- Config ---
MODEL_PATH = "model_artifacts/best_model.joblib"
APP_TITLE = "ML Model API"
APP_VERSION = "1.0.0"

# --- Setup ---
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

app = FastAPI(title=APP_TITLE, version=APP_VERSION)

# Load model at startup
model = None

@app.on_event("startup")
def load_model():
    global model
    logger.info(f"Loading model from {MODEL_PATH}")
    model = joblib.load(MODEL_PATH)
    logger.info("Model loaded successfully")


# --- Schemas ---
class PredictionRequest(BaseModel):
    features: dict = Field(..., description="Feature name-value pairs", example={
        "age": 35, "income": 75000, "tenure_months": 24
    })

class PredictionResponse(BaseModel):
    prediction: float | int | str
    probability: Optional[list[float]] = None
    model_version: str = APP_VERSION
    latency_ms: float


# --- Endpoints ---
@app.post("/predict", response_model=PredictionResponse)
async def predict(request: PredictionRequest):
    start = time.time()
    try:
        # Convert features to model input format
        feature_names = list(request.features.keys())
        feature_values = np.array([list(request.features.values())])

        # Handle pandas DataFrame input if model expects it
        import pandas as pd
        X = pd.DataFrame(feature_values, columns=feature_names)

        prediction = model.predict(X)[0]
        probability = None
        if hasattr(model, "predict_proba"):
            probability = model.predict_proba(X)[0].tolist()

        latency = (time.time() - start) * 1000
        return PredictionResponse(
            prediction=prediction,
            probability=probability,
            latency_ms=round(latency, 2),
        )
    except Exception as e:
        logger.error(f"Prediction error: {e}")
        raise HTTPException(status_code=422, detail=str(e))


@app.get("/health")
async def health():
    return {"status": "healthy", "model_loaded": model is not None}


@app.get("/model-info")
async def model_info():
    info = {"version": APP_VERSION, "type": type(model).__name__}
    if hasattr(model, "feature_names_in_"):

From tezansahu/ai-garage, GPL-3.0.

More from tezansahu/ai-garage

Signals

Stars
16
Forks
8
Open issues
1
Last commit (this folder)
Jul 7, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from tezansahu

Cite this page

model-deployer skill. Agent Mart. https://agentmart.dev/skills/tezansahu-model-deployer (last updated 2026-10-24)