Skip to content
Back to skills

Serving

ASecurity

"Use this YOLOv5 sub-skill for the Flask REST API example, request

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
devopsflasktestingapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Serving?

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

Security grade badge for Serving
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-serving-28bd4d1b/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-serving-28bd4d1b)

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: serving
description: "Use this YOLOv5 sub-skill for the Flask REST API example, request
  validation, API-key handling, client payloads, and safe service smoke checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: AGPL 3.0
---

# YOLOv5 Flask Serving

Use this route for the repository's Flask REST API example: `utils/flask_rest_api/restapi.py`, its request payloads, API-key behavior, upload validation, and safe smoke testing.

## Choose the workflow

- **Plan a request or server**: read `references/workflows.md` for route shape, image upload behavior, client request structure, and server startup considerations.
- **Inspect the API contract**: read `references/api-reference.md` for the route, model name, upload limit, file-type checks, and JSON response shape.
- **Check the service safely**: run `scripts/rest_api_smoke.py` to exercise the Flask test client with a dummy model instead of starting a server or downloading weights.

## Common decisions

- The route expects an image upload under the `image` form field.
- Set `API_KEY` only when you need authenticated requests; send the matching `X-API-Key` header.
- The server allows only a small set of image extensions and a 16 MB upload cap.
- The bundled example server loads YOLOv5 models through PyTorch Hub when actually started; that can download weights.
- The smoke helper avoids network, weight downloads, and a live listener.

## Handoffs

- Route detection behavior questions to `../detection/SKILL.md`.
- Route export/deployment-format questions to `../export/SKILL.md`.
- Read root `references/troubleshooting.md` for upload, auth, and service-side failure surfaces.

Files in this skill

  • SKILL.md1.6 KB
  • references/api-reference.md1.5 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md1.6 KB
  • scripts/rest_api_smoke.py3.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.