# Image Repair

- Name: Image Repair
- Collection: Simon personal skills
- Origin: Simon workflow and wrapper; upstream tools and models are separate
- Author: Simon Lin / Simon 林
- Copyright: PhoenixTree Holdings Limited
- Distribution version: 1.1.0
- Original package snapshot: 2026-08-18
- Free distribution published: 2026-10-22 (Asia/Singapore)
- Documentation and distribution checked: 2026-10-22
- License for original contents: MIT
- Verification: documentation_and_distribution_checks_only; full model or browser workflows not rerun
- Download: https://agentskill.nz/downloads/image-repair-v1.1.0.zip
- Bytes: 12313
- SHA-256: 00c884da91226c0ddc3d9a5f6e9841e186fb0b70d2236ea572f032598bd786a1
- Chinese page: https://agentskill.nz/personal/image-repair/
- English page: https://agentskill.nz/en/personal/image-repair/

## Upstream components

- IOPaint: https://github.com/Sanster/IOPaint (Apache-2.0); not bundled

## 中文

图片局部修复

用 IOPaint 与 LaMa 对自有或获授权图片的指定区域做局部重建。

前提：Python 3.11、Pillow、IOPaint 与单独下载的 LaMa 模型。

- 显式矩形或角落区域
- 保留原图，PNG 输出
- 重复命名与缺失输出检查

按 SKILL.md 用 repair.sh 显式选择矩形区域和独立输出目录，保留原图并人工抽查。

## English

Local image repair

Reconstruct a selected region of an owned or authorized image using IOPaint and LaMa.

Requirements: Python 3.11, Pillow, IOPaint and separately downloaded LaMa model.

- Explicit rectangular or corner region
- Originals preserved; PNG output
- Duplicate-name and missing-output checks

Use repair.sh with an explicit region and separate output directory, following SKILL.md. Keep originals and inspect repaired regions.

## Install / 安装

~~~bash
unzip image-repair-v1.1.0.zip -d ./skill-install
mkdir -p "$HOME/.agents/skills/image-repair"
cp -R ./skill-install/image-repair/. "$HOME/.agents/skills/image-repair/"
~~~

For Claude Code, replace .agents/skills with .claude/skills. Use the actual installation path in commands. Read SKILL.md and THIRD-PARTY.md before running anything. Dependencies, model weights, accounts and media are not included. No full runtime or all-client compatibility claim is made.

## Package files

- LICENSE.txt: 1115 bytes; SHA-256 8299c7d39816b7abaafd55ce0ab73db564238876116533acfc511ff385ff5c22
- README.md: 2787 bytes; SHA-256 fac5f14acc43699408c96ace6f2e9338fd22731deef83306e3af5388fa950fdf
- SKILL.md: 2113 bytes; SHA-256 194177cbbc9c852a4eb2fac72f8dfa9b3c10d39f4b58f990d0f7d75480982c61
- THIRD-PARTY.md: 250 bytes; SHA-256 230dd0239a4cc149d329768d4b8dd1aee4d8f40366c2a16401293370520a8c5c
- repair.py: 4931 bytes; SHA-256 18a55e3642952cffed2be9ecf11c068cf8ad65a9d0ca2e0f49e9e788697fc09d
- repair.sh: 363 bytes; SHA-256 4b665a639a7c633fbf0fe7cdb896f2e5b99b3116fd306e18f8d65e152589b16a
