# Sirv Skills for AI Coding Agents

A skill is a set of instructions an AI coding agent reads before it starts a task. With the Sirv skills, it follows Sirv’s own way of doing things.

They are free and open source, on [GitHub](https://github.com/sirv/image-optimization-skill) and [skills.sh](https://www.skills.sh/sirv).

## Install the skills

Run this in your project’s folder to add every Sirv skill:

```bash
npx skills add sirv/image-optimization-skill
```

To add only one skill, name it after `--skill`:

```bash
npx skills add https://github.com/sirv/image-optimization-skill --skill sirv-dynamic-imaging
```

## The skills

| Skill | What your agent can do with it |
| --- | --- |
| [`image-optimization`](https://www.skills.sh/sirv/image-optimization-skill/image-optimization) | Audit and fix how a site delivers images: LCP, responsive images, formats and sizes. |
| [`sirv-dynamic-imaging`](https://www.skills.sh/sirv/image-optimization-skill/sirv-dynamic-imaging) | Build Sirv image URLs that [resize](/help/dynamic-imaging/resize/), crop and convert images on the fly. |
| [`sirv-api`](https://www.skills.sh/sirv/image-optimization-skill/sirv-api) | Call the [Sirv REST API](/help/rest-api/reference/) to upload, download, search and manage files and metadata. |
| [`sirv-media-viewer`](https://www.skills.sh/sirv/image-optimization-skill/sirv-media-viewer) | Build, check and fix product galleries with zoom, [360 spin](/help/spin/getting-started/how-spin-files-are-created/), [video](/help/sirv-media-viewer/media-types/video-streaming/) and 3D. |
| [`sirv-360-spin`](https://www.skills.sh/sirv/image-optimization-skill/sirv-360-spin) | Prepare and name the frames, then create and embed a [360 spin](/help/sirv-media-viewer/media-types/360-spin/). |
| [`video-optimization`](https://www.skills.sh/sirv/image-optimization-skill/video-optimization) | Choose the encoding and delivery for hero loops, product demos and embedded video. |
| [`sirv-ai-studio`](https://www.skills.sh/sirv/image-optimization-skill/sirv-ai-studio) | Remove backgrounds, upscale and generate images and video with Sirv AI Studio. |
| [`sirv-ecommerce`](https://www.skills.sh/sirv/image-optimization-skill/sirv-ecommerce) | Run product image work for online stores, such as Shopify sync and marketplace image checks. |

The last two use [Sirv AI Studio](https://www.sirv.studio/). Connect your agent to it first, as [Connect Claude or ChatGPT with MCP](https://www.sirv.studio/docs/developers/mcp) shows.

## Ask your agent

Once the skills are in, ask in plain words. Your agent picks the skill that fits:

-   “Check the images on our home page and make them load faster.”
-   “Serve our product images from Sirv as WebP, 800px wide.”
-   “Upload the photos in /shoots/spring to Sirv and tag them by product.”
-   “Add a gallery with zoom and a 360 spin to the product page.”
-   “Our videos use too much bandwidth. Stream them from Sirv instead.”

The `sirv-api` skill needs an API client. Create one in [Settings > API access](/help/rest-api/sirv-rest-api/#create-an-api-client), then give your agent its client ID and secret.

## The API for agents

AI coding agents can also read the whole REST API themselves, from [openapi.json](/help/openapi.json) and [llms.txt](/help/llms.txt). Every page in the [API reference](/help/rest-api/reference/) has a Markdown copy too.

Looking for the AI Studio API? It is a separate product with its own keys, documented in the [Sirv AI Studio API reference](https://www.sirv.studio/docs/api).
