AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
Edit images with precision — crop, resize, mirror, rotate, trim, and reframe.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-edit --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/image-edit .claude/skills/image-edit && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .claude/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-editType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-edit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/image-edit .agents/skills/image-edit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .agents/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-edit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/image-edit .cursor/skills/image-edit && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .cursor/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/peterkrueck/Claude-Code-Development-Kit.git --path skills/image-edit--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-edit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/image-edit .gemini/skills/image-edit && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .gemini/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-editInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/image-edit .github/skills/image-edit && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .github/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit image-edit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/image-edit .opencode/skills/image-edit && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "image-edit" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/image-edit into .opencode/skills/image-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-edit", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
image-editEdit images with precision — crop, resize, mirror, rotate, trim, and reframe.
Image Edit is an agent skill from peterkrueck/Claude-Code-Development-Kit. Edit images with precision — crop, resize, mirror, rotate, trim, and reframe. Use this skill whenever the user asks to crop, resize, trim, mirror, flip, rotate, reframe, or otherwise manipulate an image. Also use for creating square crops, portraits/headshots from full-body images, icon sizes, or any image transformation. Even if the request sounds simple, this skill prevents common pitfalls and ensures correct results on the first try.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/analyze_bounds.py` and `scripts/crop_image.py`).
It sits in Media & Creative, covering Image editing. The repository describes itself as: Claude Code Workflow for beginners & intermediate users. Tutorial and Installer included. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ba85375. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Image Edit loads about 1.2k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 503 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from peterkrueck/Claude-Code-Development-Kit at commit ba85375, republished under its MIT licence (© peterkrueck). 503 words, ~1,181 tokens.
.claude/skills/image-edit/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Precision image manipulation using Python/Pillow. This skill exists because macOS sips has unreliable crop offset behavior and visual inspection alone leads to bad coordinates — images often have hundreds of pixels of invisible padding that throws off naive crops.
The scripts need Pillow and numpy. Create a temp venv on first use:
python3 -m venv /tmp/imgcrop && /tmp/imgcrop/bin/pip install Pillow numpy -qThis only needs to happen once per session. The venv at /tmp/imgcrop persists until reboot.
Never guess crop coordinates from visual inspection. Images routinely have large invisible regions — transparent padding, solid-color borders, or dead space — that make visual estimates wildly wrong.
Always run the analysis script first to get exact pixel coordinates of where the actual content lives.
Use the Read tool to look at the image. Understand what's in it and what the user wants to focus on.
Run the bundled analysis script to find where content actually lives:
/tmp/imgcrop/bin/python3 .claude/skills/image-edit/scripts/analyze_bounds.py <image_path>This outputs JSON with:
content_bounds — exact pixel coordinates of non-background contentpadding — how much dead space exists on each sidesuggested_square_crops — pre-calculated crop regions at different zoom levels:tight_head (35%) — face/head closeupupper_body (55%) — head through chest/armsthree_quarter (75%) — head through waistfull (100%) — entire subjectUse --threshold to adjust sensitivity (default 30).
Use the analysis output to compute exact crop coordinates:
max(width, height) as the side lengthUse the bundled script. All operations are optional and composable — applied in order: crop -> mirror -> rotate -> resize.
/tmp/imgcrop/bin/python3 .claude/skills/image-edit/scripts/crop_image.py \
<input_path> <output_path> \
[--left L --top T --right R --bottom B] \
[--mirror horizontal|vertical] \
[--rotate DEGREES] \
[--resize WxH]Flags:
| Flag | Required | Description |
|---|---|---|
--left/--top/--right/--bottom | No (but all four if any) | Crop region in pixels. (0,0) is top-left. |
--mirror | No | horizontal (or h) flips left-right. vertical (or v) flips top-bottom. |
--rotate | No | Counter-clockwise degrees. 90/180/270 are pixel-perfect; other angles expand the canvas. |
--resize | No | Final dimensions, e.g. 512x512. Applied after all other operations. Uses LANCZOS resampling. |
Important: Always save to a NEW file. Never overwrite the original.
Read the output image with the Read tool to visually confirm the result. If it doesn't look right, adjust and re-run — the original is untouched.
upper_body, three_quarter, etc.)/tmp/imgcrop/bin/python3 .claude/skills/image-edit/scripts/crop_image.py \
input.png output-mirrored.png --mirror horizontal--resize WxH to scalepadding field tells you how much dead space existscontent_bounds plus a small margin (10-20px)--resize valuessipsThe sips command-line tool has unreliable --cropOffset behavior. Use the Python scripts instead.
© peterkrueck, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts) in skills/image-edit of peterkrueck/Claude-Code-Development-Kit.
Open the folder on GitHubat commit ba85375
Image Edit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Image Edit this skillpeterkrueck/Claude-Code-Development-Kit | 1.4k | — | ~1.2k | Automated safety check: Pass | MIT | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Media Useedenfunf/reelmimic | 1.7k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| Generate Imageynulihao/AgentSkillOS | 617 | 10 repos | ~1.7k | Automated safety check: Notes | None | |
| GPT Image Generation CLIwuyoscar/GPT-Image2-Skill | 5.7k | — | ~2.5k | Automated safety check: Notes | MIT | |
| HyperFrames Media Useheygen-com/hyperframes | 59k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
edenfunf/reelmimic
Agent Media OS, the single skill for every media need in a HyperFrames project.
ynulihao/AgentSkillOS
Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.
wuyoscar/GPT-Image2-Skill
Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.
heygen-com/hyperframes
Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.
ReScienceLab/opc-skills
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
peterkrueck/Claude-Code-Development-Kit
Generate character art and image variations using AI image generation (Google Gemini) with reference images for style and character consistency.
peterkrueck/Claude-Code-Development-Kit
Remove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit.
peterkrueck/Claude-Code-Development-Kit
Fetch CURRENT library/framework/API/CLI documentation via Context7 instead of relying on training data.
peterkrueck/Claude-Code-Development-Kit
Get a second opinion from OpenAI's Codex CLI running locally.
peterkrueck/Claude-Code-Development-Kit
Test and deploy changes safely. An agent skill from peterkrueck/Claude-Code-Development-Kit.
peterkrueck/Claude-Code-Development-Kit
Get a second opinion from Google's Gemini Pro via the locally installed Gemini CLI (defaults to gemini-3.1-pro-preview; override with the CLAUDESECONDOPINIONMODEL env var).
Categories
Edit images with precision — crop, resize, mirror, rotate, trim, and reframe. Image Edit is an agent skill from peterkrueck/Claude-Code-Development-Kit. Edit images with precision — crop, resize, mirror, rotate, trim, and reframe.
Image Edit fits situations like: the user asks to crop; otherwise manipulate an image; creating square crops; portraits/headshots from full-body images.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a claude-code`. Or copy the skill folder (skills/image-edit in peterkrueck/Claude-Code-Development-Kit) into .claude/skills/image-edit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a codex`. Or copy the skill folder (skills/image-edit in peterkrueck/Claude-Code-Development-Kit) into .agents/skills/image-edit in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill image-edit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-edit, .gemini/skills/image-edit, .github/skills/image-edit and .opencode/skills/image-edit in your project.
Going by SKILL.md and its folder, Image Edit needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Image Edit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Image Edit: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Media Use (edenfunf/reelmimic, 1.7k stars), Generate Image (ynulihao/AgentSkillOS, 617 stars) and GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
peterkrueck (a GitHub user) maintains it in peterkrueck/Claude-Code-Development-Kit, which has 1,385 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on July 22, 2026.
Source: peterkrueck/Claude-Code-Development-Kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.