/tensorslab-skills:image-editfrom tensorslab-skills
Edits images using the tl-image quickedit model. Supports aspect ratio changes, object erasure, background removal, and custom edits via natural language prompts.
Ships in tensorslab-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
基于 tl-image 的 quickedit 模型实现快速图像编辑操作。
本技能使用 tl-image 技能的 tensorslab_image.py 脚本,配合 --model quickedit 参数。脚本位于 tl-image 技能的 scripts/ 目录下,必须使用绝对路径执行。根据 tl-image 技能的安装位置确定绝对路径。
例如,如果 tl-image 的 SKILL.md 位于 /path/to/skills/tl-image/SKILL.md,则:
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "<编辑指令>" --source <image_path> --model quickedit
使用前需确保已通过 TensorsLab 授权。运行:
python "<tl-image绝对路径>/scripts/tensorslab_auth.py"
如果之前已授权过(~/.tensorslab/.env 中有 key),则无需重复授权。
所有传给脚本的提示词(prompt)必须用引号包裹,防止 shell 解析问题:
# 正确
python "scripts/tensorslab_image.py" "remove the watermark" --source photo.jpg --model quickedit
python "scripts/tensorslab_image.py" "把天空改成星空" --source photo.jpg --model quickedit
# 错误 - 没有引号
python "scripts/tensorslab_image.py" remove the watermark --source photo.jpg --model quickedit
改变图片宽高比,保持内容不变。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "保持画面内容不变,调整构图适应新的宽高比" --source input.jpg --model quickedit --resolution 16:9
支持的宽高比:1:1、4:3、3:4、16:9、9:16、3:2、2:3、21:9、9:21
用户请求映射:
1:116:99:164:3从图片中移除指定对象。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the watermark from the image" --source photo.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the person in the background" --source photo.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the logo" --source photo.jpg --model quickedit
擦除提示词应明确描述要移除的对象,并用英文效果最佳。
移除图片背景,只保留主体。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the background, keep only the main subject" --source portrait.jpg --model quickedit
使用自定义指令编辑图片。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "change the sky to a starry night" --source input.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "add snow effect" --source input.jpg --model quickedit --resolution 16:9
可选参数:
--resolution - 输出宽高比(如 16:9、1:1)--output-dir - 自定义输出目录编辑指令使用英文效果最佳,保留用户的创意意图。
所有命令支持以下可选参数:
--output-dir 或 -o - 输出目录(默认: ./tensorslab_output/)--resolution - 输出宽高比(如 16:9、1:1)生成文件名使用格式: yyyy-mm-dd-hh-mm-ss-name.jpg
格式: {timestamp}-{descriptive-name}.jpg
yyyy-mm-dd-hh-mm-ss(24小时制)x9k2、a7b3)示例:
2025-01-19-20-30-05-remove-watermark.jpg2025-01-19-20-31-12-aspect-9-16.jpg2025-01-19-20-32-33-remove-bg.jpg2025-01-19-20-33-48-snow-effect.jpg./tensorslab_output/ 目录What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/ali-videoGenerate videos using Aliyun Bailian's HappyHorse AI video generation models via DashScope API. Supports text-to-video (T2V), image-to-video (I2V with first frame), and reference-to-video (R2V with multiple reference images). Supports batch generation with concurrent task execution. Requires DASHSCOPE_API_KEY. Video generation typically takes 1-5 minutes. MUST use this skill whenever generating videos with Aliyun/HappyHorse/DashScope, including batch video generation, animating images, or creating videos from text descriptions./tl-imageGenerate and edit images using TensorsLab's AI models. Supports text-to-image, image-to-image generation, plus advanced editing: avatar generation, watermark removal, object erasure, face replacement, and general image editing. Features automatic prompt enhancement, progress tracking, and local file saving. Requires browser-based authorization before first use./tl-videoGenerated from the plugin's indexed repository (tensorslab/skills) — no native marketplace selected
npx claudepluginhub p/tensorslab-tensorslab-skillsOther plugins' skills for the same job