Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计提醒

photo-clipper照片剪辑器

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

353

周安装

15

GitHub Stars

公开资料未说明

下载量

124
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:photo-clipper(照片剪辑器)
来源仓库:https://github.com/ppx123-web/claude-config
仓库路径:skills/photo-clipper
安装命令:
npx skills add https://github.com/ppx123-web/claude-config --skill photo-clipper
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/ppx123-web/claude-config --skill photo-clipper

简介

用于辅助图像生成、图片编辑、视觉素材处理和图像模型工作流。

  • 适合让 Agent 根据文本生成图片、处理背景或整理视觉提示词。
  • 使用时需要确认输入图片、版权来源、输出格式和模型限制。
  • 涉及人物、品牌或公开展示素材时,应核对授权、真实性和内容合规边界。
  • photo-clipper 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Photo Clipper

When to Use

Use this skill when the user asks to:

  • Crop or trim a photo
  • Remove parts of an image (e.g., "remove 20% from top")
  • Focus on a specific subject or area
  • Improve composition (e.g., "apply rule of thirds")
  • Remove distractions from edges
  • Adjust framing or aspect ratio

Instructions

This skill uses GPT-5 vision API to analyze photos and suggest intelligent cropping. Always:

  1. Validate input - Ensure photo exists and is JPG/PNG format
  2. Call GPT-5 - Get clipping suggestions based on user's natural language prompt
  3. Validate safety - Ensure clipping doesn't remove more than 50% per dimension
  4. Apply clipping - Crop the photo and save to new file (never overwrite original)
  5. Report results - Show what was removed and GPT-5's reasoning

Usage

from photo_clipper import main

result = main(
    photo_path="photo.jpg",
    prompt="Remove 20% from top to reduce empty sky"
)
# Returns: "photo-clipped.jpg"

Command Line

python photo_clipper.py <photo_path> "<prompt>" [output_path]

Examples

Remove empty sky:

Remove 30% from top to reduce empty sky

Focus on subject:

Crop to focus on the person's face in the center

Remove distractions:

Remove the partial tree on the left edge

Improve composition:

Apply rule of thirds to balance the composition

Trim specific amount:

Remove 10% from all edges for a cleaner frame

Output

  • Returns path to clipped photo
  • Never overwrites original
  • Format: {original_name}-clipped.{ext}
  • Displays GPT-5's confidence score and reasoning

Error Handling

  • Falls back to safe defaults (no clipping) if GPT-5 unavailable
  • Validates parameters (max 50% removal per dimension)
  • Clear error messages for missing files or invalid formats

Requirements

  • OPENROUTER_API_KEY environment variable must be set
  • Photo must be JPG or PNG format
  • Photo under 50MB recommended

Technical Implementation

See references/implementation.md for:

  • GPT-5 vision API integration
  • Cropping algorithm details
  • Error handling strategy
  • Performance optimization

Examples

See examples/common-use-cases.md for:

  • Remove empty sky
  • Focus on subject
  • Remove distractions
  • Improve composition
  • Error handling scenarios

适合场景

01

调用多模型

02

代码和文本生成

03

Agent 推理流程

04

OpenRouter 模型接入

能力概览

能力 1

统一调用多种 LLM

能力 2

支持 Claude、Gemini、Kimi 等模型

能力 3

适合聊天、代码和推理任务

能力 4

可作为 Agent 模型调用入口

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.41%
按下载量换算35

Antigravity

22.99%
按下载量换算29

Gemini CLI

15.98%
按下载量换算20

windsurf

12.44%
按下载量换算15

trae

7.84%
按下载量换算10

OpenCode

3.18%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills