Agent Skills
› neilsonnn/image-blaster
› image-blast-plate
image-blast-plate
GitHub为IMAGE-BLASTER项目生成单张清洁遮罩图。基于确认对象移除前景内容,提示词仅包含移除指令。自动选择最新源图或指定输入,按规则命名输出文件并调用编辑脚本,最后报告元数据。
Trigger Scenarios
需要移除图像中的特定对象或内容
生成用于后续合成的清洁背景板
Install
npx skills add neilsonnn/image-blaster --skill image-blast-plate -g -y
SKILL.md
Frontmatter
{
"name": "image-blast-plate",
"agent": "image-blast-plate",
"context": "fork",
"description": "Generate one clean plate\/source cleanup image for an IMAGE-BLASTER world. Use after confirmed objects exist, when removing foreground objects or other specified content from a source image.",
"allowed-tools": "Read Write Glob Bash(ls *) Bash(node .claude\/scripts\/project\/project-state.mjs *) Bash(node .claude\/scripts\/project\/ensure-local-assets.mjs *) Bash(node .claude\/scripts\/image-edit\/generate-edit.mjs *)",
"argument-hint": [
"world-name"
]
}
Create one clean plate for project $0.
Instructions
- If
$0is missing, ask for the world slug. - Use
ls -abefore reading generated state. - Select the source image from
$ARGUMENTSwhen provided; otherwise use the newest visible source image inworlds/$0/source/. - Build one removal prompt from confirmed objects plus any extra removal instructions. Confirmed objects are
worlds/$0/output/<object>/object.jsonfiles; useobject.name, adding short details fromobject.descriptionwhen needed. - Keep the prompt removal-only: name what to remove, and do not list objects or scene features to keep or add fill-in/background repair instructions unless the user explicitly asked for that wording.
- Remove all requested content in one image edit pass. Do not split removals across multiple agents or one edit per object.
- Follow
image-blast-image-editby calling the generic edit script with--role plateand--output-slug "<source-slug>-plate". - The plate is a new source artifact. It must use the next available visible file index in
worlds/$0/source/, not the source image's index. For example, if the selected source image is0-room.png, the first plate must be named like1-room-plate.pngwith matching.1-room-plate-request.json, never0-room-plate.png.
node .claude/scripts/project/project-state.mjs --world "$0"
Run:
node .claude/scripts/image-edit/generate-edit.mjs \
--image "<selected source image path>" \
--prompt "remove the following from the image: <confirmed object names and any extra removals the user requests>" \
--output-dir "worlds/$0/source" \
--role plate \
--output-slug "<source-slug>-plate"
Optional provider override: --provider nano-banana|gpt-image-2.
If request metadata records provider URLs but local plate files are missing, fill them from the matching hidden request JSON:
node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"
node .claude/scripts/project/project-state.mjs --world "$0"
Final response: report input image, output plate image, request metadata, and prompt used.
Version History
- 4acb43b Current 2026-07-24 11:45


