sanjeevafk/agent-skills/flash
Claude Code and agent skill by sanjeevafk/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
runpod-flash — code-first serverless: write Python locally, run it on remote Runpod GPUs/CPUs with `flash dev` (hot-reload + live worker logs), then `flash deploy`. Use for @Endpoint/@remote functions, resource config, and debugging flash deployments. For CLI-only infra management use runpodctl or runpod-mcp.
Install
npx vskill@latest install sanjeevafk/agent-skills/flashSKILL.md
The same SKILL.md was published earlier as sanjeevafk/agent-skills/flash.
Runpod Flash
Write code locally, iterate with flash dev — it runs your functions on remote Runpod GPUs/CPUs with hot-reload and live worker logs — then flash deploy to ship. Endpoint handles provisioning.
runpod-flash releases on its own cadence, so `flash --help` and `flash <command> --help` are authoritative for the command surface — this skill is the mental model, the decision rules, and the gotchas that help output does not carry. Confirm the installed version with pip show runpod-flash before concluding a subcommand or flag is unavailable.
Worked examples first for anything multi-step. Flash appears in verified end-to-end paths — 03 variant B (whisper endpoint via flash) and 08 (fine-tune → serve); the full index is runpod/golden-paths/README.md. Open the matching path before planning a deploy — it carries the ordering and the cost cleanup this skill only summarizes.
Load on demand — this skill keeps the mental model + gotchas inline; details live in [`reference/`](reference/):
| Need | Read | |
|---|---|---|
Install, auth, flash init, and the full flash command list | reference/setup-and-cli.md | |
Endpoint(...) constructor params, NetworkVolume/PodTemplate/EndpointJob, GPU & CPU enum tables | reference/api.md | |
| Worked patterns — choosing a model, warm-worker model loading, CPU→GPU pipeline, parallel calls | reference/patterns.md |
Quick start: uv tool install runpod-flash → flash login (or export RUNPOD_API_KEY=...) → flash init my-project → flash dev. Details in reference/setup-and-cli.md.
Dev vs Deploy
flash dev— iterate. Local server at:8888, but your decorated functions
execute on remote GPU/CPU workers. Hot-reloads on save and streams the worker's logs live to the terminal. No build/upload/deploy wait — use this the whole time you develop.
flash deploy— ship. Builds an artifact and deploys a stable endpoint. Slow
(build + upload + provision); only do this once the code works under flash dev.
flash dev ships only the function body to the worker, so a NameError for a module-level name surfaces immediately here. flash deploy imports the whole module and can mask that bug (see Gotcha #1). Develop against flash dev and you catch it first.
Autonomous Dev Loop
flash dev is a long-running server. Three rules:
- Run it in the background — don't block on it.
- Capture its output to a log file.
- Drive it over HTTP.
The captured log is the remote worker's live stream (cold start, model load, prints, tracebacks) — read it to debug.
- Read the real URL from the log — flash auto-bumps the port if 8888 is in use, and
prints ✓ flash dev localhost:<port> plus the route table.
- Routes are namespaced by file:
main.py's/predictis served at/main/predict. - Two route shapes, two body shapes (mismatch →
422naming the missing field inloc): - Load-balanced (
@api.post("/predict")) →POST /main/predict, body is the arg
at top level: a handler def predict(data: dict) wants {"data": {...}} (not the bare object).
- Queue-based (bare
@Endpointdecorator) →POST /main/runsync(the local dev
server only generates /runsync; production also exposes /run), body is double-wrapped in input: a handler def synthesize(data: dict) wants {"input": {"data": {...}}}. The outer input is the queue envelope; the inner key is the handler's param name.
- Edit a handler and save — hot-reload re-syncs the body; just re-send the request, no
redeploy. Add --auto-provision to skip the first-call cold start. kill %1 when done.
Endpoint: Three Modes
Full constructor params and the GPU/CPU enum tables are in reference/api.md.
Mode 1: Your Code (Queue-Based Decorator)
One function = one endpoint with its own workers.
Mode 2: Your Code (Load-Balanced Routes)
Multiple HTTP routes share one pool of workers.
Mode 3: External Image (Client)
Deploy a pre-built Docker image and call it via HTTP.
Connect to an existing endpoint by ID (no provisioning):
How Mode Is Determined
| Parameters | Mode | |
|---|---|---|
name= only | Decorator (your code) | |
image= set | Client (deploys image, then HTTP calls) | |
id= set | Client (connects to existing, no provisioning) |
The table above is how the mode is picked from params. When to reach for image=:
When to use image= (custom container) vs your own code
Default to writing Python (decorator / routes) — it runs arbitrary code with dependencies=[...]/system_dependencies=[...] and needs no Dockerfile. Even large HuggingFace models stay in decorator mode (weights stream at runtime — see reference/patterns.md → Loading ML models). Reach for image= only when you need:
- a pre-built inference server — vLLM, TensorRT-LLM (
image="vllm/vllm-openai:latest", orrunpod/worker-vllm,runpod/worker-comfy) - system-level deps not pip-installable — a specific CUDA/cuDNN, OS libraries
- models baked into the image — to skip the runtime download entirely
- an existing Runpod Serverless worker — you already have a working image
Trade-off: image= mode can't run arbitrary Python (the image owns all logic) and the image must implement a Runpod Serverless handler. Full list + examples: https://docs.runpod.io/flash/custom-docker-images
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flash/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sanjeevafk/agent-skills/flash)