Model Deployment
secondsky/claude-skills
Deploy ML models with FastAPI, Docker, Kubernetes. An agent skill from secondsky/claude-skills.
Conventions for the opentrons-ai-server FastAPI service — project structure, uv dependency management, settings, testing, Docker, and deployment.
$ npx skills add Opentrons/opentrons --skill ai-server -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Opentrons/opentrons ai-server --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/ai-server .claude/skills/ai-server && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .claude/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-serverType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Opentrons/opentrons --skill ai-server -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Opentrons/opentrons ai-server --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/ai-server .agents/skills/ai-server && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .agents/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Opentrons/opentrons --skill ai-server -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Opentrons/opentrons ai-server --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/ai-server .cursor/skills/ai-server && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .cursor/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Opentrons/opentrons.git --path .cursor/skills/ai-server--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Opentrons/opentrons --skill ai-server -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Opentrons/opentrons ai-server --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/ai-server .gemini/skills/ai-server && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .gemini/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Opentrons/opentrons ai-serverInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Opentrons/opentrons --skill ai-server -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/ai-server .github/skills/ai-server && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .github/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Opentrons/opentrons --skill ai-server -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Opentrons/opentrons ai-server --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Opentrons/opentrons.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/ai-server .opencode/skills/ai-server && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ai-server" agent skill from https://github.com/Opentrons/opentrons/tree/edge/.cursor/skills/ai-server into .opencode/skills/ai-server/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-server", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ai-serverConventions for the opentrons-ai-server FastAPI service — project structure, uv dependency management, settings, testing, Docker, and deployment.
AI Server is an agent skill from Opentrons/opentrons. Conventions for the opentrons-ai-server FastAPI service — project structure, uv dependency management, settings, testing, Docker, and deployment. Use when working with files in opentrons-ai-server/ or discussing the AI server API.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in DevOps & Cloud, covering Dependency management, Backend development and Containers. It works with Docker and FastAPI. The repository describes itself as: Software for writing protocols and running them on the Opentrons Flex and Opentrons OT-2. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a14fef9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
makeuvpytestuvicornFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
AI Server loads about 2.5k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 816 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
- **Locally**: values come from a `.env` file (gitignored)ttings()` directly) to avoid re-parsing `.env` on every importGenerate a template `.env` from defaults: `make gen-env`| Run the Docker container (requires `.env` file) |2. Add the value to your local `.env` fileAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Opentrons/opentrons at commit a14fef9, republished under its Apache-2.0 licence (© Opentrons). 816 words, ~2,499 tokens.
.claude/skills/ai-server/SKILL.md (or your agent's skills folder).opentrons-ai-server is a standalone FastAPI service for Opentrons AI — protocol generation, chat completions, and related AI features. It is not part of the monorepo build system; it has its own dependency management, CI workflows, and deployment pipeline.
Deployed environments: staging (staging.opentrons.ai) and prod (ai.opentrons.com), running on AWS ECS Fargate behind CloudFront.
The server exposes four chat endpoints that return JSON responses:
| Endpoint | Purpose |
|---|---|
POST /api/chat/completion | General chat (no file attachments) |
POST /api/chat/completion-multipart | Chat with file attachments (multipart form) |
POST /api/chat/create-protocol | Generate a new protocol |
POST /api/chat/update-protocol | Update an existing protocol |
All endpoints require a Bearer token in Authorization. Setting "fake": true in the request body bypasses the LLM and returns a canned response from api/domain/fake_responses.py — useful for local development without Anthropic API calls.
This project uses uv for Python dependency management (not pipenv, pip-tools, or poetry).
| File | Role | Committed? |
|---|---|---|
pyproject.toml | Single source of truth for dependencies AND all tool config | Yes |
uv.lock | Locked dependency graph | Yes |
requirements.txt | Unused. Docker installs from uv.lock directly | No (gitignored) |
.venv/ | Local virtual environment created by uv sync | No (gitignored) |
make setup # Install all deps (uv sync --frozen)
uv add <package> # Add production dep
uv add --dev <package> # Add dev-only dep
uv remove <package> # Remove dep
uv lock # Re-resolve after manual pyproject.toml edits
uv run <command> # Run inside the managed venvAfter changing deps, commit both pyproject.toml and uv.lock.
opentrons-ai-server/
├── api/ # Application source code
│ ├── handler/ # FastAPI app, routes, middleware (fast.py entrypoint)
│ ├── domain/ # Business logic — LLM prediction (Anthropic, OpenAI)
│ ├── models/ # Pydantic request/response models
│ ├── services/ # File processing and other services
│ ├── integration/ # External integrations (Auth0, Google Sheets, AWS)
│ ├── constants/ # Shared constants
│ ├── data/ # Static data files
│ ├── storage/ # Stored API docs, indexes
│ ├── utils/ # API docs sync, curation, metadata helpers
│ └── settings.py # Pydantic Settings — all env vars and secrets
├── tests/
│ ├── conftest.py # Pytest fixtures and --env option
│ ├── helpers/ # Client, token helpers for live testing
│ └── test\_\*.py # Unit and live tests
├── deploy.py # ECS Fargate deployment script
├── Dockerfile
├── Makefile
├── pyproject.toml
└── uv.lockAll runtime configuration lives in api/settings.py via pydantic-settings:
.env file (gitignored)deploy.pySettings classSecretStr type; non-secret vars are plain strings with defaultsget_settings() singleton (not Settings() directly) to avoid re-parsing .env on every importNotable settings:
allowed_origins — comma-separated CORS origins (must be explicit; wildcard * is invalid with allow_credentials=True)request_timeout_seconds — request timeout in seconds (default "300"); production proxies must be configured to allow at least this durationanthropic_max_tokens — stored as a string, cast to int when usedGenerate a template .env from defaults: make gen-env
All config is in pyproject.toml — no separate config files:
| Tool | Section | Purpose |
|---|---|---|
| ruff | [tool.ruff], [tool.ruff.lint], [tool.ruff.format] | Linting AND formatting |
| mypy | [tool.mypy], [[tool.mypy.overrides]] | Strict type checking with pydantic plugin |
| pytest | [tool.pytest.ini_options] | Test runner config, markers: unit, live |
Line length: 140. Target: Python 3.12. Mypy is in strict mode.
All targets run from opentrons-ai-server/.
| Target | Description |
|---|---|
make setup | Install all deps (uv sync --frozen --extra dev) |
make teardown | Delete .venv/ |
make format | Auto-fix lint + format with ruff, then prettier for .md/.json |
make lint | Check lint (ruff) + type check (mypy) — no auto-fix |
make prep | format then lint then unit-test |
make unit-test | Run unit tests (pytest tests -m unit) |
| Target | Description |
|---|---|
make local-run | Run FastAPI with uvicorn (hot reload, no Docker) |
make build | Sync API docs, then build the Docker image |
make run | Run the Docker container (requires .env file) |
make rebuild | clean + build + run |
make live-test | Run live tests against a running server (ENV=local default) |
make live-client | Interactive client for testing the API |
| Target | Description |
|---|---|
make deploy ENV=staging | Build, push to ECR, update ECS service |
make dry-deploy ENV=staging | Retrieve AWS data but make no changes |
make build-only ENV=staging | Build Docker image only, no push/deploy |
The image is a two-stage build. The dependency stage copies a digest-pinned uv 0.11.17 binary and runs uv sync --frozen --no-dev --no-install-project, so packages come from uv.lock with their recorded hashes. The runtime stage copies only that virtualenv and api/; it does not contain uv.
make build syncs the Python API docs, then builds. The Docker build context is the repo root (not opentrons-ai-server/). Docs come from the pinned DOCS_TAG Makefile variable and must be present under api/storage/api_docs/docs/v2.
Entrypoint: uvicorn api.handler.fast:app (3 workers, port 8000).
The helper model that selects relevant docs reads api/storage/api_docs/api_docs_struct.md. Rich <about> routing text is not taken from synced markdown alone; it comes from committed curation.
| File | Edit? | Purpose |
|---|---|---|
api_docs_struct_about.md | Yes | Source of truth for curated <about> text |
api_docs_struct.md | No | Generated on make sync-api-docs |
docs/v2/ (synced markdown) | No | Gitignored; fetched from DOCS_TAG |
make sync-api-docs # regenerate api_docs_struct.md from curated about file
make check-api-docs-curation # fail if curated entries and synced docs divergeFull details: opentrons-ai-server/docs/API_DOCS_CURATION.md
@pytest.mark.unit): run offline → make unit-test@pytest.mark.live): run against a real server → make live-test ENV=local--env pytest option selects the target environment (local/staging/prod)tests/helpers/ handle Auth0 token caching and HTTP client setupAuth0 JWT verification via api/integration/auth.py. Config: auth0_domain, auth0_api_audience, auth0_issuer, auth0_algorithms in Settings.
make format to auto-fixapi/models/)structlogI rule (isort-compatible)Settings class in api/settings.py (use SecretStr for secrets).env file© Opentrons, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/ai-server of Opentrons/opentrons.
Open the folder on GitHubat commit a14fef9
AI Server next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| AI Server this skillOpentrons/opentrons | 521 | — | ~2.5k | Automated safety check: Notes | Apache-2.0 | |
| Model Deploymentsecondsky/claude-skills | 227 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Flowfile Debugging PlaybookEdwardvaneechoud/Flowfile | 373 | — | ~6.3k | Automated safety check: Pass | MIT | |
| Releasebmeares/Meerschaum | 154 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 | |
| Monstermq Broker Configvogler75/monster-mq | 143 | — | ~2.2k | Automated safety check: Pass | GPL-3.0 | |
| Releasear-io/ar-io-node | 127 | — | ~4.2k | Automated safety check: Notes | AGPL-3.0 |
secondsky/claude-skills
Deploy ML models with FastAPI, Docker, Kubernetes. An agent skill from secondsky/claude-skills.
Edwardvaneechoud/Flowfile
Symptom-to-cause triage playbook for Flowfile (core/worker/kernel/frontend/AI) — covers "no such table" DB cascades (two distinct causes), import-time Alembic migration corruption, silent…
bmeares/Meerschaum
Meerschaum release process — bump version, update changelog, stage dev→main PR, run CI, publish to PyPI, tag, GitHub release, build/push Docker images, rebuild docs on prod VPS.
vogler75/monster-mq
Guide for configuring, deploying, and operating the MonsterMQ broker.
ar-io/ar-io-node
Drive the AR.IO Node release process end-to-end — preflight checks, prepare commit, finalize with image SHAs, test docker compose profiles, tag & publish, and post-release cleanup.
clacky-ai/openclacky
Deploy Rails applications to Railway. An agent skill from clacky-ai/openclacky.
Opentrons/opentrons
Conventions for the opentrons-ai-client React/TypeScript frontend — project structure, API integration, state management (Jotai), feature flags, types, and testing.
Opentrons/opentrons
Conventions for the analyses snapshot testing framework in analyses-snapshot-testing/.
Opentrons/opentrons
CSS Modules conventions, Stylelint rules, design tokens (spacing, colors, typography, border-radius), and patterns for the Opentrons monorepo.
Opentrons/opentrons
Authoring and styling guidelines for the Opentrons /docs MkDocs project.
Opentrons/opentrons
E2E testing conventions for Protocol Designer and Labware Library using Playwright + pytest in e2e-testing/.
Opentrons/opentrons
Vite demo and Playwright + Applitools tests for packed @opentrons JS packages in js-package-testing/.
Categories
Conventions for the opentrons-ai-server FastAPI service — project structure, uv dependency management, settings, testing, Docker, and deployment. AI Server is an agent skill from Opentrons/opentrons. Conventions for the opentrons-ai-server FastAPI service — project structure, uv dependency management, settings, testing, Docker, and deployment.
AI Server fits situations like: working with files in opentrons-ai-server/; discussing the AI server API.
Run `npx skills add Opentrons/opentrons --skill ai-server -a claude-code`. Or copy the skill folder (.cursor/skills/ai-server in Opentrons/opentrons) into .claude/skills/ai-server in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Opentrons/opentrons --skill ai-server -a codex`. Or copy the skill folder (.cursor/skills/ai-server in Opentrons/opentrons) into .agents/skills/ai-server in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Opentrons/opentrons --skill ai-server -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ai-server, .gemini/skills/ai-server, .github/skills/ai-server and .opencode/skills/ai-server in your project.
Going by SKILL.md and its folder, AI Server needs the command-line tools its instructions call (make, uv, pytest and uvicorn). Our summary lists: Python 3; Docker.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
AI Server is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with AI Server: Model Deployment (secondsky/claude-skills, 227 stars), Flowfile Debugging Playbook (Edwardvaneechoud/Flowfile, 373 stars), Release (bmeares/Meerschaum, 154 stars) and Monstermq Broker Config (vogler75/monster-mq, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Opentrons (a GitHub organization) maintains it in Opentrons/opentrons, which has 521 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.
Source: Opentrons/opentrons on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.