responsive-image
Generate responsive image sets with srcset, WebP/AVIF conversion, and art direction
Best use case
responsive-image is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate responsive image sets with srcset, WebP/AVIF conversion, and art direction
Teams using responsive-image should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/responsive-image/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How responsive-image Compares
| Feature / Agent | responsive-image | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate responsive image sets with srcset, WebP/AVIF conversion, and art direction
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Responsive Image Skill
## Purpose
Generate responsive image sets for optimal performance across devices, including srcset variants, modern format conversion, and art direction.
## Capabilities
- Generate srcset image variants at multiple resolutions
- Convert to WebP and AVIF formats
- Calculate art direction crops for different viewports
- Generate picture element markup
- Create responsive image configuration
- Optimize images for performance
## Target Processes
- responsive-design.js
- component-library.js
## Integration Points
- Sharp for image processing
- ImageMagick for advanced transformations
- libvips for high-performance operations
## Input Schema
```json
{
"type": "object",
"properties": {
"inputPath": {
"type": "string",
"description": "Path to source image"
},
"outputPath": {
"type": "string",
"description": "Output directory"
},
"widths": {
"type": "array",
"items": { "type": "number" },
"default": [320, 640, 960, 1280, 1920]
},
"formats": {
"type": "array",
"items": { "type": "string" },
"default": ["webp", "avif", "jpg"]
},
"quality": {
"type": "number",
"default": 80
},
"artDirection": {
"type": "array",
"items": {
"type": "object",
"properties": {
"breakpoint": { "type": "number" },
"crop": { "type": "object" }
}
}
},
"generateMarkup": {
"type": "boolean",
"default": true
}
},
"required": ["inputPath"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"generatedImages": {
"type": "array",
"description": "List of generated image files"
},
"srcset": {
"type": "string",
"description": "srcset attribute value"
},
"pictureMarkup": {
"type": "string",
"description": "HTML picture element markup"
},
"sizeSavings": {
"type": "object",
"description": "File size comparison"
}
}
}
```
## Usage Example
```javascript
const result = await skill.execute({
inputPath: './hero-image.jpg',
outputPath: './responsive',
widths: [320, 640, 960, 1280, 1920],
formats: ['webp', 'avif', 'jpg'],
generateMarkup: true
});
```Related Skills
image-optimization
Image formats, responsive images, lazy loading, and CDN integration.
tem-image-analyzer
Transmission Electron Microscopy image analysis skill for nanoparticle size, morphology, and crystallography assessment
image-algorithm-validator
Medical image processing algorithm validation skill for segmentation, detection, and analysis algorithms
container-images
Docker and OCI container image expertise for building, optimizing, and securing container images
appimage-builder
Build AppImage bundles with AppDir structure for portable Linux applications
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
babysitter
Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
yolo
Run Babysitter autonomously with minimal manual interruption.
user-install
Install the user-level Babysitter Codex setup.
team-install
Install the team-pinned Babysitter Codex workspace setup.
retrospect
Summarize or retrospect on a completed Babysitter run.
resume
Resume an existing Babysitter run from Codex.