writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
server-basicsServe models and custom pipelines with LitServe LitAPI and LitServer, including batching, streaming, auth, callbacks, loggers, middleware, payloads, multi-endpoints, clients, Docker, and deployment.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks how to build, run, deploy, or debug a general
LitServe server. It covers the standard LitAPI + LitServer workflow and the
HTTP-serving surfaces around it.
litserve.LitAPI and litserve.LitServer.accelerator, devices, workers_per_device, timeout, num_api_servers,
host, port, logging, and client-generation settings.litserve dockerize or deploying through the
Lightning CLI passthrough.../openai-specs/SKILL.md.../mcp/SKILL.md.../../SKILL.md.Read these bundled references instead of opening the source repository:
references/api-reference.md: constructor defaults,
hooks, endpoint registration, auth, callbacks, loggers, middleware, client generation,
and Docker/deployment knobs.references/workflows.md: task recipes for serving,
batching, streaming, async, files, images, auth, multi-endpoints, client generation,
Docker, and deployment.references/data-formats.md: JSON, form, multipart,
Pydantic, image, and streaming payload contracts.references/troubleshooting.md: common validation
errors, readiness issues, auth mismatches, client/Docker problems, and excluded paths.scripts/minimal_server.py: safe CPU square server with
port, host, accelerator, batching, workers, and client-generation options.scripts/file_upload_server.py: multipart file and
form-data server with an optional payload-size limit.scripts/image_roundtrip_server.py: base64 image
request/response server using ImageInput and ImageOutput.max_batch_size, batch_timeout, api_path, stream, loop, spec,
mcp, and enable_async on the LitAPI constructor. The same settings on
LitServer are deprecated compatibility paths.setup(device), not in __init__.host="127.0.0.1"; for containers and remote deployment use
host="0.0.0.0".