image-crop-rotate — скилл для Claude Code: кадрирование и установка
Скилл image-crop-rotate для Claude Code обрезает изображение по центру до половины исходного размера и поворачивает на 90° по часовой стрелке. По запросу агента пакетно подготавливает изображения с таким результатом.
Apache-2.0 1 установок ★ 904 обновлён 2026-10-10
npx skills add instavm/coderunner --skill image-crop-rotate -a claude-codeЧто делает image-crop-rotate
Скилл выполняет две операции с изображением: оставляет центральную область размером в половину исходника и поворачивает её на 90° по часовой стрелке. Обработка запускается скриптом scripts/crop_and_rotate.py, которому передают пути к входному и выходному файлам.
Скрипт использует Python и PIL/Pillow; поддерживаются форматы, которые открывает эта библиотека, включая JPEG, PNG, GIF, BMP и TIFF. Без PIL/Pillow скрипт не обработает изображение. Результат сохраняется по указанному пути, а в консоль выводятся исходный, обрезанный и конечный размеры.
Какие задачи решает
- обрезать изображение по центру до половины исходного размера
- повернуть изображение на 90° по часовой стрелке
- выполнить обрезку и поворот за один запуск скрипта
- сохранить обработанное изображение в заданный файл
Примеры запросов агенту
- Обрежь
photo.jpgпо центру до половины размера и поверни по часовой стрелке. - Обработай
input.png: сначала центральная обрезка, затем поворот на 90°. - Сохрани результат обработки
image.tiffвoutput.tiff.
Как установить image-crop-rotate
1Через Skills CLI (Vercel)
npx skills add instavm/coderunner --skill image-crop-rotate -a claude-code2Вручную: положить файлы
~/.claude/skills/image-crop-rotate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/image-crop-rotate/
1Через Skills CLI (Vercel)
npx skills add instavm/coderunner --skill image-crop-rotate -a codex2Вручную: положить файлы
.agents/skills/image-crop-rotate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add instavm/coderunner --skill image-crop-rotate -a cursor2Вручную: положить файлы
.cursor/skills/image-crop-rotate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install instavm/coderunner skills/public/image-crop-rotate2Вручную: положить файлы
.github/skills/image-crop-rotate/SKILL.md1Через Skills CLI (Vercel)
npx skills add instavm/coderunner --skill image-crop-rotate -a gemini-cli2Командой платформы
gemini skills install https://github.com/instavm/coderunner --path skills/public/image-crop-rotateВручную: положить файлы
.devin/skills/image-crop-rotate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add instavm/coderunner --skill image-crop-rotate -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об image-crop-rotate
Как установить image-crop-rotate в Claude Code?
Выполните npx skills add instavm/coderunner --skill image-crop-rotate -a claude-code. Файл скилла находится по пути ~/.claude/skills/image-crop-rotate/SKILL.md.
Что делает image-crop-rotate?
Он обрезает изображение по центру до половины исходного размера и поворачивает результат на 90° по часовой стрелке. Для обработки использует scripts/crop_and_rotate.py.
Какие форматы изображений поддерживает image-crop-rotate?
Подойдут форматы, которые поддерживает PIL/Pillow, например JPEG, PNG, GIF, BMP и TIFF.
Исходный текст
SKILL.md · Apache-2.0
---
name: image-crop-rotate
description: Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.
---
# Image Crop and Rotate
## Overview
This skill provides functionality to crop images to 50% of their original size from the center and rotate them 90 degrees clockwise. It uses a reliable Python script with PIL/Pillow for consistent, high-quality image processing.
## When to Use This Skill
Use this skill when the user requests:
- Cropping an image to 50% from the center
- Rotating an image 90 degrees (clockwise)
- Both cropping and rotating an image
- Image processing tasks that combine center cropping with rotation
## How to Use This Skill
### Overview
The skill provides a single script that performs both operations: cropping to 50% from center and rotating 90 degrees clockwise.
### Process
1. **Identify the input image**: Locate the user's uploaded image file in `/mnt/user-data/uploads/`
2. **Execute the script**: Run the `crop_and_rotate.py` script with input and output paths:
```bash
python scripts/crop_and_rotate.py <input_path> <output_path>
```
3. **Provide the result**: Move the processed image to `/mnt/user-data/outputs/` and share it with the user
### Script Details
**`scripts/crop_and_rotate.py`**
This script performs two operations in sequence:
1. Crops the image to 50% of its original size, centered
2. Rotates the cropped image 90 degrees clockwise
**Usage:**
```bash
python scripts/crop_and_rotate.py input.jpg output.jpg
```
**Arguments:**
- First argument: Path to input image
- Second argument: Path to save processed image
**Supported formats:** Any format supported by PIL/Pillow (JPEG, PNG, GIF, BMP, TIFF, etc.)
**Output:** The script prints processing details including original size, cropped size, and final size
### Example Workflow
```bash
# Process an uploaded image
python /mnt/user-data/skills/image-crop-rotate/scripts/crop_and_rotate.py \
/mnt/user-data/uploads/photo.jpg \
/mnt/user-data/outputs/photo_processed.jpg
```
The script will:
1. Open the input image
2. Crop it to 50% from the center (e.g., 1000x800 → 500x400)
3. Rotate the cropped image 90° clockwise (e.g., 500x400 → 400x500)
4. Save the result to the output path
© instavm · Apache-2.0 · instavm/coderunner