api-ai-modal
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client patterns
npx skills add majiayu000/claude-skill-registry --skill api-ai-modal --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Modal Patterns > **Quick Guide:** Modal is a serverless GPU compute platform where you define Python functions with decorators and Modal handles containers, scaling, and GPU provisioning. TypeScript apps interact with Modal via HTTP endpoints (calling `@modal.fastapi_endpoint` or `@modal.asgi_app` functions) or the `modal` npm SDK (calling functions directly via gRPC). Define container images, secrets, and volumes as code -- no YAML config files. Use `modal deploy` for production, `modal serve` for dev. --- <critical_requirements> ## CRITICAL: Before Using This Skill > **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants) **(You MUST define Modal functions in Python -- the TypeScript SDK can call functions and manage resources but cannot define them)** **(You MUST use `@modal.fastapi_endpoint` (not the old `@modal.web_endpoint`) for simple web endpoints -- renamed in Modal 1.0)** **(You MUST use `modal.Volume` for model weight caching -- `@modal.build` is deprecated in Modal 1.0)** **(You MUST never hardcode secrets in Modal code -- use `modal.Secret.from_name()` and access via `os.environ`)** **(You
- CRITICAL: Before Using This Skill
- Examples Index
- Philosophy
- Core Patterns
- Pattern 1: Web Endpoint (TypeScript Consumption)
- Pattern 2: Authenticated Endpoints
- Pattern 3: Modal npm SDK (Direct Function Calls)
- Pattern 4: GPU Functions and Container Images
- Pattern 5: Full ASGI App (FastAPI)
- Pattern 6: Secrets and Environment Variables
- Pattern 7: Scheduled Functions
- Decision Framework
- How to Expose Modal to TypeScript
- When to Use Each Endpoint Type
What does the api-ai-modal skill do?
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client patterns
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-ai-modal --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
