Skip to content
Back to skills

Deployment

ASecurity

"Serve fitted igel models through FastAPI/uvicorn and call the

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopsbashfastapidockerapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill deployment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deployment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deployment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-deployment-fd38c261/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-deployment-fd38c261)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deployment
description: "Serve fitted igel models through FastAPI/uvicorn and call the
  prediction API safely."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# Deployment

Use this sub-skill when the user asks to serve a fitted igel model, start the REST endpoint, call the prediction API, use the client example, debug `IGEL_MODEL_RESULTS_PATH`, or reason about host/port options for serving.

## Routing contract

- **Prerequisite route:** serving depends on a fitted classic igel model and its `model_results/` directory. If the user has not already run `fit` or does not have a results directory, route them to [tabular-workflows](../tabular-workflows/SKILL.md) first.
- **Root route:** for broader package routing or uncertainty about whether this is a serving task, return to the [root router](../../SKILL.md).
- **Stay here for:** `igel serve`, FastAPI/uvicorn startup, `IGEL_MODEL_RESULTS_PATH`, `/predict` JSON shape, curl/client calls, deployment-specific failure modes, stale Docker/GUI deployment notes.
- **Route elsewhere for:** training, evaluation, CLI `predict`, export/ONNX, model catalogs, config schemas, tabular preprocessing, or AutoKeras workflows.

## Minimal operating workflow

1. Confirm the fitted model directory contains the artifacts described in [API reference](references/api-reference.md): at minimum `model.joblib` and `description.json`; `predictions.csv` is the endpoint output path.
2. Start the server with the package CLI:

   ```bash
   igel serve -res_dir model_results --host localhost --port 8080
   ```

   The CLI sets `IGEL_MODEL_RESULTS_PATH` before running igel's FastAPI app with uvicorn.
3. Call `POST /predict` with a JSON object whose keys are the feature columns used for prediction. Use [serving workflows](references/serving-workflows.md) for curl and bundled-client examples.
4. If the request fails, inspect [troubleshooting](references/troubleshooting.md) before changing the model or retraining.

## Bundled helper

Use [`scripts/predict_client.py`](scripts/predict_client.py) to format JSON or CSV rows and call the service without relying on the original source example. It supports `--json`, `--json-file`, `--csv`, `--host`, `--port`, `--path`, `--dry-run`, and shape validation for scalar-vs-list payloads.

## Reference map

- [API reference](references/api-reference.md): `serve` options, environment variable contract, FastAPI routes, request/response shape.
- [Serving workflows](references/serving-workflows.md): fitted-model handoff, local startup, curl calls, helper usage, manual uvicorn path.
- [Troubleshooting](references/troubleshooting.md): missing results paths/files, bad payload shapes, host/help confusion, stale Dockerfile, external GUI path.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md4 KB
  • references/serving-workflows.md4.2 KB
  • references/troubleshooting.md4.9 KB
  • scripts/predict_client.py9.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.