executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
guided-editingRoute mask- and layer-conditioned GIMP-ML work for inpainting, deep image matting, face parsing and portrait generation preparation, and optional color guidance while enforcing exact alignment and pixel contracts.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when an image edit is conditioned by a mask, trimap, face-label layer, aligned layer trio, or sparse color guidance. It is the contract and routing layer for these operations, not a general computer-vision catalog.
| Request signal | Route | Required inputs |
|---|---|---|
| Remove an object or region | Inpainting | Image + binary mask |
| Produce foreground alpha | Deep image matting | RGB image + RGB trimap |
| Prepare a face edit | Face parsing first | Portrait image |
| Render a changed face label map | Face generation | Portrait + original mask + modified mask |
| Color a grayscale RGB image | Deep coloring | RGB-mode grayscale image; optional transparent RGB color mask |
Read mask-and-layer-contracts.md before accepting or repairing any input. Read workflows.md for the operation procedure and troubleshooting.md for failure recovery.
(255,255,255) and the object to remove is (0,0,0). The manual labels
these black background/white object, which is visually counterintuitive;
preserve the numeric triples and do not invert them silently. The checked
source implementation then normalizes the first channel as 1 - value/255,
so observed runtime polarity is an explicit version/host verification gate,
not a reason to rewrite the documented user input rule.(0,0,0) for black background,
(255,255,255) for white object, and (128,128,128) for gray unknown
boundary. The trimap must be spatially aligned with the image.Identify one route from the table and name each input layer explicitly.
Run the bundled deterministic preflight before any model or GIMP mutation:
python scripts/validate_mask_inputs.py --help
Supply --image and --mask, --image and --trimap, the three face
arguments, or --image with --color-mask as appropriate. The validator
reports dimensions, channels, alpha presence, trimap tolerance, and
inpainting polarity; it never downloads weights, calls a service, or edits
an image.
Fix every alignment, channel, polarity, and trimap error before opening a model. Treat a validator warning about no visible color points or no gray trimap boundary as a review stop for the intended edit.
Follow the selected workflow in workflows.md. Preserve the source layer(s), create a separate result layer, and inspect the output rather than overwriting the inputs.
Record whether the result was model-generated, static-only, or blocked by the host, checkpoint, or device. Do not describe a preflight pass as model success.
gimpfu; the verified host does not provide GIMP or Python 2.
This sub-skill therefore supports deterministic contract
validation here, while plugin execution is host-dependent and unverified.The validator is the only bundled executable in this sub-skill. It is suitable for synthetic fixtures and static CI checks. It writes nothing, reads only explicit paths, and performs no network, credential, weight, GIMP, or model operation. Use it to verify contracts, not visual quality or recovered model accuracy.
Do not use this route for generic segmentation, denoising, deblurring, super-resolution, or arbitrary image classification. Do not train or repair model architectures here. Do not invent a face label palette, trimap encoding, mask polarity, checkpoint location, or device capability when evidence is missing.